mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
Codechange: Use C++-ism for zeroing.
This commit is contained in:
parent
5ca979b1e2
commit
d16dc22fdf
@ -158,7 +158,7 @@ void VideoDriver_SDL::Paint()
|
||||
}
|
||||
SDL_UpdateWindowSurfaceRects(_sdl_window, &r, 1);
|
||||
|
||||
MemSetT(&_dirty_rect, 0);
|
||||
_dirty_rect = {};
|
||||
}
|
||||
|
||||
void VideoDriver_SDL::PaintThread()
|
||||
@ -347,7 +347,7 @@ bool VideoDriver_SDL::CreateMainSurface(uint w, uint h, bool resize)
|
||||
* gotten smaller, reset our dirty rects. GameSizeChanged() a bit lower
|
||||
* will mark the whole screen dirty again anyway, but this time with the
|
||||
* new dimensions. */
|
||||
MemSetT(&_dirty_rect, 0);
|
||||
_dirty_rect = {};
|
||||
|
||||
_screen.width = _sdl_surface->w;
|
||||
_screen.height = _sdl_surface->h;
|
||||
|
@ -378,7 +378,7 @@ void VideoDriver_Win32::Paint()
|
||||
|
||||
ReleaseDC(_wnd.main_wnd, dc);
|
||||
|
||||
MemSetT(&_dirty_rect, 0);
|
||||
_dirty_rect = {};
|
||||
}
|
||||
|
||||
void VideoDriver_Win32::PaintThread()
|
||||
|
Loading…
Reference in New Issue
Block a user