| 636 | } |
| 637 | |
| 638 | void World::scale_up(const WorldScalar& scaleUpAmount) { |
| 639 | Logger::get().log(Logger::LogType::DESKTOP_USERINFO, "Canvas scaled up"); |
| 640 | // drawProg will be sending info on committed objects/modified grids. These objects will NOT be scaled up. |
| 641 | // This means that the scale up message must be sent AFTER the World::scale_up function is called on our end |
| 642 | // if this client is the one responsible for the scale up |
| 643 | drawProg.scale_up(scaleUpAmount); |
| 644 | bMan.scale_up(scaleUpAmount); |
| 645 | gridMan.scale_up(scaleUpAmount); |
| 646 | drawData.cam.scale_up(*this, scaleUpAmount); |
| 647 | undo.scale_up(scaleUpAmount); |
| 648 | } |
| 649 | |
| 650 | bool World::should_ask_before_closing() { |
| 651 | // If it's a client that didn't save to a file previously, we can ignore asking before quitting (probably don't intend to save anyway) |
no test coverage detected