Fixed cursor change not showing immediatly
Fixed error message when failed to create icon
This commit is contained in:
parent
bcf36e7a14
commit
d97e4a7f43
|
|
@ -31,7 +31,7 @@ bool NzIcon::Create(const NzImage& icon)
|
|||
m_impl = new NzIconImpl;
|
||||
if (!m_impl->Create(icon))
|
||||
{
|
||||
NazaraError("Failed to create cursor implementation");
|
||||
NazaraError("Failed to create icon implementation");
|
||||
delete m_impl;
|
||||
m_impl = nullptr;
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -347,6 +347,8 @@ void NzWindowImpl::SetCursor(nzWindowCursor cursor)
|
|||
void NzWindowImpl::SetCursor(const NzCursor& cursor)
|
||||
{
|
||||
m_cursor = cursor.m_impl->GetCursor();
|
||||
|
||||
::SetCursor(m_cursor);
|
||||
}
|
||||
|
||||
void NzWindowImpl::SetEventListener(bool listener)
|
||||
|
|
|
|||
Loading…
Reference in New Issue