xtreme8000 / BetterSpades

BetterSpades, an Ace of Spades client targeted at low end systems (GL/ES 1.1). Runs on your grandmother's rig!
https://aos.party/jenkins/job/BetterSpades/
GNU General Public License v3.0
243 stars 40 forks source link

(Wip) Fix UI bug mentioned on issue #145. #146

Closed Fran6nd closed 2 years ago

Fran6nd commented 2 years ago

First important question: am I the only one getting the issue #145 ? Because I am building and running bs on a Mac m1 which seems uncommon.

If It's only a matter of my hardware, I can easily make my patch work only for apple m1 using: 23:08:06 INFO main.c:733: Renderer: Apple M1

The solution found is ugly but I didn't want to modify micro ui. Let me know what's your thought.

Fran6nd commented 2 years ago

For now, I still need to resize the window before being able to use the app because the UI does not show up correctly. This is fixed by resizing the window (bigger or smaller, or fullscreen, does not matter).

Rakete175 commented 2 years ago

Hey! You are not the only one with that issue, I am having it too, on MacOS x86-64. I can confirm that your PR improves this issue a lot and my mouse seems to be now synced with the screen again.

Thank you a lot for fixing this!

Fran6nd commented 2 years ago

Hey! You are not the only one with that issue, I am having it too, on MacOS x86-64.

I can confirm that your PR improves this issue a lot and my mouse seems to be now synced with the screen again.

Thank you a lot for fixing this!

Good to know I am not alone... It seems to be a Mac OS problem and not only an apple m1 one ?

And when you launch the game not in full screen do you have the same bug as me ? As shown in the issue ?

Fran6nd commented 2 years ago

Following @yvt's suggestion, disabling the application-level Hi-DPI support seems to work. I am also working on an attempt to migrate to SDL2 to solve it but it's not done yet.