Skip to content

Commit ac7f103

Browse files
authored
Fix overcomplication
1 parent 7e857f0 commit ac7f103

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/video/ogc/SDL_ogcvideo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ static int OGC_SetDisplayMode(_THIS, SDL_VideoDisplay *display,
227227
if (videodata->xfb[1])
228228
free(MEM_K1_TO_K0(videodata->xfb[1]));
229229

230-
setup_video_mode(_this, vmode, mode);
230+
setup_video_mode(_this, vmode, mode->w);
231231
return 0;
232232
}
233233

@@ -314,7 +314,7 @@ int OGC_VideoInit(_THIS)
314314
memset(videodata->gp_fifo, 0, DEFAULT_FIFO_SIZE);
315315
GX_Init(videodata->gp_fifo, DEFAULT_FIFO_SIZE);
316316

317-
setup_video_mode(_this, vmode, NULL);
317+
setup_video_mode(_this, vmode, vmode->fbWidth);
318318
GX_SetCopyClear(background, GX_MAX_Z24);
319319

320320
GX_SetPixelFmt(GX_PF_RGB8_Z24, GX_ZC_LINEAR);

0 commit comments

Comments
 (0)