Refactor xmake.lua and make some warnings as errors

This commit is contained in:
SirLynix
2023-04-30 21:11:30 +02:00
parent 445ed93fbb
commit 97f1c2c56c
21 changed files with 104 additions and 31 deletions

View File

@@ -117,6 +117,12 @@ namespace Nz
return false;
}
case WindowBackend::Web:
{
NazaraError("unsupported creation from a Web handle");
return false;
}
case WindowBackend::Cocoa: systemHandle = handle.cocoa.window; break;
case WindowBackend::X11: systemHandle = reinterpret_cast<void*>(std::uintptr_t(handle.x11.window)); break;
case WindowBackend::Windows: systemHandle = handle.windows.window; break;

View File

@@ -20,11 +20,11 @@ namespace Nz
}
Window::Window(Window&& window) noexcept :
m_cursorController(std::move(window.m_cursorController)),
m_cursor(std::move(window.m_cursor)),
m_eventHandler(std::move(window.m_eventHandler)),
m_icon(std::move(window.m_icon)),
m_impl(std::move(window.m_impl)),
m_cursorController(std::move(window.m_cursorController)),
m_eventHandler(std::move(window.m_eventHandler)),
m_closed(window.m_closed),
m_closeOnQuit(window.m_closeOnQuit),
m_ownsWindow(window.m_ownsWindow),