From 6d44a0b122a2e5df4945d30d9ac11d2a2fc6d21d Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Sat, 7 Dec 2024 05:01:22 +0100 Subject: [PATCH] fix issue where game is shifted towards the bottom right after joining the lobby twice --- src/dd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dd.c b/src/dd.c index c3cc184..eed4a76 100644 --- a/src/dd.c +++ b/src/dd.c @@ -669,7 +669,7 @@ HRESULT dd_SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwFl int x = (g_config.window_rect.left != -32000) ? g_config.window_rect.left : (cy / 2) - (g_ddraw->render.width / 2); int y = (g_config.window_rect.top != -32000) ? g_config.window_rect.top : (cx / 2) - (g_ddraw->render.height / 2); - if (nonexclusive) + if (g_ddraw->fullscreen) { x = y = 0; }