Commit 93ba205
sdl3: fix r_displayIndex on Linux
First of all, SDL always centers the window on all our platforms
regardless of whether "centered" or "undefined" position is requested.
It turns out that on Linux, requesting centering on display N makes it
center on display N, while requesting any position on display N means
center on unspecified display. So NUKE r_centerWindow and always request
centering since not centering is never possible and this makes
r_displayIndex be honored on Linux.1 parent b87e7e1 commit 93ba205
1 file changed
+2
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
476 | 475 | | |
477 | 476 | | |
478 | 477 | | |
| |||
886 | 885 | | |
887 | 886 | | |
888 | 887 | | |
889 | | - | |
890 | | - | |
891 | | - | |
892 | | - | |
893 | | - | |
894 | | - | |
895 | | - | |
896 | | - | |
897 | | - | |
898 | | - | |
899 | | - | |
900 | | - | |
| 888 | + | |
| 889 | + | |
901 | 890 | | |
902 | 891 | | |
903 | 892 | | |
| |||
2708 | 2697 | | |
2709 | 2698 | | |
2710 | 2699 | | |
2711 | | - | |
2712 | 2700 | | |
2713 | 2701 | | |
2714 | 2702 | | |
| |||
0 commit comments