Skip to content

Commit c921357

Browse files
committed
fix crash on macOS HL
1 parent 53a22aa commit c921357

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

ndll/Mac64/lime-debug.hdll

0 Bytes
Binary file not shown.

ndll/Mac64/lime.hdll

0 Bytes
Binary file not shown.

project/src/backend/sdl3/SDLSystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ namespace lime {
487487
hl_dyn_setp (display, id_bounds, &hlt_dynobj, _bounds);
488488

489489
Rectangle safeAreaInsets;
490-
Display::GetSafeAreaInsets(id, &safeAreaInsets);
490+
Display::GetSafeAreaInsets(id - 1, &safeAreaInsets);
491491
vdynamic* _safeArea = (vdynamic*)hl_alloc_dynobj ();
492492
hl_dyn_seti (_safeArea, id_x, &hlt_i32, bounds.x + safeAreaInsets.x);
493493
hl_dyn_seti (_safeArea, id_y, &hlt_i32, bounds.y + safeAreaInsets.y);

0 commit comments

Comments
 (0)