From 9267a9032e9f588286fbb7c6dc7fd4991cc0ab2c Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 1 Aug 2023 18:58:21 -0700
Subject: [PATCH] Fixed build
(cherry picked from commit e2afc1f37a2f0b38716e71147e41737e24ed4be7)
---
src/video/windows/SDL_windowsmodes.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/src/video/windows/SDL_windowsmodes.c b/src/video/windows/SDL_windowsmodes.c
index 438fcbe4a379..b8f47a13a196 100644
--- a/src/video/windows/SDL_windowsmodes.c
+++ b/src/video/windows/SDL_windowsmodes.c
@@ -318,13 +318,7 @@ static void WIN_AddDisplay(_THIS, HMONITOR hMonitor, const MONITORINFOEXW *info,
if (SDL_wcscmp(driverdata->DeviceName, info->szDevice) == 0) {
SDL_bool moved = (index != i);
- if (driverdata->state != DisplayRemoved) {
- /* We've already enumerated this display, don't move it */
- return;
- }
-
if (index >= _this->num_displays) {
- /* This should never happen due to the check above, but just in case... */
return;
}