iiag / iiag-legacy

Iiag is a game
Other
7 stars 7 forks source link

SDL does not refresh with workspace swaping #39

Open sjrct opened 9 years ago

sjrct commented 9 years ago

When swapping away from an back to a running instance of the game, the window does not redraw until something happens.

Grissess commented 9 years ago

Suggested rectification: trigger either redraw() or just sdl_refresh() on a window expose event in sdl_default_handler().

This is presently defined in input.c, since most event handling is input handling, but that's also kind of silly because it means that display.c has to extern a lot of its state so that the default event handler can modify it.