Skip to content

Conversation

@DacoTaco
Copy link
Member

@DacoTaco DacoTaco commented May 31, 2025

some applications were depended on the structure of the video modes. to prevent breaking compatibility the rgb flag was removed and move to a function that returns the value

@shizmob : if you could verify this, that'd be great too ^^;

@DacoTaco DacoTaco requested a review from WinterMute May 31, 2025 18:04
@DacoTaco DacoTaco marked this pull request as ready for review May 31, 2025 18:19
libogc/video.c Outdated
currTiming = __gettiming(vimode);
currTvMode = HorVer.tv;
currRgb = HorVer.rgb;
currRgb = GX_FALSE;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

currRgb can be made a standard bool and just use false here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then __ViGetRgbMode can be refactored to return bool & use normal true/false in that function. GX_TRUE/GX_FALSE are there because somewhere in the GX code there are booleans that need to be 32bit

@DacoTaco DacoTaco force-pushed the refactor/videoStruct branch from 1298204 to 5aecf9a Compare June 3, 2025 18:39
@DacoTaco DacoTaco merged commit 4b3240b into master Jun 3, 2025
2 checks passed
@DacoTaco DacoTaco deleted the refactor/videoStruct branch June 3, 2025 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants