Skip to content

Commit

Permalink
ogc: set fullscreen height to EFB's height
Browse files Browse the repository at this point in the history
Since rendering happens on the EFB, we should report it's 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 committed Jan 22, 2024
1 parent 223d7c5 commit 13c2e75
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 13c2e75

Please sign in to comment.