mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-23 15:52:41 +02:00
Merge pull request #642 from OlegAckbar/port
port: fix multi-monitor issues on Wayland
This commit is contained in:
1 file changed
+2
-2
@@ -108,8 +108,8 @@ static void gfx_sdl_init(const struct GfxWindowInitSettings *set) {
|
|||||||
int posY = set->y;
|
int posY = set->y;
|
||||||
int display_in_use = SDL_GetWindowDisplayIndex(wnd);
|
int display_in_use = SDL_GetWindowDisplayIndex(wnd);
|
||||||
if (display_in_use < 0) { // Fallback to default if out of bounds
|
if (display_in_use < 0) { // Fallback to default if out of bounds
|
||||||
posX = 100;
|
posX = SDL_WINDOWPOS_UNDEFINED;
|
||||||
posY = 100;
|
posY = SDL_WINDOWPOS_UNDEFINED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (set->centered) {
|
if (set->centered) {
|
||||||
|
|||||||
Reference in new issue
Block a user