mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 11:35:08 -04:00
fix issues compiling SDL backend
This commit is contained in:
parent
1f05ebe1af
commit
d961824f89
@ -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
|
||||
|
@ -67,6 +67,7 @@ const ReturnCode ReturnCode_SocketWouldBlock = WSAEWOULDBLOCK;
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/time.h>
|
||||
#include <utime.h>
|
||||
#include <poll.h>
|
||||
#include <signal.h>
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user