View Issue Details

IDProjectCategoryView StatusLast Update
0001783Spring engineGeneralpublic2011-05-13 03:46
Reporterstephenashelton Assigned Toabma  
PrioritynormalSeveritytrivialReproducibilityalways
Status resolvedResolutionfixed 
Product Version0.80.5+git 
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.
Checked infolog.txt for Errors

Activities

stephenashelton

2010-01-08 06:44

reporter   ~0004474

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.

abma

2011-05-13 03:46

administrator   ~0006655

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