XSDL: fixed 24bpp videomode
This commit is contained in:
@@ -126,7 +126,8 @@ int main( int argc, char* argv[] )
|
|||||||
if( !screenResOverride )
|
if( !screenResOverride )
|
||||||
{
|
{
|
||||||
XSDL_showConfigMenu(&resolutionW, &displayW, &resolutionH, &displayH, &builtinKeyboard, &screenButtons, port);
|
XSDL_showConfigMenu(&resolutionW, &displayW, &resolutionH, &displayH, &builtinKeyboard, &screenButtons, port);
|
||||||
sprintf( screenres, "%d/%dx%d/%dx%d", resolutionW, displayW, resolutionH, displayH, SDL_GetVideoInfo()->vfmt->BitsPerPixel );
|
sprintf( screenres, "%d/%dx%d/%dx%d", resolutionW, displayW, resolutionH, displayH,
|
||||||
|
SDL_GetVideoInfo()->vfmt->BitsPerPixel == 24 ? 32 : SDL_GetVideoInfo()->vfmt->BitsPerPixel );
|
||||||
}
|
}
|
||||||
|
|
||||||
XSDL_generateBackground( port, printHelp, 600 * resolutionW / resolutionH, 600 );
|
XSDL_generateBackground( port, printHelp, 600 * resolutionW / resolutionH, 600 );
|
||||||
|
|||||||
Reference in New Issue
Block a user