From d961824f89e0c48cd6459e4c76c45013b3abc267 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Fri, 22 Feb 2019 19:54:17 +1100 Subject: [PATCH] fix issues compiling SDL backend --- src/Graphics.c | 2 +- src/Platform.c | 1 + src/Window.c | 4 +--- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Graphics.c b/src/Graphics.c index 71b054466..0852a530e 100644 --- a/src/Graphics.c +++ b/src/Graphics.c @@ -973,7 +973,7 @@ void Gfx_OnWindowResize(void) { /* The OpenGL backend is a bit verbose, since it's really 3 backends in one: * - OpenGL 1.1 (completely lacking GPU, fallbacks to say Windows built-in software rasteriser) * - OpenGL 1.5 or OpenGL 1.2 + GL_ARB_vertex_buffer_object (default desktop backend) - * - OpenGL ES 2.0 (alternative modern-ish backend) + * - OpenGL 2.0 (alternative modern-ish backend) */ #ifndef CC_BUILD_D3D9 #ifdef CC_BUILD_WIN diff --git a/src/Platform.c b/src/Platform.c index 48c307ae7..711f9c884 100644 --- a/src/Platform.c +++ b/src/Platform.c @@ -67,6 +67,7 @@ const ReturnCode ReturnCode_SocketWouldBlock = WSAEWOULDBLOCK; #include #include #include +#include #include #include #include diff --git a/src/Window.c b/src/Window.c index 8899fcabb..9ef4d4cf6 100644 --- a/src/Window.c +++ b/src/Window.c @@ -1984,8 +1984,6 @@ static void Window_ConnectEvents(void) { { kEventClassMouse, kEventMouseUp }, { kEventClassMouse, kEventMouseMoved }, { kEventClassMouse, kEventMouseDragged }, - { kEventClassMouse, kEventMouseEntered}, - { kEventClassMouse, kEventMouseExited }, { kEventClassMouse, kEventMouseWheelMoved }, { kEventClassKeyboard, kEventRawKeyDown }, @@ -2761,7 +2759,7 @@ void Window_ProcessEvents(void) { Event_RaiseVoid(&WindowEvents.Closing); SDL_DestroyWindow(win_handle); - Event_RaiseVoid(&WindowEvents.Closed); + Event_RaiseVoid(&WindowEvents.Destroyed); break; } }