projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d570321
)
vesacon: if mode set failed, assume screen is unchanged
author
H. Peter Anvin
<hpa@zytor.com>
Wed, 13 Sep 2006 00:42:40 +0000
(17:42 -0700)
committer
H. Peter Anvin
<hpa@zytor.com>
Wed, 13 Sep 2006 00:42:40 +0000
(17:42 -0700)
com32/lib/sys/vesa/initvesa.c
patch
|
blob
|
history
diff --git
a/com32/lib/sys/vesa/initvesa.c
b/com32/lib/sys/vesa/initvesa.c
index
53ab4b7
..
8d7ab47
100644
(file)
--- a/
com32/lib/sys/vesa/initvesa.c
+++ b/
com32/lib/sys/vesa/initvesa.c
@@
-179,11
+179,8
@@
static int vesacon_set_mode(void)
rm.eax.w[0] = 0x4F02; /* Set SVGA video mode */
rm.ebx.w[0] = mode | 0x4000; /* Clear video RAM, use linear fb */
__intcall(0x10, &rm, &rm);
- if ( rm.eax.w[0] != 0x004F ) {
- rm.eax.w[0] = 0x0003; /* Set regular text mode */
- __intcall(0x10, &rm, NULL);
+ if ( rm.eax.w[0] != 0x004F )
return 9; /* Failed to set mode */
- }
/* Tell syslinux we changed video mode */
rm.eax.w[0] = 0x0017; /* Report video mode change */