1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-18 03:16:15 +02:00
openwrt-packages/zgv/patches/020-no-8bppforce.patch
David Kühling 0e75785f17 zgv: fix crash from attempt to start browser in 8-bit videomode
however: browser won't work correctly w/ 32-bit mode.  todo.
2011-01-23 19:01:58 +01:00

21 lines
750 B
Diff

Index: zgv-5.9/src/rcfile.c
===================================================================
--- zgv-5.9.orig/src/rcfile.c 2011-01-23 18:45:40.000000000 +0100
+++ zgv-5.9/src/rcfile.c 2011-01-23 18:46:43.000000000 +0100
@@ -482,9 +482,12 @@
int f;
int bpp_force=0;
-/* fairly kludgey... */
-if(mp==&cfg.fs_startmode)
- bpp_force=8; /* make sure file-sel modes are 8-bit */
+/* file-sel 8-bit modes don't work on the NanoNote. Also, there is no
+ * error-check in place, forcing 8bpp, causes a division by zero later on,
+ * as vga_getydim() returns zero */
+/* /\* fairly kludgey... *\/ */
+/* if(mp==&cfg.fs_startmode) */
+/* bpp_force=8; /\* make sure file-sel modes are 8-bit *\/ */
if(get_modenumber(arg,&f,bpp_force)==-1)
{