Open SoloByte opened 3 months ago
Do you get the issue using raylib 5.0 instead of raylib master?
I have just tested the 5.0 release of raylib and it works fine as well, no issue with the fullscreen.
I have a clue: If you install the app 'display menu' it will change your screen to an exact resolution instead of a systemwide scaling and then when you go fullscreen it scales properly to fullscreen size.
Before:
After:
I have had this exact problem with games before and this was a workaround for that too.
Its like when any of these are selected in your display preferences then its doing some kind of scaling in macos that messes this code up
But when you use Display Menu it deselects these "convenience" options and forces the screen to an exact resolution
I recognize that isn't a solution to the problem just a clue/workaround-in-some-cases. good luck
Thanks for the detailed information :)
I am curious why Begin/EndTextureMode cause this and why they only cause it in the raylib cs bindings? (and not raylib or raylib cslo)
Thanks for the detailed information :)
I am curious why Begin/EndTextureMode cause this and why they only cause it in the raylib cs bindings? (and not raylib or raylib cslo)
You are welcome. I am also curious about this. It doesn't add up. Perhaps theres some setting somewhere that is slightly different.
If you think of anything I could try to get it working let me know.
Issue description
When entering macOS fullscreen (clicking green button in the top left of the window or fn + F) only 1/ 4 of the screen is rendered.
BeginTextureMode()
andEndTextureMode()
cause this problem. When you comment out theBegin/EndTextureMode()
block in the code example the problem disappears. I have tested it with raylib master, raylib cs, and raylib cslo and only raylib cs has this problem.This only happens in "macOS Fullscreen mode" and not with
ToggleFullscreen()
orToggleBorderlessWindowed()
.Environment
MacBook Pro M2 macOS Sonoma 14.5
Issue screenshot
Green Button
Problem
How it looks with Begin/EndTextureMode() commented out.
Code example