X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Modules%2FDisplay%2FVESA%2Fmain.c;h=69292933d130ad73ae303222c13ce546e74176d0;hb=7f07ccaa4d128305aed6f67f1f57a5c9276a895f;hp=e960888f61a0a367c355cd517fbedb8d93518ee2;hpb=d1714d8a27a603ce8ac4ba91e8c0c3d060d767ee;p=tpg%2Facess2.git diff --git a/Modules/Display/VESA/main.c b/Modules/Display/VESA/main.c index e960888f..69292933 100644 --- a/Modules/Display/VESA/main.c +++ b/Modules/Display/VESA/main.c @@ -70,10 +70,11 @@ int Vesa_Install(char **Arguments) return MODULE_ERR_NOTNEEDED; } + Log_Debug("Vesa", "info->VideoModes = %04x:%04x", info->VideoModes.seg, info->VideoModes.ofs); modes = (Uint16 *) VM8086_GetPointer(gpVesa_BiosState, info->VideoModes.seg, info->VideoModes.ofs); // Read Modes - for( giVesaModeCount = 1; modes[giVesaModeCount] != 0xFFFF; giVesaModeCount++ ); + for( giVesaModeCount = 0; modes[giVesaModeCount] != 0xFFFF; giVesaModeCount++ ); gVesa_Modes = (tVesa_Mode *)malloc( giVesaModeCount * sizeof(tVesa_Mode) ); // Insert Text Mode @@ -95,8 +96,6 @@ int Vesa_Install(char **Arguments) gpVesa_BiosState->DI = modeinfoPtr.ofs; VM8086_Int(gpVesa_BiosState, 0x10); - Log_Debug("Vesa", "gpVesa_BiosState->AX = 0x%04x", gpVesa_BiosState->AX); - // Parse Info gVesa_Modes[i].flags = 0; if ( (modeinfo->attributes & 0x90) == 0x90 )