소스 검색

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);