Fixes #75 Force screen update after changing window mode

This commit is contained in:
Stefan Arentz 2016-12-18 22:19:44 -05:00
parent 01d3ee8941
commit 531d469212
2 changed files with 7 additions and 0 deletions

View File

@ -87,6 +87,9 @@ static bool ewm_one_poll_event(struct ewm_one_t *one, SDL_Window *window) {
switch (event.type) {
case SDL_QUIT:
return false;
case SDL_WINDOWEVENT:
one->tty->screen_dirty = true;
break;
case SDL_KEYDOWN:
if (event.key.keysym.mod & KMOD_CTRL) {
if (event.key.keysym.sym >= SDLK_a && event.key.keysym.sym <= SDLK_z) {

View File

@ -326,6 +326,10 @@ static bool ewm_two_poll_event(struct ewm_two_t *two, SDL_Window *window) { // T
case SDL_QUIT:
return false;
case SDL_WINDOWEVENT:
two->screen_dirty = true;
break;
case SDL_JOYBUTTONDOWN:
if (event.jbutton.button < EWM_A2P_BUTTON_COUNT) {
two->buttons[event.jbutton.button] = 1;