gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ChangeLog gui/sdl.cpp gui/sdlsup.h


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog gui/sdl.cpp gui/sdlsup.h
Date: Fri, 13 Oct 2006 15:56:34 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  06/10/13 15:56:34

Modified files:
        .              : ChangeLog 
        gui            : sdl.cpp sdlsup.h 

Log message:
        * gui/sdl.cpp, gui/sdlsup.h: added support for expose and resize 
events. (resize does nothing, just logs it).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.1198&r2=1.1199
http://cvs.savannah.gnu.org/viewcvs/gnash/gui/sdl.cpp?cvsroot=gnash&r1=1.36&r2=1.37
http://cvs.savannah.gnu.org/viewcvs/gnash/gui/sdlsup.h?cvsroot=gnash&r1=1.15&r2=1.16

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1198
retrieving revision 1.1199
diff -u -b -r1.1198 -r1.1199
--- ChangeLog   13 Oct 2006 15:30:07 -0000      1.1198
+++ ChangeLog   13 Oct 2006 15:56:33 -0000      1.1199
@@ -1,5 +1,7 @@
 2006-10-13 Sandro Santilli <address@hidden>
 
+       * gui/sdl.cpp, gui/sdlsup.h: added support for expose and
+         resize events. (resize does nothing, just logs it).
        * backend/render_handler_cairo.cpp (line_style_width): handle
          "hairline" width.
        * backend/render_handler_ogl.cpp (line_style_width): handle "hairline"

Index: gui/sdl.cpp
===================================================================
RCS file: /sources/gnash/gnash/gui/sdl.cpp,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -b -r1.36 -r1.37
--- gui/sdl.cpp 12 Oct 2006 19:08:26 -0000      1.36
+++ gui/sdl.cpp 13 Oct 2006 15:56:34 -0000      1.37
@@ -35,7 +35,7 @@
 // 
 //
 
-/* $Id: sdl.cpp,v 1.36 2006/10/12 19:08:26 nihilus Exp $ */
+/* $Id: sdl.cpp,v 1.37 2006/10/13 15:56:34 strk Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -169,6 +169,15 @@
             key_event(key, false);          
                                                break;
                                        }
+
+          case SDL_VIDEORESIZE:
+               resize_event();
+               break;
+
+          case SDL_VIDEOEXPOSE:
+               expose_event();
+               break;
+
           case SDL_QUIT:
             return true;
           break;
@@ -456,6 +465,19 @@
     }
 }
 
+void
+SDLGui::resize_event()
+{
+       log_msg("got resize_event ");
+}
+
+void
+SDLGui::expose_event()
+{
+       // TODO: implement and use set_invalidated_region instead?
+       renderBuffer();
+}
+
 
 } // namespace gnash
 

Index: gui/sdlsup.h
===================================================================
RCS file: /sources/gnash/gnash/gui/sdlsup.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- gui/sdlsup.h        9 Oct 2006 16:05:24 -0000       1.15
+++ gui/sdlsup.h        13 Oct 2006 15:56:34 -0000      1.16
@@ -77,11 +77,19 @@
 private:
     unsigned int    _timeout;
     SDL_Surface     *_screen;
+
+    /// Handle VIDEORESIZE event
+    void resize_event();
+
+    /// Handle VIDEOEXPOSE event
+    void expose_event();
+
 #ifdef RENDERER_CAIRO
     cairo_surface_t *_cairo_surface;
     cairo_t         *_cairo_handle;
     SDL_Surface     *_sdl_surface;
     unsigned char   *_render_image;
+
 #endif
     bool _core_trap;
 #ifdef FIX_I810_LOD_BIAS




reply via email to

[Prev in Thread] Current Thread [Next in Thread]