aboutsummaryrefslogtreecommitdiff
path: root/scale.h
diff options
context:
space:
mode:
Diffstat (limited to 'scale.h')
-rw-r--r--scale.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/scale.h b/scale.h
index c415124..fe02d92 100644
--- a/scale.h
+++ b/scale.h
@@ -1,7 +1,18 @@
#ifndef __SCALE_H__
#define __SCALE_H__
+#ifdef FUNKEY_S
+#define SCREEN_WIDTH 240
+#else
#define SCREEN_WIDTH 320
+#endif
+
+#if SCREEN_WIDTH == 240
+#define HUD_LEN 31
+#else
+#define HUD_LEN 41
+#endif
+
#define SCREEN_HEIGHT 240
#define SCREEN_BPP 2
#define SCREEN_PITCH (SCREEN_BPP * SCREEN_WIDTH)
@@ -10,6 +21,7 @@ enum scale_size {
SCALE_SIZE_NONE,
SCALE_SIZE_ASPECT,
SCALE_SIZE_FULL,
+ SCALE_SIZE_CROP,
};
enum scale_filter {