XSDL: fixed 24bpp videomode

This commit is contained in:
Sergii Pylypenko
2020-02-26 23:06:15 +02:00
parent ee825d7cee
commit 610e43e388
2 changed files with 3 additions and 2 deletions

View File

@@ -126,7 +126,8 @@ int main( int argc, char* argv[] )
if( !screenResOverride )
{
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 );