mathstuf / abagames-gunroar

Modernization of gunroar (http://www.asahi-net.or.jp/~cs8k-cyu/windows/gr_e.html)
7 stars 0 forks source link

Fullscreen does not work #1

Open mathstuf opened 10 years ago

mathstuf commented 10 years ago

Currently the window disappears soon after appearing on Linux.

mathstuf commented 10 years ago

Inspection of the event queue shows this difference:

Dropping a window event: 1
Dropping a window event: 6
Dropping a window event: 5
Dropping a window event: 3
Dropping a window event: 10
Dropping a window event: 11
Dropping a window event: 3
Dropping a window event: 10
Dropping a window event: 6
Dropping a window event: 2
Dropping a window event: 7
Dropping a window event: 11

for fullscreen versus:

Dropping a window event: 1
Dropping a window event: 10

for windowed mode. It looks like SDL first creates and maps a window based on these events, but the "7" event indicates a minimize event coming through which I'm guessing is the reason it disappears. See http://wiki.libsdl.org/SDL_WindowEventID for the event table.