summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Borca <dborca@users.sourceforge.net>2004-01-20 14:15:35 +0000
committerDaniel Borca <dborca@users.sourceforge.net>2004-01-20 14:15:35 +0000
commitd4636e74c86fad221c57a3a1704106e2367fc230 (patch)
treeccb004314f693c657bdd0fa12b6e9d95c660d136 /src
parente755144e797ded1679d828ba58cff9e7861e59cd (diff)
fixed a bug in VGA initialization routine
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dos/vga.c22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/mesa/drivers/dos/vga.c b/src/mesa/drivers/dos/vga.c
index 3a4bd9b687..c8c0151ce3 100644
--- a/src/mesa/drivers/dos/vga.c
+++ b/src/mesa/drivers/dos/vga.c
@@ -23,7 +23,7 @@
*/
/*
- * DOS/DJGPP device driver v1.5 for Mesa
+ * DOS/DJGPP device driver v1.6 for Mesa
*
* Copyright (C) 2002 - Borca Daniel
* Email : dborca@users.sourceforge.net
@@ -40,8 +40,24 @@
static vl_mode modes[] = {
- {0x13 | 0x4000, 320, 200, 320, 8, -1, 320*200},
- {0xffff, -1, -1, -1, -1, -1, -1}
+ {
+ /* .xres = */ 320,
+ /* .yres = */ 200,
+ /* .bpp = */ 8,
+ /* .mode = */ 0x13 | 0x4000,
+ /* .scanlen = */ 320,
+ /* .sel = */ -1,
+ /* .gran = */ 320*200
+ },
+ {
+ /* .xres = */ -1,
+ /* .yres = */ -1,
+ /* .bpp = */ -1,
+ /* .mode = */ 0xffff,
+ /* .scanlen = */ -1,
+ /* .sel = */ -1,
+ /* .gran = */ -1
+ }
};
static word16 vga_ver;