From 350a1cf09fec0b970e1fd8fe68d5d4503037d95c Mon Sep 17 00:00:00 2001 From: REMqb Date: Sun, 19 May 2019 17:17:37 +0200 Subject: [PATCH] ~ Fix linux build ~ Fix dopler example --- examples/DopplerEffect/main.cpp | 2 +- src/Nazara/Renderer/Context.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/DopplerEffect/main.cpp b/examples/DopplerEffect/main.cpp index 24120a2f5..54a1169d0 100644 --- a/examples/DopplerEffect/main.cpp +++ b/examples/DopplerEffect/main.cpp @@ -70,7 +70,7 @@ int main() std::cout << "Sound position: " << pos << std::endl; // Si la position de la source atteint une certaine position, ou si l'utilisateur appuie sur echap - if (pos.x > Nz::Vector3f::Left().x*-50.f || Nz::Keyboard::IsKeyPressed(Nz::Keyboard::Escape)) + if (pos.x > Nz::Vector3f::Left().x*-50.f || Nz::Keyboard::IsKeyPressed(Nz::Keyboard::VKey::Escape)) sound.Stop(); // On arrĂȘte le son (Stoppant Ă©galement la boucle) clock.Restart(); diff --git a/src/Nazara/Renderer/Context.cpp b/src/Nazara/Renderer/Context.cpp index 7b4c62c9a..ba74b3800 100644 --- a/src/Nazara/Renderer/Context.cpp +++ b/src/Nazara/Renderer/Context.cpp @@ -14,6 +14,10 @@ #if defined(NAZARA_PLATFORM_SDL2) #include + + #if defined(NAZARA_PLATFORM_LINUX) + #define CALLBACK + #endif #elif defined(NAZARA_PLATFORM_WINDOWS) #include #elif defined(NAZARA_PLATFORM_GLX)