Merge branch 'master' into jgrpp
# Conflicts: # src/blitter/32bpp_anim.hpp # src/blitter/32bpp_base.hpp # src/blitter/8bpp_base.hpp # src/blitter/null.hpp # src/cheat_gui.cpp # src/gfx.cpp # src/linkgraph/linkgraph.cpp # src/spriteloader/grf.cpp # src/station_cmd.cpp
This commit is contained in:
@@ -204,7 +204,7 @@ static bool CreateMainSurface(uint w, uint h)
|
||||
_screen.dst_ptr = _allegro_screen->line[0];
|
||||
|
||||
/* Initialise the screen so we don't blit garbage to the screen */
|
||||
memset(_screen.dst_ptr, 0, _screen.height * _screen.pitch);
|
||||
memset(_screen.dst_ptr, 0, static_cast<size_t>(_screen.height) * _screen.pitch);
|
||||
|
||||
/* Set the mouse at the place where we expect it */
|
||||
poll_mouse();
|
||||
|
||||
Reference in New Issue
Block a user