Changeset - r11393:7f81c686e5e2
[Not reviewed]
master
0 1 0
glx - 15 years ago 2009-03-17 16:28:21
glx@openttd.org
(svn r15752) -Fix: don't try to (un)draw the cursor when the screen is not ready
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/gfx.cpp
Show inline comments
 
@@ -1285,6 +1285,9 @@ void ScreenSizeChanged()
 

	
 
void UndrawMouseCursor()
 
{
 
	/* Don't undraw the mouse cursor if the screen is not ready */
 
	if (_screen.dst_ptr == NULL) return;
 

	
 
	if (_cursor.visible) {
 
		Blitter *blitter = BlitterFactoryBase::GetCurrentBlitter();
 
		_cursor.visible = false;
 
@@ -1300,6 +1303,9 @@ void DrawMouseCursor()
 
	return;
 
#endif
 

	
 
	/* Don't draw the mouse cursor if the screen is not ready */
 
	if (_screen.dst_ptr == NULL) return;
 

	
 
	Blitter *blitter = BlitterFactoryBase::GetCurrentBlitter();
 
	int x;
 
	int y;
0 comments (0 inline, 0 general)