Output is good now :P
This commit is contained in:
Charles Dang 2018-03-20 07:37:15 +11:00
parent 3a768cbdbe
commit f62ad8b1df

View file

@ -764,9 +764,13 @@ surface display::screenshot(bool map_screenshot)
texture output_texture(area.w, area.h, SDL_TEXTUREACCESS_TARGET);
const render_target_setter target_setter(output_texture);
map_screenshot_ = true;
DBG_DP << "draw() call for map screenshot\n";
draw();
map_screenshot_ = false;
// Restore map viewport position
xpos_ = old_xpos;
ypos_ = old_ypos;