mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-06-20 23:47:49 +00:00
Fixed build
This commit is contained in:
parent
2468fccf7f
commit
e2afc1f37a
|
@ -318,13 +318,7 @@ static void WIN_AddDisplay(_THIS, HMONITOR hMonitor, const MONITORINFOEXW *info,
|
||||||
if (SDL_wcscmp(driverdata->DeviceName, info->szDevice) == 0) {
|
if (SDL_wcscmp(driverdata->DeviceName, info->szDevice) == 0) {
|
||||||
SDL_bool moved = (index != i);
|
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) {
|
if (index >= _this->num_displays) {
|
||||||
/* This should never happen due to the check above, but just in case... */
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue