You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a bug. When calling GetCurrentMonitor() I noticed it gave a different value based on if the window was maximized or not, even if it was on the same monitor. It got really annoying so I tracked it down to this line:
The problem is when the window is maximized, its (x,y) position is equal to the position of the monitor the screen is rendered on. The code above checks if the window's bounds are fully in the monitor bounds inclusively. This is an off by one error and instead the two <= should be changed to <
The text was updated successfully, but these errors were encountered:
Apologies in advance for not using the template, I opened the issue by selecting the line in code view on GitHub and it didn't give a template to use, i didn't notice until after i posted.
I found a bug. When calling
GetCurrentMonitor()
I noticed it gave a different value based on if the window was maximized or not, even if it was on the same monitor. It got really annoying so I tracked it down to this line:raylib/src/rcore.c
Lines 1788 to 1792 in 5978358
The problem is when the window is maximized, its (x,y) position is equal to the position of the monitor the screen is rendered on. The code above checks if the window's bounds are fully in the monitor bounds inclusively. This is an off by one error and instead the two
<=
should be changed to<
The text was updated successfully, but these errors were encountered: