src/screenshot.cpp
changeset 6624 880e29b1f25e
parent 6615 74ec6e68e831
child 6626 207875b9069a
equal deleted inserted replaced
6623:e35eb9de954b 6624:880e29b1f25e
   467 
   467 
   468 	dpi.dst_ptr = buf;
   468 	dpi.dst_ptr = buf;
   469 	dpi.height = n;
   469 	dpi.height = n;
   470 	dpi.width = vp->width;
   470 	dpi.width = vp->width;
   471 	dpi.pitch = pitch;
   471 	dpi.pitch = pitch;
   472 	dpi.zoom = 0;
   472 	dpi.zoom = ZOOM_LVL_WORLD_SCREENSHOT;
   473 	dpi.left = 0;
   473 	dpi.left = 0;
   474 	dpi.top = y;
   474 	dpi.top = y;
   475 
   475 
   476 	left = 0;
   476 	left = 0;
   477 	while (vp->width - left != 0) {
   477 	while (vp->width - left != 0) {
   538 static bool MakeWorldScreenshot()
   538 static bool MakeWorldScreenshot()
   539 {
   539 {
   540 	ViewPort vp;
   540 	ViewPort vp;
   541 	const ScreenshotFormat *sf;
   541 	const ScreenshotFormat *sf;
   542 
   542 
   543 	vp.zoom = 0;
   543 	vp.zoom = ZOOM_LVL_WORLD_SCREENSHOT;
   544 	vp.left = 0;
   544 	vp.left = 0;
   545 	vp.top = 0;
   545 	vp.top = 0;
   546 	vp.virtual_left = -(int)MapMaxX() * TILE_PIXELS;
   546 	vp.virtual_left = -(int)MapMaxX() * TILE_PIXELS;
   547 	vp.virtual_top = 0;
   547 	vp.virtual_top = 0;
   548 	vp.virtual_width = (MapMaxX() + MapMaxY()) * TILE_PIXELS;
   548 	vp.virtual_width = (MapMaxX() + MapMaxY()) * TILE_PIXELS;