View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0001783 | Spring engine | General | public | 2010-01-08 02:16 | 2011-05-13 03:46 | ||||
Reporter | stephenashelton | ||||||||
Assigned To | abma | ||||||||
Priority | normal | Severity | trivial | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 0.80.5+git | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0001783: Screen resize before load is ineffective | ||||||||
Description | To 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 :) | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|
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. |
abma (administrator) 2011-05-13 03:46 |
afaik this is fixed in master, resize on load seems to work well there... |
![]() |
|||
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 |