From 8d3e190a25bc77c8b9c8ddfaee246b53dd3c8398 Mon Sep 17 00:00:00 2001 From: dwachs Date: Fri, 17 Feb 2017 12:22:51 +0100 Subject: [PATCH] FIX SDL2 no vertical black bars after resizing --- simutrans/trunk/simsys_s2.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/simutrans/trunk/simsys_s2.cc b/simutrans/trunk/simsys_s2.cc index f753da8..9fd213f 100644 --- a/simutrans/trunk/simsys_s2.cc +++ b/simutrans/trunk/simsys_s2.cc @@ -348,7 +348,10 @@ int dr_textur_resize(unsigned short** const textur, int width, int const height } fflush( NULL ); } - SDL_SetWindowSize( window, width, height ); + SDL_SetWindowSize( window, w, h ); + + display_set_actual_width( w ); + *textur = dr_textur_init(); return w; } -- 1.8.4.5