aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/sdl/sdl_gl.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/backends/sdl/sdl_gl.cpp b/backends/sdl/sdl_gl.cpp
index a07e7b08ec..ddf4cd8491 100644
--- a/backends/sdl/sdl_gl.cpp
+++ b/backends/sdl/sdl_gl.cpp
@@ -47,7 +47,7 @@ public:
// Get the next event.
// Returns true if an event was retrieved.
- bool poll_event(Event *event);
+ //bool poll_event(Event *event);
protected:
FB2GL fb2gl;
@@ -505,13 +505,16 @@ void OSystem_SDL_OpenGL::update_screen() {
_forceFull = false;
}
+/*
bool OSystem_SDL_OpenGL::poll_event(Event *event) {
SDL_Event ev;
ev.type = 0;
+
SDL_PeepEvents(&ev, 1, SDL_GETEVENT, SDL_VIDEORESIZEMASK);
if (_usingOpenGL && ev.type == SDL_VIDEORESIZE) {
+ warning("This is a trigger");
int w = ev.resize.w;
int h = ev.resize.h;
glViewport(0, 0, (GLsizei)w, (GLsizei)h);
@@ -524,6 +527,7 @@ bool OSystem_SDL_OpenGL::poll_event(Event *event) {
return OSystem_SDL_Common::poll_event(event);
}
+*/
uint32 OSystem_SDL_OpenGL::property(int param, Property *value) {