Skip to content
This repository has been archived by the owner on May 19, 2022. It is now read-only.

Commit

Permalink
Let the REDRAW EVENT take care of resize-redraws
Browse files Browse the repository at this point in the history
The redraw due to resizing was causing some lag when you resized
quickly because a bunch of render calls/resize events stacked up.
This doesn't occur with the internal event, and it still feels
responsive enough during resizing
  • Loading branch information
euank committed Mar 26, 2014
1 parent 1ebdff2 commit d279291
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/PonscripterLabel_event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1274,11 +1274,6 @@ int PonscripterLabel::eventLoop()
case SDL_WINDOWEVENT_RESTORED:
minimized_flag = false;
queueRerender();
/* fall through */
case SDL_WINDOWEVENT_EXPOSED:
case SDL_WINDOWEVENT_RESIZED:
//Make sure the texture gets stretched or whatever else need be done
rerender();
break;
case SDL_WINDOWEVENT_MINIMIZED:
minimized_flag = true;
Expand Down

0 comments on commit d279291

Please sign in to comment.