[osx] update milepost, more consistent window rect api

This commit is contained in:
Martin Fouilleul 2023-07-26 15:58:39 +02:00
parent 213663a09c
commit 756b085c5f
2 changed files with 6 additions and 6 deletions

@ -1 +1 @@
Subproject commit e7cce5e36fd522a20666e73e945a6aeca1f4ed8b
Subproject commit 1fd9d17e8282f87ce07be10db1fdc4ae198775f7

View File

@ -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);
}