From 64c23f8477d4b785e61f8a0a1ad02bf80469a3a9 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Mon, 10 Feb 2020 17:45:50 +0100 Subject: [PATCH] REVIEWED: VS2017.UWP project It seems there is some problem on drawing... :( --- projects/VS2017.UWP/raylib.App.UWP/App.cpp | 4 ++-- projects/VS2017.UWP/raylib.App.UWP/BaseApp.h | 4 ++-- projects/VS2017.UWP/raylib.App.UWP/raylib.App.UWP.vcxproj | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/projects/VS2017.UWP/raylib.App.UWP/App.cpp b/projects/VS2017.UWP/raylib.App.UWP/App.cpp index b738535fe..dd1156a42 100644 --- a/projects/VS2017.UWP/raylib.App.UWP/App.cpp +++ b/projects/VS2017.UWP/raylib.App.UWP/App.cpp @@ -57,9 +57,9 @@ void App::Update() //---------------------------------------------------------------------------------- BeginDrawing(); - ClearBackground(RAYWHITE); + ClearBackground(RED); - DrawRectangle(posX, posY, 400, 100, RED); + DrawRectangle(posX, posY, 400, 100, WHITE); DrawLine(0, 0, GetScreenWidth(), GetScreenHeight(), BLUE); diff --git a/projects/VS2017.UWP/raylib.App.UWP/BaseApp.h b/projects/VS2017.UWP/raylib.App.UWP/BaseApp.h index 4e71ba8a8..7f59c3ded 100644 --- a/projects/VS2017.UWP/raylib.App.UWP/BaseApp.h +++ b/projects/VS2017.UWP/raylib.App.UWP/BaseApp.h @@ -59,7 +59,7 @@ using namespace Windows::Graphics::Display; using namespace Microsoft::WRL; using namespace Platform; -extern "C" { EGLNativeWindowType uwpWindow; }; +extern "C" { EGLNativeWindowType handle; }; /* TODO list: @@ -117,7 +117,7 @@ public: // The CoreWindow has been created, so EGL can be initialized. - uwpWindow = (EGLNativeWindowType)window; + handle = (EGLNativeWindowType)window; InitWindow(width, height, NULL); } diff --git a/projects/VS2017.UWP/raylib.App.UWP/raylib.App.UWP.vcxproj b/projects/VS2017.UWP/raylib.App.UWP/raylib.App.UWP.vcxproj index 8296b654c..74d78d5ff 100644 --- a/projects/VS2017.UWP/raylib.App.UWP/raylib.App.UWP.vcxproj +++ b/projects/VS2017.UWP/raylib.App.UWP/raylib.App.UWP.vcxproj @@ -64,7 +64,7 @@ - mincore.lib;%(AdditionalDependencies) + mincore.lib;winmm.lib;%(AdditionalDependencies) %(AdditionalLibraryDirectories);$(VCInstallDir)\lib\store\arm;$(VCInstallDir)\lib\arm;$(SolutionDir)\raylib\Debug