diff options
author | Travis Howell | 2003-06-22 14:31:17 +0000 |
---|---|---|
committer | Travis Howell | 2003-06-22 14:31:17 +0000 |
commit | a700f90a5fc912b7ad3103e7e909e829dcc14b45 (patch) | |
tree | f38c0958c21dccd1344fa66da1bf142e12bd6493 /backends/sdl | |
parent | 9d09b77f2134b84bc989b2f2503297a8312d5e83 (diff) | |
download | scummvm-rg350-a700f90a5fc912b7ad3103e7e909e829dcc14b45.tar.gz scummvm-rg350-a700f90a5fc912b7ad3103e7e909e829dcc14b45.tar.bz2 scummvm-rg350-a700f90a5fc912b7ad3103e7e909e829dcc14b45.zip |
Revert poll_event change
svn-id: r8614
Diffstat (limited to 'backends/sdl')
-rw-r--r-- | backends/sdl/sdl_gl.cpp | 6 |
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) { |