diff options
author | 2016-03-20 19:25:01 +0100 | |
---|---|---|
committer | 2016-03-20 19:25:01 +0100 | |
commit | 1174225fcbda1f70929b1cc71ed1ce61b922d69d (patch) | |
tree | e560d1262d1b31dce175a24a43ad65c1bc0b0df7 /src/emu/ui/menu.cpp | |
parent | f07d5bf4bd5795df3ec951163684a8d7d6f0d238 (diff) |
ui: Fixed image sizing in right panel to vertical orientation. (nw)
Diffstat (limited to 'src/emu/ui/menu.cpp')
-rw-r--r-- | src/emu/ui/menu.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emu/ui/menu.cpp b/src/emu/ui/menu.cpp index ac8b5506e24..17153c41b78 100644 --- a/src/emu/ui/menu.cpp +++ b/src/emu/ui/menu.cpp @@ -2287,6 +2287,11 @@ void ui_menu::arts_render_images(bitmap_argb32 *tmp_bitmap, float origx1, float float panel_height = origy2 - origy1 - 0.02f - (2.0f * UI_BOX_TB_BORDER) - (2.0f * line_height); int screen_width = machine().render().ui_target().width(); int screen_height = machine().render().ui_target().height(); + + int rot = machine().render().ui_target().orientation(); + if (rot == ROT90 || rot == ROT270) + std::swap(screen_height, screen_width); + int panel_width_pixel = panel_width * screen_width; int panel_height_pixel = panel_height * screen_height; float ratio = 0.0f; |