| Summary: | SDL_SetWindowSize() has no effect | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Kees Blom <Kees.Blom> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | major | ||
| Priority: | P2 | CC: | jorgen |
| Version: | HG 2.0 | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
Updated this to Linux, since it seems like this is a Linux bug (due to the patch suggested). *** Bug 1724 has been marked as a duplicate of this bug. *** This should be fixed in latest HG version of SDL2. Commit fixing it: http://hg.libsdl.org/SDL/rev/f75b1bd8eabc |
SDL_SetWindowSize() has no effect, but when followed by SDL_SetWindowPosition() it has some effect, only the the window height then is set to the desired value, but the width is not. The latter problem can be fixed as follows: --- a/src/video/x11/SDL_x11window.c Mon Jun 04 12:31:14 2012 -0400 +++ b/src/video/x11/SDL_x11window.c Tue Jun 05 13:44:24 2012 +0200 @@ -762,7 +762,7 @@ XGetWMNormalHints(display, data->xwindow, sizehints, &userhints); - sizehints->min_width = sizehints->max_height = window->w; + sizehints->min_width = sizehints->max_width = window->w; sizehints->min_height = sizehints->max_height = window->h; XSetWMNormalHints(display, data->xwindow, sizehints);