From 55ce36c531515707aff80c813dcbfcad0a0d51b2 Mon Sep 17 00:00:00 2001 From: Reece Mackie <20544390+Rover656@users.noreply.github.com> Date: Fri, 26 Apr 2019 20:55:47 +0100 Subject: [PATCH] Final commit --- projects/VS2017.UWP/raylib.App.UWP/App.cpp | 2 ++ projects/VS2017.UWP/raylib.App.UWP/BaseApp.h | 7 +++++++ src/core.c | 1 + src/utils.c | 1 + 4 files changed, 11 insertions(+) diff --git a/projects/VS2017.UWP/raylib.App.UWP/App.cpp b/projects/VS2017.UWP/raylib.App.UWP/App.cpp index 520d5d7f4..afcd2e38c 100644 --- a/projects/VS2017.UWP/raylib.App.UWP/App.cpp +++ b/projects/VS2017.UWP/raylib.App.UWP/App.cpp @@ -19,6 +19,8 @@ App::App() { //This does not work... need to fix this. SetConfigFlags(0); + + Setup(640, 480, "Hi"); } static int posX = 100; diff --git a/projects/VS2017.UWP/raylib.App.UWP/BaseApp.h b/projects/VS2017.UWP/raylib.App.UWP/BaseApp.h index 2d4cc0a02..3cae6e2ef 100644 --- a/projects/VS2017.UWP/raylib.App.UWP/BaseApp.h +++ b/projects/VS2017.UWP/raylib.App.UWP/BaseApp.h @@ -123,6 +123,13 @@ public: virtual void Load(Platform::String^ entryPoint) {} + void Setup(int width, int height) + { + //Set dimensions + this->width = width; + this->height = height; + } + virtual void Run() { //Get display dimensions diff --git a/src/core.c b/src/core.c index ff43ae08d..cbf4a4f18 100644 --- a/src/core.c +++ b/src/core.c @@ -808,6 +808,7 @@ void SetWindowIcon(Image image) // Set title for window (only PLATFORM_DESKTOP) void SetWindowTitle(const char *title) { + windowTitle = title; #if defined(PLATFORM_DESKTOP) glfwSetWindowTitle(window, title); #endif diff --git a/src/utils.c b/src/utils.c index dcdffaa66..eb79bd51f 100644 --- a/src/utils.c +++ b/src/utils.c @@ -222,6 +222,7 @@ UWPMessage* CreateUWPMessage(void) msg->Int0 = 0; msg->Int1 = 0; msg->Char0 = 0; + msg->Str0 = ""; msg->Float0 = 0; msg->Bool0 = false; return msg;