diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2018-09-03 16:04:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-03 16:04:38 +0200 |
| commit | f50dd682f6a0f9506daaf16fed06f4bc9efa6599 (patch) | |
| tree | 24e357eb4ca9a3f384bdee590ed61f1c5e13fec8 /platform/osx | |
| parent | 1ebfd918d4b56a53ff1223cdf1912aa89863bb8b (diff) | |
| parent | e5470cfa70121221fd9e51b085ec0dff259b5865 (diff) | |
Merge pull request #21727 from guilhermefelipecgs/fix_cursor_hotspot
Fix custom cursor hotspot
Diffstat (limited to 'platform/osx')
| -rw-r--r-- | platform/osx/os_osx.mm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index 79d7ec410a..16f1ff8e11 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -1605,6 +1605,7 @@ void OS_OSX::set_custom_mouse_cursor(const RES &p_cursor, CursorShape p_shape, c ERR_FAIL_COND(!texture.is_valid()); ERR_FAIL_COND(texture_size.width > 256 || texture_size.height > 256); + ERR_FAIL_COND(p_hotspot.x > texture_size.width || p_hotspot.y > texture_size.height); image = texture->get_data(); |