| 328 | } |
| 329 | |
| 330 | static 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 | |
| 344 | static void device_message_frame(ConsoleServer & /*cs*/, u32 /*client_id*/, const char * /*json*/, void *user_data) |
| 345 | { |