@@ -533,14 +533,19 @@ void Runtime::pollEvents(bool blocking) {
533533 case SDL_WINDOWEVENT_FOCUS_GAINED:
534534 break ;
535535 case SDL_WINDOWEVENT_RESIZED:
536+ case SDL_WINDOWEVENT_SIZE_CHANGED:
536537 onResize (ev.window .data1 , ev.window .data2 );
537538 break ;
538539 case SDL_WINDOWEVENT_EXPOSED:
540+ case SDL_WINDOWEVENT_SHOWN:
539541 _graphics->redraw ();
540542 break ;
541543 case SDL_WINDOWEVENT_LEAVE:
542544 _output->removeHover ();
543545 break ;
546+ default :
547+ trace (" Unhandled window event [%d]" , ev.window .event );
548+ break ;
544549 }
545550 break ;
546551 case SDL_DROPFILE:
@@ -611,8 +616,6 @@ void Runtime::setWindowRect(int x, int y, int width, int height) {
611616 logEntered ();
612617 if (width > 0 && height > 0 ) {
613618 SDL_SetWindowSize (_window, width, height);
614- _graphics->resize (width, height);
615- resize ();
616619 }
617620 if (x > 0 && y > 0 ) {
618621 SDL_SetWindowPosition (_window, x, y);
@@ -714,10 +717,13 @@ void Runtime::saveWindowRect() {
714717//
715718// System platform methods
716719//
720+ #pragma GCC diagnostic push
721+ #pragma GCC diagnostic ignored "-Wint-in-bool-context"
717722bool System::getPen3 () {
718723 SDL_PumpEvents ();
719724 return (SDL_BUTTON (SDL_BUTTON_LEFT) && SDL_GetMouseState (&_touchCurX, &_touchCurY));
720725}
726+ #pragma GCC diagnostic pop
721727
722728void System::completeKeyword (int index) const {
723729 if (get_focus_edit () && isEditing ()) {
0 commit comments