diff options
author | Guilherme Felipe <guilhermefelipecgs@gmail.com> | 2018-05-20 19:07:25 -0300 |
---|---|---|
committer | Guilherme Felipe <guilhermefelipecgs@gmail.com> | 2018-05-20 20:53:04 -0300 |
commit | 28d24c4f6689a622f4451b354797038fc00543e9 (patch) | |
tree | 1c296627f141a08491f726f8bad9c6b246a19312 /platform/osx | |
parent | 228b09bafbad467389dd851699df1a327fbdea21 (diff) |
Fix #19033
- Fix a bug when mouse is confined don't update the cursor shape.
- Don't let the mouse leave the window when resizing to a smaller
resolution when MOUSE_MODE_CONFINED.
- Fix set_borderless_window to preserve the actual video_mode.widht/height.
Diffstat (limited to 'platform/osx')
-rw-r--r-- | platform/osx/os_osx.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index bde0b4e898..6afe0211b2 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -1480,7 +1480,7 @@ void OS_OSX::set_cursor_shape(CursorShape p_shape) { if (cursor_shape == p_shape) return; - if (mouse_mode != MOUSE_MODE_VISIBLE) { + if (mouse_mode != MOUSE_MODE_VISIBLE && mouse_mode != MOUSE_MODE_CONFINED) { cursor_shape = p_shape; return; } |