1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-04 23:03:10 +02:00

zgv: fix crash from attempt to start browser in 8-bit videomode

however: browser won't work correctly w/ 32-bit mode.  todo.
This commit is contained in:
David Kühling 2011-01-23 19:01:58 +01:00
parent 7fb69c0732
commit 0e75785f17

View File

@ -0,0 +1,20 @@
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)
{