Skip to content

Commit e254a96

Browse files
Fancy2209mardy
andauthored
Better region check when setting the video mode center point
Co-authored-by: Alberto Mardegan <[email protected]>
1 parent 412eb51 commit e254a96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/video/ogc/SDL_ogcvideo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ static void add_supported_modes(SDL_VideoDisplay *display, u32 tv_format)
165165
s_mode704.viWidth = 704;
166166

167167
// set Center point
168-
if (&s_mode704 == &TVPal576IntDfScale || &s_mode704 == &TVPal576ProgScale) {
168+
if (VI_FORMAT_FROM_MODE(s_mode704.viTVMode) == VI_PAL) {
169169
s_mode704.viXOrigin = (VI_MAX_WIDTH_PAL - s_mode704.viWidth) / 2;
170170
s_mode704.viYOrigin = (VI_MAX_HEIGHT_PAL - s_mode704.viHeight) / 2;
171171
} else {

0 commit comments

Comments
 (0)