@@ -1612,6 +1612,7 @@ void Main_Window::copy_selection() const {
16121612 if (!_selection.selected_multiple () || _selection.from_tileset ()) { return ; }
16131613 size_t ow = _selection.width (), oh = _selection.height ();
16141614 int z = Config::zoom ();
1615+ float scale = fl_override_scale ();
16151616 Fl_Copy_Surface *surface = new Fl_Copy_Surface (ow * TILE_SIZE * z, oh * TILE_SIZE * z);
16161617 surface->set_current ();
16171618 size_t ox = _selection.left_col (), oy = _selection.top_row ();
@@ -1624,6 +1625,7 @@ void Main_Window::copy_selection() const {
16241625 }
16251626 delete surface;
16261627 Fl_Display_Device::display_device ()->set_current ();
1628+ fl_restore_scale (scale);
16271629}
16281630
16291631void Main_Window::select_all () {
@@ -2308,11 +2310,13 @@ void Main_Window::print_cb(Fl_Widget *, Main_Window *mw) {
23082310
23092311 int w = (int )mw->_tilemap .width () * TILE_SIZE, h = (int )mw->_tilemap .height () * TILE_SIZE;
23102312 if (mw->_print_options_dialog ->copied ()) {
2313+ float scale = fl_override_scale ();
23112314 Fl_Copy_Surface *surface = new Fl_Copy_Surface (w, h);
23122315 surface->set_current ();
23132316 mw->_tilemap .print_tilemap ();
23142317 delete surface;
23152318 Fl_Display_Device::display_device ()->set_current ();
2319+ fl_restore_scale (scale);
23162320
23172321 std::string msg = " Copied to clipboard!" ;
23182322 mw->_success_dialog ->message (msg);
0 commit comments