]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg: Fix GraphicsConsole driver resolution out of sync issue
authorRuiyu Ni <ruiyu.ni@intel.com>
Mon, 11 Jan 2016 02:29:09 +0000 (02:29 +0000)
committerniruiyu <niruiyu@Edk2>
Mon, 11 Jan 2016 02:29:09 +0000 (02:29 +0000)
commite8e1bdd66afd5fe2d15a0b65a51ecc62755558a0
tree5a033b045d1b27fb0af302cc47071877ff9b45c8
parentde3ecb331fc45550d41d35110948cb96e32df08a
MdeModulePkg: Fix GraphicsConsole driver resolution out of sync issue

When the GOP doesn't support the resolution specified by
PcdVideoHorizontalResolution and PcdVideoVerticalResolution,
the code tries to set the resolution to 800x600 but uses the resolution
equals to the PCD when calculating the text print position.
The patch fixes the bug by updating the resolution to 800x600 for
this case.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19630 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c