From d21fcfac8ee9b80a581a010ca61e8904e1af8642 Mon Sep 17 00:00:00 2001 From: DRayX7 Date: Fri, 22 May 2009 18:22:23 +0000 Subject: [PATCH] *Fixed the code dump from r389 --- source/libwiigui/gui_gamebrowser.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/libwiigui/gui_gamebrowser.cpp b/source/libwiigui/gui_gamebrowser.cpp index 81b54e0c..144766a6 100644 --- a/source/libwiigui/gui_gamebrowser.cpp +++ b/source/libwiigui/gui_gamebrowser.cpp @@ -51,7 +51,7 @@ GuiGameBrowser::GuiGameBrowser(int w, int h, struct discHdr * l, int gameCnt, co snprintf(imgPath, sizeof(imgPath), "%sbg_options_entry.png", themePath); bgGamesEntry = new GuiImageData(imgPath, bg_options_entry_png); - if (scrollbaron == 1) { + snprintf(imgPath, sizeof(imgPath), "%sscrollbar.png", themePath); scrollbar = new GuiImageData(imgPath, scrollbar_png); scrollbarImg = new GuiImage(scrollbar); @@ -107,11 +107,10 @@ GuiGameBrowser::GuiGameBrowser(int w, int h, struct discHdr * l, int gameCnt, co scrollbarBoxBtn->SetAlignment(ALIGN_CENTRE, ALIGN_TOP); scrollbarBoxBtn->SetSelectable(false); scrollbarBoxBtn->SetEffectOnOver(EFFECT_SCALE, 50, 120); - scrollbarBoxBtn->SetMinY(0); + scrollbarBoxBtn->SetMinY(0); scrollbarBoxBtn->SetMaxY(height-30); scrollbarBoxBtn->SetHoldable(true); scrollbarBoxBtn->SetTrigger(trigHeldA); - } gameIndex = new int[pagesize]; game = new GuiButton * [pagesize];