src/gfx.cpp
changeset 7950 3d3ed007127a
parent 7918 3b2e2a49a093
child 8041 63e760418a15
equal deleted inserted replaced
7949:1fcfd903d923 7950:3d3ed007127a
    60 	Blitter *blitter = BlitterFactoryBase::GetCurrentBlitter();
    60 	Blitter *blitter = BlitterFactoryBase::GetCurrentBlitter();
    61 
    61 
    62 	if (xo == 0 && yo == 0) return;
    62 	if (xo == 0 && yo == 0) return;
    63 
    63 
    64 	if (_cursor.visible) UndrawMouseCursor();
    64 	if (_cursor.visible) UndrawMouseCursor();
    65 	UndrawTextMessage();
    65 	UndrawChatMessage();
    66 
    66 
    67 	blitter->ScrollBuffer(_screen.dst_ptr, left, top, width, height, xo, yo);
    67 	blitter->ScrollBuffer(_screen.dst_ptr, left, top, width, height, xo, yo);
    68 	/* This part of the screen is now dirty. */
    68 	/* This part of the screen is now dirty. */
    69 	_video_driver->MakeDirty(left, top, width, height);
    69 	_video_driver->MakeDirty(left, top, width, height);
    70 }
    70 }
   910 				bottom > _cursor.draw_pos.y &&
   910 				bottom > _cursor.draw_pos.y &&
   911 				top < _cursor.draw_pos.y + _cursor.draw_size.y) {
   911 				top < _cursor.draw_pos.y + _cursor.draw_size.y) {
   912 			UndrawMouseCursor();
   912 			UndrawMouseCursor();
   913 		}
   913 		}
   914 	}
   914 	}
   915 	UndrawTextMessage();
   915 	UndrawChatMessage();
   916 
   916 
   917 	DrawOverlappedWindowForAll(left, top, right, bottom);
   917 	DrawOverlappedWindowForAll(left, top, right, bottom);
   918 
   918 
   919 	_video_driver->MakeDirty(left, top, right - left, bottom - top);
   919 	_video_driver->MakeDirty(left, top, right - left, bottom - top);
   920 }
   920 }