summaryrefslogtreecommitdiff
path: root/platform/osx
diff options
context:
space:
mode:
authorGuilherme Felipe <guilhermefelipecgs@gmail.com>2018-04-05 13:07:44 -0300
committerGuilherme Felipe <guilhermefelipecgs@gmail.com>2018-04-05 15:41:09 -0300
commitdc57632d66215ecc08402d76e803d2d91a2e8f9c (patch)
treebf155b36fbbb7e716210743f469f790c90c055a0 /platform/osx
parenteaa5dfbdbd1217d62902f966496658770638c3d1 (diff)
Remove size restriction for mouse cursor
Diffstat (limited to 'platform/osx')
-rw-r--r--platform/osx/os_osx.mm4
1 files changed, 1 insertions, 3 deletions
diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm
index 18e5fc1404..0c5524dd08 100644
--- a/platform/osx/os_osx.mm
+++ b/platform/osx/os_osx.mm
@@ -1507,9 +1507,7 @@ void OS_OSX::set_custom_mouse_cursor(const RES &p_cursor, CursorShape p_shape, c
Ref<Texture> texture = p_cursor;
Ref<Image> image = texture->get_data();
- int image_size = 32 * 32;
-
- ERR_FAIL_COND(texture->get_width() != 32 || texture->get_height() != 32);
+ ERR_FAIL_COND(texture->get_width() > 256 || texture->get_height() > 256);
NSBitmapImageRep *imgrep = [[[NSBitmapImageRep alloc]
initWithBitmapDataPlanes:NULL