We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 606 - X11_SetWindowSize only calls XMoveWindow (Patch attached)
Summary: X11_SetWindowSize only calls XMoveWindow (Patch attached)
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86 Linux
: P2 major
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-29 16:33 UTC by couriersud
Modified: 2009-01-17 03:50 UTC (History)
1 user (show)

See Also:


Attachments
Patch to solve issue (603 bytes, patch)
2008-07-29 16:34 UTC, couriersud
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description couriersud 2008-07-29 16:33:13 UTC
In X11_SetWindowSize only XMoveWindow is called. XResizewindow should be called instead. In addition, the patch contains a call to SDL_OnWindowResized to make the renderer aware of the change. Specifically the opengl renderer needs this call. Eventually SDL_SetWindowSize would be a more appropriate place to call OnWindowResize.

The attached patch corrects the behaviour.
Comment 1 couriersud 2008-07-29 16:34:32 UTC
Created attachment 261 [details]
Patch to solve issue
Comment 2 Sam Lantinga 2008-11-25 12:08:14 UTC
Thank you very much for your patch for SDL 1.3!

Do you give me permission to release your code with SDL 1.3 and future
versions of SDL under both the LGPL and a closed-source commercial    
license?