summaryrefslogtreecommitdiff
path: root/gui.c
diff options
context:
space:
mode:
authornotaz2011-09-03 00:55:13 +0300
committernotaz2011-09-03 01:01:17 +0300
commitee0a3871f9982215361cd6bb4758eb9a7c7d8413 (patch)
tree6fc70e291e80ac7cda7c7438cb48ca0b89a7879d /gui.c
parentd5e0983c10e0ca717603dd1a406ff0d6e450e905 (diff)
downloadpicogpsp-ee0a3871f9982215361cd6bb4758eb9a7c7d8413.tar.gz
picogpsp-ee0a3871f9982215361cd6bb4758eb9a7c7d8413.tar.bz2
picogpsp-ee0a3871f9982215361cd6bb4758eb9a7c7d8413.zip
get rid of GP2X_BUILD checks where they are not really needed
Diffstat (limited to 'gui.c')
-rw-r--r--gui.c20
1 files changed, 5 insertions, 15 deletions
diff --git a/gui.c b/gui.c
index a2ae99e..165c669 100644
--- a/gui.c
+++ b/gui.c
@@ -25,10 +25,6 @@
#endif
-#ifndef GP2X_BUILD
-#include "gp2x/cpuctrl.h"
-#endif
-
#include "common.h"
#include "font.h"
@@ -38,7 +34,7 @@
#ifdef GP2X_BUILD
-#define FILE_LIST_ROWS ((int)((SDL_SCREEN_HEIGHT - 40) / FONT_HEIGHT))
+#define FILE_LIST_ROWS 20
#define FILE_LIST_POSITION 5
#define DIR_LIST_POSITION 260
@@ -52,23 +48,17 @@
#ifdef PSP_BUILD
+#define COLOR_BG color16(2, 8, 10)
+
#define color16(red, green, blue) \
(blue << 11) | (green << 5) | red \
#else
-#define color16(red, green, blue) \
- (red << 11) | (green << 5) | blue \
-
-#endif
-
-#ifdef GP2X_BUILD
-
#define COLOR_BG color16(0, 0, 0)
-#else
-
-#define COLOR_BG color16(2, 8, 10)
+#define color16(red, green, blue) \
+ (red << 11) | (green << 5) | blue \
#endif