mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-13 07:10:57 +00:00
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).
This commit is contained in:
parent
2e1535389a
commit
52317bb7df
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user