src/screenshot.cpp
changeset 7481 699607d457a0
parent 7433 8e410e7ec0d7
child 7554 076c42f44a83
equal deleted inserted replaced
7480:d4d829c80c4f 7481:699607d457a0
   483 /* screenshot generator that dumps the current video buffer */
   483 /* screenshot generator that dumps the current video buffer */
   484 static void CurrentScreenCallback(void *userdata, void *buf, uint y, uint pitch, uint n)
   484 static void CurrentScreenCallback(void *userdata, void *buf, uint y, uint pitch, uint n)
   485 {
   485 {
   486 	Blitter *blitter = BlitterFactoryBase::GetCurrentBlitter();
   486 	Blitter *blitter = BlitterFactoryBase::GetCurrentBlitter();
   487 	void *src = blitter->MoveTo(_screen.dst_ptr, 0, y);
   487 	void *src = blitter->MoveTo(_screen.dst_ptr, 0, y);
   488 	blitter->CopyToBuffer(src, buf, _screen.width, n, pitch);
   488 	blitter->CopyImageToBuffer(src, buf, _screen.width, n, pitch);
   489 }
   489 }
   490 
   490 
   491 /* generate a large piece of the world */
   491 /* generate a large piece of the world */
   492 static void LargeWorldCallback(void *userdata, void *buf, uint y, uint pitch, uint n)
   492 static void LargeWorldCallback(void *userdata, void *buf, uint y, uint pitch, uint n)
   493 {
   493 {