From a4b14badddcc6eb0e6e9a8f2c009211b8dc73b81 Mon Sep 17 00:00:00 2001 From: Kbz-8 Date: Sun, 15 Sep 2024 09:03:52 +0200 Subject: [PATCH] fixing compilation issues --- runtime/Includes/Core/Application.inl | 4 ++-- runtime/Sources/Core/Graphics.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/Includes/Core/Application.inl b/runtime/Includes/Core/Application.inl index c76adfb..d537068 100644 --- a/runtime/Includes/Core/Application.inl +++ b/runtime/Includes/Core/Application.inl @@ -8,7 +8,7 @@ Error("invalid window ptr (NULL)"); \ return; \ } \ - else if(std::find_if(m_graphics.begin(), m_graphics.end(), [win](const std::unique_ptr& gs){ return *static_cast(win) == gs->GetID(); } != m_graphics.end())) \ + else if(std::find_if(m_graphics.begin(), m_graphics.end(), [win](const std::unique_ptr& gs){ return *static_cast(win) == gs->GetID(); }) != m_graphics.end()) \ { \ Error("invalid window ptr"); \ return; \ @@ -63,7 +63,7 @@ namespace mlx void Application::GetScreenSize(Handle win, int* w, int* h) noexcept { CHECK_WINDOW_PTR(win); - m_graphics[*static_cast(win)]->GetWindow()->GetScreenSizeWindowIsOn(x, y); + m_graphics[*static_cast(win)]->GetWindow()->GetScreenSizeWindowIsOn(w, h); } void Application::SetFPSCap(std::uint32_t fps) noexcept diff --git a/runtime/Sources/Core/Graphics.cpp b/runtime/Sources/Core/Graphics.cpp index a2dbd33..7032816 100644 --- a/runtime/Sources/Core/Graphics.cpp +++ b/runtime/Sources/Core/Graphics.cpp @@ -3,7 +3,7 @@ namespace mlx { - GraphicsSupport::GraphicsSupport(std::size_t w, std::size_t h, NonOwningPtr render_target, int id) : + GraphicsSupport::GraphicsSupport([[maybe_unused]] std::size_t w, [[maybe_unused]] std::size_t h, NonOwningPtr render_target, int id) : m_put_pixel_manager(&m_renderer), p_window(nullptr), m_id(id),