Skip to content

[rcore] Check if mode is valid on GetMonitorRefreshRate to avoid Segfault when removing Monitor#5235

Merged
raysan5 merged 1 commit into
raysan5:masterfrom
maiconpintoabreu:fix_monitor_issue
Oct 5, 2025
Merged

[rcore] Check if mode is valid on GetMonitorRefreshRate to avoid Segfault when removing Monitor#5235
raysan5 merged 1 commit into
raysan5:masterfrom
maiconpintoabreu:fix_monitor_issue

Conversation

@maiconpintoabreu
Copy link
Copy Markdown
Contributor

This PR is to fix the issue when removing a Monitor while getting information about it.
The issue was confirmed on Linux and Windows.

image image

Renamed vidmode to mode to match with methods like GetMonitorHeight and GetMonitorWidth.

@maiconpintoabreu maiconpintoabreu changed the title [rcore] Add check if video mode is valid and rename to match with other methods [rcore] Check if mode is valid on GetMonitorRefreshRate to avoid Segfault when removing Monitor Oct 5, 2025
@raysan5 raysan5 merged commit de50402 into raysan5:master Oct 5, 2025
16 checks passed
@raysan5
Copy link
Copy Markdown
Owner

raysan5 commented Oct 5, 2025

@maiconpintoabreu Nice! Thanks for the review!

@maiconpintoabreu maiconpintoabreu deleted the fix_monitor_issue branch March 10, 2026 11:00
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.

2 participants