OnFrameResize()
handler doesn't get passed the same values on macOS and Windows #17
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
MP_EVENT_WINDOW_RESIZE
event gets passed the window's contents rect on macos, but the window's frame (including title bar) on windows.We can get either using
mp_window_get_frame()
ormp_window_get_content_rect()
, but which one should the event itself contain?Also, should the wasm apps be aware of their window frame, or only of their drawable contents rect?
Browsers allow you to query both the "inner" and "outer" sizes of the window, and I think it would be fine for us to support both. That said, I think the size of the content area is far more important.
Fixed by
23f0d75e20
.OnFrameResize()
now receives the window contents dimensions on both platforms.