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 { |