summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Kukla <roolku@rockbox.org>2008-04-08 15:04:26 +0000
committerRobert Kukla <roolku@rockbox.org>2008-04-08 15:04:26 +0000
commitff554e0c7f944907e35af1aa67d17976378ce1c4 (patch)
treeb3626013d1fcc1f41cdfc36efff1702f1e81031c
parentf4deea60273d34f643cf7965cab184f13d66f322 (diff)
downloadrockbox-ff554e0c7f944907e35af1aa67d17976378ce1c4.tar.gz
rockbox-ff554e0c7f944907e35af1aa67d17976378ce1c4.tar.bz2
rockbox-ff554e0c7f944907e35af1aa67d17976378ce1c4.zip
m:robe 100 - make screendump work for greyscale and add screenshots for the manual
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17033 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/lib/grey_core.c18
-rw-r--r--manual/plugins/images/ss-cube-160x128x1.pngbin592 -> 1434 bytes
-rw-r--r--manual/plugins/images/ss-fire-160x128x1.pngbin0 -> 7947 bytes
-rw-r--r--manual/plugins/images/ss-jpegviewer-160x128x1.pngbin0 -> 8915 bytes
-rw-r--r--manual/plugins/images/ss-mandelbrot-160x128x1.pngbin0 -> 3302 bytes
-rw-r--r--manual/plugins/images/ss-plasma-160x128x1.pngbin0 -> 10195 bytes
6 files changed, 18 insertions, 0 deletions
diff --git a/apps/plugins/lib/grey_core.c b/apps/plugins/lib/grey_core.c
index c38a8b8446..2fbbc9cb3b 100644
--- a/apps/plugins/lib/grey_core.c
+++ b/apps/plugins/lib/grey_core.c
@@ -725,9 +725,18 @@ static const unsigned char bmpheader[] =
};
#if LCD_DEPTH == 1
+#ifdef MROBE_100
+#define BMP_RED 241
+#define BMP_GREEN 6
+#define BMP_BLUE 3
+#define BMP_RED_BASE 94
+#define BMP_GREEN_BASE 2
+#define BMP_BLUE_BASE 2
+#elif
#define BMP_RED 0x90
#define BMP_GREEN 0xee
#define BMP_BLUE 0x90
+#endif
#elif LCD_DEPTH == 2
#define BMP_RED 0xad
#define BMP_GREEN 0xd8
@@ -762,9 +771,18 @@ static void grey_screendump_hook(int fd)
for (i = 0; i <= 128; i++)
{
+#ifdef MROBE_100
+ *clut_entry++ = (_GREY_MULUQ(BMP_BLUE-BMP_BLUE_BASE, i) >> 7) +
+ BMP_BLUE_BASE;
+ *clut_entry++ = (_GREY_MULUQ(BMP_GREEN-BMP_GREEN_BASE, i) >> 7) +
+ BMP_GREEN_BASE;
+ *clut_entry++ = (_GREY_MULUQ(BMP_RED-BMP_RED_BASE, i) >> 7) +
+ BMP_RED_BASE;
+#else
*clut_entry++ = _GREY_MULUQ(BMP_BLUE, i) >> 7;
*clut_entry++ = _GREY_MULUQ(BMP_GREEN, i) >> 7;
*clut_entry++ = _GREY_MULUQ(BMP_RED, i) >> 7;
+#endif
clut_entry++;
}
_grey_info.rb->write(fd, linebuf, 4*BMP_VARCOLORS);
diff --git a/manual/plugins/images/ss-cube-160x128x1.png b/manual/plugins/images/ss-cube-160x128x1.png
index 44823c6dca..f9ad35b80b 100644
--- a/manual/plugins/images/ss-cube-160x128x1.png
+++ b/manual/plugins/images/ss-cube-160x128x1.png
Binary files differ
diff --git a/manual/plugins/images/ss-fire-160x128x1.png b/manual/plugins/images/ss-fire-160x128x1.png
new file mode 100644
index 0000000000..d5234ec22d
--- /dev/null
+++ b/manual/plugins/images/ss-fire-160x128x1.png
Binary files differ
diff --git a/manual/plugins/images/ss-jpegviewer-160x128x1.png b/manual/plugins/images/ss-jpegviewer-160x128x1.png
new file mode 100644
index 0000000000..746f1e6f3d
--- /dev/null
+++ b/manual/plugins/images/ss-jpegviewer-160x128x1.png
Binary files differ
diff --git a/manual/plugins/images/ss-mandelbrot-160x128x1.png b/manual/plugins/images/ss-mandelbrot-160x128x1.png
new file mode 100644
index 0000000000..8486c34ab8
--- /dev/null
+++ b/manual/plugins/images/ss-mandelbrot-160x128x1.png
Binary files differ
diff --git a/manual/plugins/images/ss-plasma-160x128x1.png b/manual/plugins/images/ss-plasma-160x128x1.png
new file mode 100644
index 0000000000..4ed4818b82
--- /dev/null
+++ b/manual/plugins/images/ss-plasma-160x128x1.png
Binary files differ