diff --git a/milepost b/milepost index e7cce5e..1fd9d17 160000 --- a/milepost +++ b/milepost @@ -1 +1 @@ -Subproject commit e7cce5e36fd522a20666e73e945a6aeca1f4ed8b +Subproject commit 1fd9d17e8282f87ce07be10db1fdc4ae198775f7 diff --git a/src/main.c b/src/main.c index f73dbaa..874681f 100644 --- a/src/main.c +++ b/src/main.c @@ -479,9 +479,9 @@ void* orca_runloop(void* user) if(exports[G_EXPORT_FRAME_RESIZE]) { - vec2 size = mg_surface_get_size(app->surface); - u32 width = (u32)size.x; - u32 height = (u32)size.y; + mp_rect content = mp_window_get_content_rect(app->window); + u32 width = (u32)content.w; + u32 height = (u32)content.h; const void* args[2] = {&width, &height}; m3_Call(exports[G_EXPORT_FRAME_RESIZE], 2, args); } @@ -525,8 +525,8 @@ void* orca_runloop(void* user) if(exports[G_EXPORT_FRAME_RESIZE]) { - u32 width = (u32)event->move.contents.w; - u32 height = (u32)event->move.contents.h; + u32 width = (u32)event->move.content.w; + u32 height = (u32)event->move.content.h; const void* args[2] = {&width, &height}; m3_Call(exports[G_EXPORT_FRAME_RESIZE], 2, args); }