summaryrefslogtreecommitdiff
path: root/apps/plugins/flipit.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-07-06 22:58:02 +0000
committerJens Arnold <amiconn@rockbox.org>2005-07-06 22:58:02 +0000
commitf894a4c2691fbde1758a05407cb5eadcaec4a6c8 (patch)
tree46cb7ce63c794020175ab251cf0299663be8bf3c /apps/plugins/flipit.c
parent1076eb1d2720b88757616f642be0c39c6a3b76df (diff)
downloadrockbox-f894a4c2691fbde1758a05407cb5eadcaec4a6c8.tar.gz
rockbox-f894a4c2691fbde1758a05407cb5eadcaec4a6c8.zip
4-shades greyscale graphics core for iriver H1x0. 4-grey rockbox logo and light grey background in splash() boxes. Simplified the splash() box creation as the new graphics core does clipping. Adapted screendump feature and added flexible preprocessing to construct the bmp header. Rockboy now uses 4-grey mode as well. 4-grey support for win32 simulator. Fixed win32 player sim to not use double bitmap conversion via a recorder-like framebuffer, and correctly display double-height text. X11 simulator temporarily adapted. The display won't be distorted, but it still shows b&w only.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7046 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/flipit.c')
-rw-r--r--apps/plugins/flipit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/flipit.c b/apps/plugins/flipit.c
index d8d8eeb2ec..36411c2978 100644
--- a/apps/plugins/flipit.c
+++ b/apps/plugins/flipit.c
@@ -72,9 +72,9 @@ static unsigned char cursor_pic[32] = {
72/* draw a spot at the coordinates (x,y), range of p is 0-19 */ 72/* draw a spot at the coordinates (x,y), range of p is 0-19 */
73static void draw_spot(int p) { 73static void draw_spot(int p) {
74 ptr = spot_pic[spots[p]]; 74 ptr = spot_pic[spots[p]];
75 rb->lcd_bitmap (ptr, (p%5)*16+1, (p/5)*16+1, 14, 8); 75 rb->lcd_mono_bitmap (ptr, (p%5)*16+1, (p/5)*16+1, 14, 8);
76 ptr += 14; 76 ptr += 14;
77 rb->lcd_bitmap (ptr, (p%5)*16+1, (p/5)*16+9, 14, 6); 77 rb->lcd_mono_bitmap (ptr, (p%5)*16+1, (p/5)*16+9, 14, 6);
78} 78}
79 79
80/* draw the cursor at the current cursor position */ 80/* draw the cursor at the current cursor position */
@@ -84,9 +84,9 @@ static void draw_cursor(void) {
84 j = (cursor_pos/5)*16; 84 j = (cursor_pos/5)*16;
85 rb->lcd_set_drawmode(DRMODE_FG); 85 rb->lcd_set_drawmode(DRMODE_FG);
86 ptr = cursor_pic; 86 ptr = cursor_pic;
87 rb->lcd_bitmap (ptr, i, j, 16, 8); 87 rb->lcd_mono_bitmap (ptr, i, j, 16, 8);
88 ptr += 16; 88 ptr += 16;
89 rb->lcd_bitmap (ptr, i, j+8, 16, 8); 89 rb->lcd_mono_bitmap (ptr, i, j+8, 16, 8);
90 rb->lcd_set_drawmode(DRMODE_SOLID); 90 rb->lcd_set_drawmode(DRMODE_SOLID);
91} 91}
92 92