[syslinux] [PATCH 04/19] core: Only adjust screen if we're in text mode
Matt Fleming
matt at console-pimps.org
Fri Mar 23 11:02:38 PDT 2012
From: Matt Fleming <matt.fleming at intel.com>
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 at intel.com>
---
core/graphics.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/core/graphics.c b/core/graphics.c
index 864550b..4a4af55 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);
- }
}
--
1.7.4.4
More information about the Syslinux
mailing list