diff --git simsys_s2.cc simsys_s2.cc index c1c0946b9..30d1570e3 100644 --- simsys_s2.cc +++ simsys_s2.cc @@ -283,7 +283,6 @@ int dr_os_open(int width, int height, int const fullscreen) return 0; } DBG_MESSAGE("dr_os_open(SDL)", "SDL realized screen size width=%d, height=%d (internal w=%d, h=%d)", width, height, w, h ); - SDL_SetWindowSize( window, width, height ); SDL_ShowCursor(0); arrow = SDL_GetCursor(); @@ -343,8 +342,9 @@ int dr_textur_resize(unsigned short** const textur, int w, int const h ) } fflush( NULL ); } + display_set_actual_width( screen->w ); - SDL_SetWindowSize( window, width, height ); + *textur = dr_textur_init(); return screen->w; }