aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-02-14 13:34:00 +0000
committerMatt Fleming <matt.fleming@intel.com>2012-03-21 10:24:24 +0000
commit43499c9dc347ee858e9e395eba0954ec52a410ef (patch)
tree2912e76e39e34a50cc88bb39bf49387fe059bf47
parent3dcb4ec145d21c0ec1c4dc8b11cec61a4b88fc88 (diff)
downloadsyslinux-43499c9dc347ee858e9e395eba0954ec52a410ef.tar.gz
syslinux-43499c9dc347ee858e9e395eba0954ec52a410ef.tar.xz
syslinux-43499c9dc347ee858e9e395eba0954ec52a410ef.zip
core: Only adjust screen if we're in text mode
A bug was introduced in commit 9f51b69d ("core: Reimplement lots asm code in C") when converting the old asm comapi_usingvga function into C. We only want to adjust the screen if we're not using VGA. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r--core/graphics.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/core/graphics.c b/core/graphics.c
index 864550b1..4a4af55f 100644
--- a/core/graphics.c
+++ b/core/graphics.c
@@ -367,10 +367,6 @@ void pm_usingvga(com32sys_t *regs)
GXPixCols = regs->ecx.w[0];
GXPixRows = regs->edx.w[0];
- if (UsingVGA & 0x08)
- regs->eflags.l &= ~EFLAGS_CF;
- else {
+ if (!(UsingVGA & 0x08))
adjust_screen();
- set_flags(regs, EFLAGS_CF);
- }
}