Skip to content

Commit

Permalink
Better region check when setting the video mode center point
Browse files Browse the repository at this point in the history
Co-authored-by: Alberto Mardegan <[email protected]>
  • Loading branch information
Fancy2209 and mardy authored Feb 6, 2025
1 parent 412eb51 commit e254a96
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 @@ -165,7 +165,7 @@ static void add_supported_modes(SDL_VideoDisplay *display, u32 tv_format)
s_mode704.viWidth = 704;

// set Center point
if (&s_mode704 == &TVPal576IntDfScale || &s_mode704 == &TVPal576ProgScale) {
if (VI_FORMAT_FROM_MODE(s_mode704.viTVMode) == VI_PAL) {
s_mode704.viXOrigin = (VI_MAX_WIDTH_PAL - s_mode704.viWidth) / 2;
s_mode704.viYOrigin = (VI_MAX_HEIGHT_PAL - s_mode704.viHeight) / 2;
} else {
Expand Down

0 comments on commit e254a96

Please sign in to comment.