MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / scale_up

Method scale_up

src/World.cpp:638–648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

636}
637
638void 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
650bool 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)

Callers 3

canvas_scale_up_checkFunction · 0.45
register_classMethod · 0.45
scale_up_stepMethod · 0.45

Calls 2

logMethod · 0.80
getFunction · 0.50

Tested by

no test coverage detected