tsoding / musializer

Music Visualizer
MIT License
885 stars 92 forks source link

Use correct functions for getting window size #56

Closed auxves closed 7 months ago

auxves commented 9 months ago

In raylib 5.0, the GetRender(Width|Height) functions account for HighDPI on macOS, but this causes the issue mentioned in this comment: https://github.com/tsoding/musializer/issues/52#issuecomment-1824789213

I believe the correct way to get the window's width and height are the GetScreen(Width|Height) functions. On non-macOS platforms, they are currently identical, but that may change in the future.

rexim commented 7 months ago

Oh... This was already fixed in a different PR at #61 I probably didn't notice your PR at the time, sorry :sweat_smile: