From 52317bb7df6d153ec332e5403ef75cb7bc86b8f6 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Thu, 11 Feb 2021 11:19:33 +0100 Subject: Change: [SDL2] Remove unneeded delay of redrawing the screen In testing, I could find no reason why this statement is here. The comment is rather unclear (it states what it does, but not why it would be needed). This line of code was introduced with f4f40448, which gives no further insight on why it would be needed to have it here. As such, let's remove it and see if anyone else reports any problems with it. If so, this commit can be reverted and a more clear comment should be added what this line of code is dealing with (the WHY, not the WHAT). --- src/video/sdl2_v.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/video/sdl2_v.cpp b/src/video/sdl2_v.cpp index 49e8b4207..6beeeac5c 100644 --- a/src/video/sdl2_v.cpp +++ b/src/video/sdl2_v.cpp @@ -351,9 +351,6 @@ bool VideoDriver_SDL::CreateMainSurface(uint w, uint h, bool resize) _sdl_surface = _sdl_real_surface; } - /* Delay drawing for this cycle; the next cycle will redraw the whole screen */ - _num_dirty_rects = 0; - _screen.width = _sdl_surface->w; _screen.height = _sdl_surface->h; _screen.pitch = _sdl_surface->pitch / (bpp / 8); -- cgit v1.2.3-54-g00ecf