Преглед на файлове

Set the window width and height when moving

Frank Praznik преди 2 години
родител
ревизия
39e6d4a891
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/video/SDL_video.c

+ 1 - 1
src/video/SDL_video.c

@@ -2196,7 +2196,7 @@ int SDL_SetWindowPosition(SDL_Window *window, int x, int y)
                 window->x = bounds.x;
                 window->y = bounds.y;
                 window->w = bounds.w;
-                window->w = bounds.w;
+                window->h = bounds.h;
 
                 if (_this->SetWindowPosition) {
                     _this->SetWindowPosition(_this, window);