ldlinux: Don't update UsingVGA when we just want the value
authorMatt Fleming <matt.fleming@intel.com>
Thu, 24 Jan 2013 13:24:41 +0000 (13:24 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Thu, 24 Jan 2013 17:22:45 +0000 (17:22 +0000)
commit40a6839c9ed17518e5984f4ea3e5530cbcfeb4c3
tree78120f9c58004b6d18feff7755a15de79979b0eb
parentb1d6dbbb4cf1784ebb8dff0d772b6bc2cb5c89e3
ldlinux: Don't update UsingVGA when we just want the value

There was a bug introduced when this code was copied from the old 4.x
assembly implementation, we don't need to update UsingVGA everytime we
read a character, we only need its value when comparing it against the
DisplayMask.

This bug caused every other character to be displayed when only
writing to the text console, as well as other nasties such as making
syslinux_force_text_mode() think it's in VGA mode even when it's in
text mode.

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
com32/elflink/ldlinux/msg.c