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>
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);
- }
}