all repos — mgba @ fbea708ed4c60caf748834daef1ca6b0f7f6c6b7

mGBA Game Boy Advance Emulator

GUI: Fix top button on scrollbars being upside down
Jeffrey Pfau jeffrey@endrift.com
Sun, 31 Jan 2016 14:35:27 -0800
commit

fbea708ed4c60caf748834daef1ca6b0f7f6c6b7

parent

1fce327192bef81e4ddc1ce1acde3688c74fab59

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/util/gui/menu.csrc/util/gui/menu.c

@@ -165,7 +165,7 @@

if (itemsPerScreen < GUIMenuItemListSize(&menu->items)) { size_t top = 2 * lineHeight; size_t bottom = params->height - 8; - GUIFontDrawIcon(params->font, params->width - 8, top, GUI_ALIGN_HCENTER | GUI_ALIGN_BOTTOM, GUI_ORIENT_0, 0xFFFFFFFF, GUI_ICON_SCROLLBAR_BUTTON); + GUIFontDrawIcon(params->font, params->width - 8, top, GUI_ALIGN_HCENTER | GUI_ALIGN_BOTTOM, GUI_ORIENT_VMIRROR, 0xFFFFFFFF, GUI_ICON_SCROLLBAR_BUTTON); GUIFontDrawIconSize(params->font, params->width - 9, top, 2, bottom - top, 0xFFFFFFFF, GUI_ICON_SCROLLBAR_TRACK); GUIFontDrawIcon(params->font, params->width - 8, bottom, GUI_ALIGN_HCENTER | GUI_ALIGN_TOP, GUI_ORIENT_0, 0xFFFFFFFF, GUI_ICON_SCROLLBAR_BUTTON);