Replies: 2 comments
-
The problem I find is we can not get the resolution prior to doing an InitWindow... Otherwise I would not set it to 0,0 ... And that might solve the issue. It might also solve another issue relating to screen refresh rate on VSYNC. Actuall,.y wait, I will try
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Nope that SetWindowSize did not do anything to fix it. And it didn't fix the Refresh Rate issue on VSYNC. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I did a few tests today concerning if I have a different aspect ratio on my screen than how my framebuffer is set.
A few tests results in good results and other tests failed.
Basically the test comprised of me going in Windows and setting the Primary Monitor resolution, then run my application.
Here are the flags that I use in the application;
FLAG_FULLSCREEN_MODE
FLAG_WINDOW_ALWAYS_RUN
FLAG_WINDOW_TOPMOST
FLAG_MSAA_4X_HINT
FLAG_VSYNC_HINT
And initialize the viewport as follows;
InitWindow(0, 0, "my app name");
So my display is an UltraWide 2560x1080 screen, and I did the following tests and will tell if they pass or fail:
PASS: Respect of screen borders
FAIL: Framebuffer shows outside Windows defined borders
2560x1080 = PASS
1920x1080 = FAIL (the frame displays full LCD width)
1768x992 = FAIL (the frame displays full LCD width)
1680x1050 = PASS
1680x1024 = PASS
1600x900 = PASS
1366x768 = PASS
1360x768 = PASS
1280x1024 = FAIL (the frame displays full LCD width)
1280x960 = FAIL (the frame displays full LCD width)
1280x800 = PASS
1280x768 = PASS
1280x720 = PASS
1176x664 = PASS
1152x864 = PASS
1024x768 = FAIL (the frame displays full LCD width)
800x600 = FAIL (the frame displays full LCD width)
(Yes I tested all possible screen resolutions offered by Windows Display settings, no change in Color settings)
What seems to happen is sometimes the screen is actually not set to the proper resolution on InitWindow, but the system will always report the proper resolution as set in Windows using GetScreenWidth() and GetScreenHeight().
So essentially it sometimes use 2560x1080 it seems as it's physical resolution (all FAIL attempts).
This seems like a strange issue, but I have noticed that a screen ratio equation could make this fail. Yet this is just guestimating at this point.
Beta Was this translation helpful? Give feedback.
All reactions