1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 09:39:43 +01:00

Update desktop_version/src/Graphics.cpp

Co-authored-by: Misa Elizabeth Kai <infoteddy@infoteddy.info>
This commit is contained in:
Ally 2024-02-03 22:04:14 -04:00 committed by Misa Elizabeth Kai
parent 77a571017d
commit 3e57d6620c

View file

@ -3492,8 +3492,8 @@ void Graphics::get_stretch_info(SDL_Rect* rect)
rect->y = (height - SCREEN_HEIGHT_PIXELS * scale) / 2; rect->y = (height - SCREEN_HEIGHT_PIXELS * scale) / 2;
rect->w = SCREEN_WIDTH_PIXELS * scale; rect->w = SCREEN_WIDTH_PIXELS * scale;
rect->h = SCREEN_HEIGHT_PIXELS * scale; rect->h = SCREEN_HEIGHT_PIXELS * scale;
break;
} }
break;
case SCALING_LETTERBOX: case SCALING_LETTERBOX:
if (width * SCREEN_HEIGHT_PIXELS > height * SCREEN_WIDTH_PIXELS) if (width * SCREEN_HEIGHT_PIXELS > height * SCREEN_WIDTH_PIXELS)
{ {