mirror of
https://github.com/encounter/SDL.git
synced 2025-07-03 03:35:55 +00:00
Fixed build
This commit is contained in:
parent
680d0f043a
commit
4507083503
@ -288,12 +288,11 @@ SDL_SetWindowShape(SDL_Window *window,SDL_Surface *shape,SDL_WindowShapeMode *sh
|
|||||||
if (displayIndex >= _this->num_displays) {
|
if (displayIndex >= _this->num_displays) {
|
||||||
displayIndex = 0;
|
displayIndex = 0;
|
||||||
}
|
}
|
||||||
} else if (SDL_WINDOWPOS_ISUNDEFINED(y) || SDL_WINDOWPOS_ISCENTERED(y)) {
|
} else {
|
||||||
displayIndex = (y & 0xFFFF);
|
displayIndex = (y & 0xFFFF);
|
||||||
if (displayIndex >= _this->num_displays) {
|
if (displayIndex >= _this->num_displays) {
|
||||||
displayIndex = 0;
|
displayIndex = 0;
|
||||||
}
|
}
|
||||||
return displayIndex;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_GetDisplayBounds(displayIndex, &bounds);
|
SDL_GetDisplayBounds(displayIndex, &bounds);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user