From 8620ab0702f2a1051a9af55bd2a95ba09177629d Mon Sep 17 00:00:00 2001
From: dimok321 <15055714+dimok789@users.noreply.github.com>
Date: Sun, 12 Jul 2009 15:17:23 +0000
Subject: [PATCH] *Forgot about FlipX control when added the Carousel stuff.
This should fix the wrong navigation.
---
gui.pnproj | 2 +-
source/libwiigui/gui_gamecarousel.cpp | 17 +++++++++++++----
2 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/gui.pnproj b/gui.pnproj
index 54df8859..58a930fe 100644
--- a/gui.pnproj
+++ b/gui.pnproj
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/source/libwiigui/gui_gamecarousel.cpp b/source/libwiigui/gui_gamecarousel.cpp
index 42bd8027..eae0063b 100644
--- a/source/libwiigui/gui_gamecarousel.cpp
+++ b/source/libwiigui/gui_gamecarousel.cpp
@@ -280,10 +280,19 @@ void GuiGameCarousel::Update(GuiTrigger * t)
btnRight->Update(t);
btnLeft->Update(t);
- if(btnRight->GetState() == STATE_CLICKED)
- NewOffset(listOffset, -1);
- else if(btnLeft->GetState() == STATE_CLICKED)
- NewOffset(listOffset, 1);
+ if(btnRight->GetState() == STATE_CLICKED) {
+ if(Settings.xflip==sysmenu ||Settings.xflip==yes) {
+ NewOffset(listOffset, 1);
+ } else {
+ NewOffset(listOffset, -1);
+ }
+ } else if(btnLeft->GetState() == STATE_CLICKED) {
+ if(Settings.xflip==sysmenu ||Settings.xflip==yes) {
+ NewOffset(listOffset, -1);
+ } else {
+ NewOffset(listOffset, 1);
+ }
+ }
int next = listOffset;