|Anonymous | Login | Signup for a new account||2013-05-19 17:02 CEST|
|Main | My View | View Issues | Change Log | Roadmap | Repositories|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001783||Spring engine||General||public||2010-01-08 02:16||2011-05-13 03:46|
|Target Version||Fixed in Version|
|Summary||0001783: Screen resize before load is ineffective|
1) Run spring in a window.
2) As the game loads, resize the window.
The result is that the window actually resizes, but the entire view is displayed inside a rectangle the size of the original window.
Once the game finishes loading, it behaves as above, but you can then correctly resize the window (it will re-init GL, etc.)
I'm going to take a stab at this as I have time, since I've spent a bit of time in that area, and this really annoys me :)
|Tags||No tags attached.|
This only occurs with GML enabled. Perhaps someone who understand the threading (or SDL for that matter) here can offer some advice.
I fired up the debugger (gdb) and set a breakpoint in SpringApp.cpp inside the loop that polls for SDL_Event's. With GML (etc) disabled, what happens is that the process gets tied up handling initialization (game load), but SDL still has an appropriate event in its queue, so as soon as initialization completes, the event is caught by SDL_PollEvent() and the video is reinitialized.
With GML enabled however, no event is caught during this time, it is seemingly lost. Immediately following initialization, events are polled appropriately.
|afaik this is fixed in master, resize on load seems to work well there...|
|2010-01-08 02:16||stephenashelton||New Issue|
|2010-01-08 06:44||stephenashelton||Note Added: 0004474|
|2011-05-13 03:46||abma||Note Added: 0006655|
|2011-05-13 03:46||abma||Status||new => resolved|
|2011-05-13 03:46||abma||Resolution||open => fixed|
|2011-05-13 03:46||abma||Assigned To||=> abma|
|Copyright © 2000 - 2013 MantisBT Team|