Mercurial > sdl-ios-xcode
comparison src/video/win32/SDL_win32window.c @ 2968:efe4d0ce2e97
Date: Fri, 02 Jan 2009 23:22:39 +0100
From: Couriersud
Subject: SDL1.3 Win32 Resize bug
the attached diff fixes a bug where width and height were exchanged when
resizing a window.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 02 Jan 2009 23:47:16 +0000 |
parents | 3fcb0d447bcd |
children | 94b634c56455 |
comparison
equal
deleted
inserted
replaced
2967:e4a469d6ddab | 2968:efe4d0ce2e97 |
---|---|
375 (style & WS_CHILDWINDOW) ? FALSE : (GetMenu(hwnd) != | 375 (style & WS_CHILDWINDOW) ? FALSE : (GetMenu(hwnd) != |
376 NULL), 0); | 376 NULL), 0); |
377 w = (rect.right - rect.left); | 377 w = (rect.right - rect.left); |
378 h = (rect.bottom - rect.top); | 378 h = (rect.bottom - rect.top); |
379 | 379 |
380 SetWindowPos(hwnd, top, 0, 0, h, w, (SWP_NOCOPYBITS | SWP_NOMOVE)); | 380 SetWindowPos(hwnd, top, 0, 0, w, h, (SWP_NOCOPYBITS | SWP_NOMOVE)); |
381 } | 381 } |
382 | 382 |
383 void | 383 void |
384 WIN_ShowWindow(_THIS, SDL_Window * window) | 384 WIN_ShowWindow(_THIS, SDL_Window * window) |
385 { | 385 { |