diff options
author | 2016-04-03 12:08:56 +0200 | |
---|---|---|
committer | 2016-04-03 12:09:38 +0200 | |
commit | 370aa2e8f5d4137395177250419793d2a9f33b08 (patch) | |
tree | fe4f54d50681a21f85b5cf26e3e8cef9233d36c1 /src/osd/modules/render/drawbgfx.cpp | |
parent | 88e84e7c52e7e9f6c84d9607de9517b897f709ca (diff) |
Fixed render target dimension swap for BGFX (nw)
Diffstat (limited to 'src/osd/modules/render/drawbgfx.cpp')
-rw-r--r-- | src/osd/modules/render/drawbgfx.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osd/modules/render/drawbgfx.cpp b/src/osd/modules/render/drawbgfx.cpp index 85b76864b23..48d1d3012ae 100644 --- a/src/osd/modules/render/drawbgfx.cpp +++ b/src/osd/modules/render/drawbgfx.cpp @@ -809,6 +809,10 @@ int renderer_bgfx::handle_screen_chains() } uint16_t screen_width(floor((prim->bounds.x1 - prim->bounds.x0) + 0.5f)); uint16_t screen_height(floor((prim->bounds.y1 - prim->bounds.y0) + 0.5f)); + if(window().swap_xy()) + { + std::swap(screen_width, screen_height); + } m_targets->update_target_sizes(screen_index, screen_width, screen_height, TARGET_STYLE_NATIVE); process_screen_quad(screen_index, prim); screen_index++; |