mirror of
https://github.com/X11Libre/xf86-video-sis.git
synced 2026-03-24 01:25:01 +00:00
Fixed misprint in condition blocks with not used LCDheight (512x384, 400x300)
Signed-off-by: Семёнов Герман <GermanAizek@yandex.ru> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/-/merge_requests/33>
This commit is contained in:
committed by
Marge Bot
parent
4f24960405
commit
42b78bc094
@@ -341,12 +341,12 @@ SiS_GetModeID(int VGAEngine, unsigned int VBFlags, int HDisplay, int VDisplay,
|
||||
}
|
||||
break;
|
||||
case 400:
|
||||
if((!(VBFlags & CRT1_LCDA)) || ((LCDwidth >= 800) && (LCDwidth >= 600))) {
|
||||
if((!(VBFlags & CRT1_LCDA)) || ((LCDwidth >= 800) && (LCDheight >= 600))) {
|
||||
if(VDisplay == 300) ModeIndex = ModeIndex_400x300[Depth];
|
||||
}
|
||||
break;
|
||||
case 512:
|
||||
if((!(VBFlags & CRT1_LCDA)) || ((LCDwidth >= 1024) && (LCDwidth >= 768))) {
|
||||
if((!(VBFlags & CRT1_LCDA)) || ((LCDwidth >= 1024) && (LCDheight >= 768))) {
|
||||
if(VDisplay == 384) ModeIndex = ModeIndex_512x384[Depth];
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user