MCPcopy Create free account
hub / github.com/crownengine/crown / device_message_resize

Function device_message_resize

src/device/device.cpp:330–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330static void device_message_resize(ConsoleServer & /*cs*/, u32 /*client_id*/, const char *json, void * /*user_data*/)
331{
332 TempAllocator256 ta;
333 JsonObject obj(ta);
334 s32 width;
335 s32 height;
336
337 sjson::parse(obj, json);
338 width = sjson::parse_int(obj["width"]);
339 height = sjson::parse_int(obj["height"]);
340
341 device()->_window->resize((u16)width, (u16)height);
342}
343
344static void device_message_frame(ConsoleServer & /*cs*/, u32 /*client_id*/, const char * /*json*/, void *user_data)
345{

Callers

nothing calls this directly

Calls 4

deviceFunction · 0.85
parseFunction · 0.50
parse_intFunction · 0.50
resizeMethod · 0.45

Tested by

no test coverage detected