diff --git a/projects/VS2017.UWP/raylib.App.UWP/App.cpp b/projects/VS2017.UWP/raylib.App.UWP/App.cpp index dd1156a4..ad3fdb28 100644 --- a/projects/VS2017.UWP/raylib.App.UWP/App.cpp +++ b/projects/VS2017.UWP/raylib.App.UWP/App.cpp @@ -5,7 +5,7 @@ using namespace raylibUWP; -// The main function creates an IFrameworkViewSource for our app, and runs the app. +// The main function creates an IFrameworkViewSource for our app, and runs the app [Platform::MTAThread] int main(Platform::Array^) { diff --git a/projects/VS2017.UWP/raylib.App.UWP/App.h b/projects/VS2017.UWP/raylib.App.UWP/App.h index fa33237d..7b96d16e 100644 --- a/projects/VS2017.UWP/raylib.App.UWP/App.h +++ b/projects/VS2017.UWP/raylib.App.UWP/App.h @@ -16,10 +16,10 @@ namespace raylibUWP { ref class App sealed : public BaseApp { - public: - App(); + public: - // IFrameworkView Methods. - void Update() override; + App(); + + void Update() override; }; } diff --git a/projects/VS2017.UWP/raylib.App.UWP/BaseApp.h b/projects/VS2017.UWP/raylib.App.UWP/BaseApp.h index 7f59c3de..87b952e5 100644 --- a/projects/VS2017.UWP/raylib.App.UWP/BaseApp.h +++ b/projects/VS2017.UWP/raylib.App.UWP/BaseApp.h @@ -119,7 +119,7 @@ public: handle = (EGLNativeWindowType)window; - InitWindow(width, height, NULL); + InitWindow(width, height, "raylib game example"); } virtual void Load(Platform::String^ entryPoint) {} diff --git a/projects/VS2017.UWP/raylib.App.UWP/raylib.App.UWP.vcxproj.filters b/projects/VS2017.UWP/raylib.App.UWP/raylib.App.UWP.vcxproj.filters new file mode 100644 index 00000000..1e0fe362 --- /dev/null +++ b/projects/VS2017.UWP/raylib.App.UWP/raylib.App.UWP.vcxproj.filters @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + Logo + + + Logo + + + Logo + + + Logo + + + Logo + + + + + + + + + + + {cdf72d55-f249-4ad6-9a91-f8a084e64933} + + + \ No newline at end of file diff --git a/src/core.c b/src/core.c index 72141968..2f258f99 100644 --- a/src/core.c +++ b/src/core.c @@ -3149,8 +3149,8 @@ static bool InitGraphicsDevice(int width, int height) } // Get EGL device window size - eglQuerySurface(CORE.Window.device, CORE.Window.surface, EGL_WIDTH, &CORE.Window.screen.width); - eglQuerySurface(CORE.Window.device, CORE.Window.surface, EGL_HEIGHT, &CORE.Window.screen.height); + eglQuerySurface(CORE.Window.device, CORE.Window.surface, EGL_WIDTH, &CORE.Window.display.width); + eglQuerySurface(CORE.Window.device, CORE.Window.surface, EGL_HEIGHT, &CORE.Window.display.height); #endif // PLATFORM_UWP @@ -3263,8 +3263,8 @@ static bool InitGraphicsDevice(int width, int height) else { // Grab the width and height of the surface - //eglQuerySurface(CORE.Window.device, CORE.Window.surface, EGL_WIDTH, &CORE.Window.render.width); - //eglQuerySurface(CORE.Window.device, CORE.Window.surface, EGL_HEIGHT, &CORE.Window.render.height); + CORE.Window.render.width = CORE.Window.display.width; + CORE.Window.render.height = CORE.Window.display.height; TRACELOG(LOG_INFO, "DISPLAY: Device initialized successfully"); TRACELOG(LOG_INFO, " > Display size: %i x %i", CORE.Window.display.width, CORE.Window.display.height);