summaryrefslogtreecommitdiff
path: root/apps/plugins/bitmaps/native/SOURCES
diff options
context:
space:
mode:
authorFranklin Wei <frankhwei536@gmail.com>2014-06-29 14:49:07 -0400
committerMichael Giacomelli <giac2000@hotmail.com>2014-08-12 00:01:24 +0200
commitb61553c2b18d37566b6561e413ef1b49de39c0a7 (patch)
tree69c93171d9cc7675b05f66925c7cbd42ff73c9d9 /apps/plugins/bitmaps/native/SOURCES
parent9a3400a4a667e32d1dd0b50364b083787ff63320 (diff)
downloadrockbox-b61553c2b18d37566b6561e413ef1b49de39c0a7.zip
rockbox-b61553c2b18d37566b6561e413ef1b49de39c0a7.tar.gz
rockbox-b61553c2b18d37566b6561e413ef1b49de39c0a7.tar.bz2
rockbox-b61553c2b18d37566b6561e413ef1b49de39c0a7.tar.xz
Added 2048 game
Change-Id: I4012dca4f93ca0db386a454635534f648ba906e9 Reviewed-on: http://gerrit.rockbox.org/888 Reviewed-by: Michael Giacomelli <giac2000@hotmail.com> Tested: Michael Giacomelli <giac2000@hotmail.com>
Diffstat (limited to 'apps/plugins/bitmaps/native/SOURCES')
-rw-r--r--apps/plugins/bitmaps/native/SOURCES22
1 files changed, 22 insertions, 0 deletions
diff --git a/apps/plugins/bitmaps/native/SOURCES b/apps/plugins/bitmaps/native/SOURCES
index 4b7f0e2..d608062 100644
--- a/apps/plugins/bitmaps/native/SOURCES
+++ b/apps/plugins/bitmaps/native/SOURCES
@@ -1,5 +1,27 @@
#ifdef HAVE_LCD_BITMAP
+/* 2048 */
+
+#define MIN(x,y) ((x<y)?x:y)
+#if MIN(LCD_WIDTH, LCD_HEIGHT)>=240
+_2048_tiles.48x48x24.bmp
+_2048_background.224x224x24.bmp
+#elif MIN(LCD_WIDTH, LCD_HEIGHT)>=176
+_2048_tiles.36x36x24.bmp
+_2048_background.168x168x24.bmp
+#elif MIN(LCD_WIDTH, LCD_HEIGHT)>=132 || MIN(LCD_WIDTH, LCD_HEIGHT)>=128
+_2048_tiles.26x26x24.bmp
+_2048_background.121x121x24.bmp
+#elif MIN(LCD_WIDTH, LCD_HEIGHT)>=110
+_2048_tiles.22x22x24.bmp
+_2048_background.103x103x24.bmp
+#else
+/* default to smallest bitmaps */
+_2048_tiles.12x12x24.bmp
+_2048_background.56x56x24.bmp
+#endif
+#undef MIN
+
/* Brickmania */
#ifdef HAVE_LCD_COLOR
#if LCD_WIDTH >= 112