MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001783Spring engineGeneralpublic2010-01-08 02:162011-05-13 03:46
Reporterstephenashelton 
Assigned Toabma 
PrioritynormalSeveritytrivialReproducibilityalways
StatusresolvedResolutionfixed 
Product Version0.80.5+git 
Target VersionFixed in Version 
Summary0001783: Screen resize before load is ineffective
DescriptionTo reproduce:

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 :)
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0004474)
stephenashelton (reporter)
2010-01-08 06:44

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.
(0006655)
abma (administrator)
2011-05-13 03:46

afaik this is fixed in master, resize on load seems to work well there...

- Issue History
Date Modified Username Field Change
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
Powered by Mantis Bugtracker