Re-review SetMouseCursor()
This commit is contained in:
parent
d2d481a295
commit
3ea2ee2e48
|
|
@ -864,10 +864,9 @@ void SetMouseCursor(int cursor)
|
||||||
{
|
{
|
||||||
if (CORE.Input.Mouse.cursor != cursor)
|
if (CORE.Input.Mouse.cursor != cursor)
|
||||||
{
|
{
|
||||||
EM_ASM( { document.getElementById('canvas').style.cursor = UTF8ToString($0); }, cursorLUT[cursor]);
|
if (!CORE.Input.Mouse.cursorHidden) EM_ASM( { document.getElementById('canvas').style.cursor = UTF8ToString($0); }, cursorLUT[cursor]);
|
||||||
|
|
||||||
CORE.Input.Mouse.cursor = cursor;
|
CORE.Input.Mouse.cursor = cursor;
|
||||||
CORE.Input.Mouse.cursorHidden = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user