r1965
dslinux_amadeus at dslinux.in-berlin.de
dslinux_amadeus at dslinux.in-berlin.de
Sun Oct 7 13:16:14 CEST 2007
Author: amadeus
Date: 2007-10-07 13:16:09 +0200 (Sun, 07 Oct 2007)
New Revision: 1965
Log:
Correct some items in the screen driver
Modified: trunk/user/microwin/src/drivers/scr_fb.c
===================================================================
--- trunk/user/microwin/src/drivers/scr_fb.c 2007-10-06 20:04:54 UTC (rev 1964)
+++ trunk/user/microwin/src/drivers/scr_fb.c 2007-10-07 11:16:09 UTC (rev 1965)
@@ -504,9 +504,15 @@
psi->bmask = 0x001f;
break;
case MWPF_TRUECOLOR555:
+#if NDSDRIVER
+ psi->bmask = 0x7c00;
+ psi->gmask = 0x03e0;
+ psi->rmask = 0x001f;
+#else
psi->rmask = 0x7c00;
psi->gmask = 0x03e0;
psi->bmask = 0x001f;
+#endif
break;
case MWPF_TRUECOLOR332:
psi->rmask = 0xe0;
@@ -529,7 +535,7 @@
/* VGA 640x480*/
psi->xdpcm = 27; /* assumes screen width of 24 cm*/
psi->ydpcm = 27; /* assumes screen height of 18 cm*/
- } else if(psd->yvirtres <= 240) {
+ } else if(psd->yvirtres >= 240) {
/* half VGA 640x240 */
psi->xdpcm = 14; /* assumes screen width of 24 cm*/
psi->ydpcm = 5;
More information about the dslinux-commit
mailing list