Commit 4507083503021c2ddbaa38aa7808938c6a91b7e6

Sam Lantinga 2022-10-10T09:39:55

Fixed build

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/src/video/SDL_shape.c b/src/video/SDL_shape.c
index c099ae1..ef4cc60 100644
--- a/src/video/SDL_shape.c
+++ b/src/video/SDL_shape.c
@@ -288,12 +288,11 @@ SDL_SetWindowShape(SDL_Window *window,SDL_Surface *shape,SDL_WindowShapeMode *sh
                 if (displayIndex >= _this->num_displays) {
                     displayIndex = 0;
                 }
-            } else if (SDL_WINDOWPOS_ISUNDEFINED(y) || SDL_WINDOWPOS_ISCENTERED(y)) {
+            } else {
                 displayIndex = (y & 0xFFFF);
                 if (displayIndex >= _this->num_displays) {
                     displayIndex = 0;
                 }
-                return displayIndex;
             }
 
             SDL_GetDisplayBounds(displayIndex, &bounds);