summaryrefslogtreecommitdiff
path: root/apps/plugins/bitmaps
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
parent9a3400a4a667e32d1dd0b50364b083787ff63320 (diff)
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')
-rw-r--r--apps/plugins/bitmaps/native/SOURCES22
-rw-r--r--apps/plugins/bitmaps/native/_2048_background.103x103x24.bmpbin0 -> 32258 bytes
-rw-r--r--apps/plugins/bitmaps/native/_2048_background.121x121x24.bmpbin0 -> 44166 bytes
-rw-r--r--apps/plugins/bitmaps/native/_2048_background.168x168x24.bmpbin0 -> 84794 bytes
-rw-r--r--apps/plugins/bitmaps/native/_2048_background.224x224x24.bmpbin0 -> 150650 bytes
-rw-r--r--apps/plugins/bitmaps/native/_2048_background.56x56x24.bmpbin0 -> 9530 bytes
-rw-r--r--apps/plugins/bitmaps/native/_2048_tiles.12x12x24.bmpbin0 -> 7898 bytes
-rw-r--r--apps/plugins/bitmaps/native/_2048_tiles.22x22x24.bmpbin0 -> 26258 bytes
-rw-r--r--apps/plugins/bitmaps/native/_2048_tiles.26x26x24.bmpbin0 -> 36626 bytes
-rw-r--r--apps/plugins/bitmaps/native/_2048_tiles.36x36x24.bmpbin0 -> 70106 bytes
-rw-r--r--apps/plugins/bitmaps/native/_2048_tiles.48x48x24.bmpbin0 -> 124538 bytes
11 files changed, 22 insertions, 0 deletions
diff --git a/apps/plugins/bitmaps/native/SOURCES b/apps/plugins/bitmaps/native/SOURCES
index 4b7f0e2670..d608062335 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
diff --git a/apps/plugins/bitmaps/native/_2048_background.103x103x24.bmp b/apps/plugins/bitmaps/native/_2048_background.103x103x24.bmp
new file mode 100644
index 0000000000..153126bc99
--- /dev/null
+++ b/apps/plugins/bitmaps/native/_2048_background.103x103x24.bmp
Binary files differ
diff --git a/apps/plugins/bitmaps/native/_2048_background.121x121x24.bmp b/apps/plugins/bitmaps/native/_2048_background.121x121x24.bmp
new file mode 100644
index 0000000000..1e6e3270d0
--- /dev/null
+++ b/apps/plugins/bitmaps/native/_2048_background.121x121x24.bmp
Binary files differ
diff --git a/apps/plugins/bitmaps/native/_2048_background.168x168x24.bmp b/apps/plugins/bitmaps/native/_2048_background.168x168x24.bmp
new file mode 100644
index 0000000000..c47b5d26d5
--- /dev/null
+++ b/apps/plugins/bitmaps/native/_2048_background.168x168x24.bmp
Binary files differ
diff --git a/apps/plugins/bitmaps/native/_2048_background.224x224x24.bmp b/apps/plugins/bitmaps/native/_2048_background.224x224x24.bmp
new file mode 100644
index 0000000000..531d5ed541
--- /dev/null
+++ b/apps/plugins/bitmaps/native/_2048_background.224x224x24.bmp
Binary files differ
diff --git a/apps/plugins/bitmaps/native/_2048_background.56x56x24.bmp b/apps/plugins/bitmaps/native/_2048_background.56x56x24.bmp
new file mode 100644
index 0000000000..c3008f8eae
--- /dev/null
+++ b/apps/plugins/bitmaps/native/_2048_background.56x56x24.bmp
Binary files differ
diff --git a/apps/plugins/bitmaps/native/_2048_tiles.12x12x24.bmp b/apps/plugins/bitmaps/native/_2048_tiles.12x12x24.bmp
new file mode 100644
index 0000000000..e531c2b6e2
--- /dev/null
+++ b/apps/plugins/bitmaps/native/_2048_tiles.12x12x24.bmp
Binary files differ
diff --git a/apps/plugins/bitmaps/native/_2048_tiles.22x22x24.bmp b/apps/plugins/bitmaps/native/_2048_tiles.22x22x24.bmp
new file mode 100644
index 0000000000..186ba8bc95
--- /dev/null
+++ b/apps/plugins/bitmaps/native/_2048_tiles.22x22x24.bmp
Binary files differ
diff --git a/apps/plugins/bitmaps/native/_2048_tiles.26x26x24.bmp b/apps/plugins/bitmaps/native/_2048_tiles.26x26x24.bmp
new file mode 100644
index 0000000000..f7df5ba5a4
--- /dev/null
+++ b/apps/plugins/bitmaps/native/_2048_tiles.26x26x24.bmp
Binary files differ
diff --git a/apps/plugins/bitmaps/native/_2048_tiles.36x36x24.bmp b/apps/plugins/bitmaps/native/_2048_tiles.36x36x24.bmp
new file mode 100644
index 0000000000..e27ada133d
--- /dev/null
+++ b/apps/plugins/bitmaps/native/_2048_tiles.36x36x24.bmp
Binary files differ
diff --git a/apps/plugins/bitmaps/native/_2048_tiles.48x48x24.bmp b/apps/plugins/bitmaps/native/_2048_tiles.48x48x24.bmp
new file mode 100644
index 0000000000..09165203ed
--- /dev/null
+++ b/apps/plugins/bitmaps/native/_2048_tiles.48x48x24.bmp
Binary files differ