diff options
author | neonloop | 2023-01-09 14:36:40 +0000 |
---|---|---|
committer | neonloop | 2023-01-09 14:36:40 +0000 |
commit | 6d0d8f2ce924a0b1a433280160d90f71121509a4 (patch) | |
tree | f2e99784fa3e708ae8ac70d65f721c65cf171184 /scale.h | |
parent | 50d426b6d2c84d4ddc32009268d99047e83ced7f (diff) | |
download | picoarch-6d0d8f2ce924a0b1a433280160d90f71121509a4.tar.gz picoarch-6d0d8f2ce924a0b1a433280160d90f71121509a4.tar.bz2 picoarch-6d0d8f2ce924a0b1a433280160d90f71121509a4.zip |
Adds initial Funkey S support
Diffstat (limited to 'scale.h')
-rw-r--r-- | scale.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 { |