Skip to content

Commit

Permalink
ogc: set fullscreen height to EFB's height (#48)
Browse files Browse the repository at this point in the history
Since rendering happens on the EFB, we should report its height as the
fullscreen display's height. Failing to do so results in missing part of
the picture and/or in invalid memory accesses.
  • Loading branch information
mardy authored Jan 28, 2024
1 parent 50a85db commit 9ad504a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/ogc/SDL_ogcvideo.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ int OGC_VideoInit(_THIS)
SDL_zero(mode);
mode.format = SDL_PIXELFORMAT_ARGB8888;
mode.w = vmode->fbWidth;
mode.h = vmode->xfbHeight;
mode.h = vmode->efbHeight;
mode.refresh_rate = 60;
mode.driverdata = NULL;
if (SDL_AddBasicVideoDisplay(&mode) < 0) {
Expand Down

0 comments on commit 9ad504a

Please sign in to comment.