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

Method scale_up_step

src/ClientData.cpp:182–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182void ClientData::scale_up_step(const NetworkingObjects::NetObjTemporaryPtr<ClientData>& o, World& world) {
183 o->gridSize++;
184 world.scale_up(CANVAS_SCALE_UP_STEP);
185 o.send_update_to_all(RELIABLE_COMMAND_CHANNEL, [](const NetObjTemporaryPtr<ClientData>& o, cereal::PortableBinaryOutputArchive & a) {
186 a(ClientDataCommand::SET_GRID_SIZE, o->gridSize);
187 });
188}
189
190void ClientData::set_display_name(const std::string& newDisplayName) {
191 displayName = newDisplayName;

Callers

nothing calls this directly

Calls 2

scale_upMethod · 0.45
send_update_to_allMethod · 0.45

Tested by

no test coverage detected