gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/trunk r10875: Implement setInvalidatedRegi


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r10875: Implement setInvalidatedRegions for SDL gui
Date: Fri, 15 May 2009 12:36:51 +0200
User-agent: Bazaar (1.13.1)

------------------------------------------------------------
revno: 10875
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Fri 2009-05-15 12:36:51 +0200
message:
  Implement setInvalidatedRegions for SDL gui
modified:
  gui/sdl.cpp
  gui/sdlsup.h
=== modified file 'gui/sdl.cpp'
--- a/gui/sdl.cpp       2009-02-25 22:33:03 +0000
+++ b/gui/sdl.cpp       2009-05-15 10:36:51 +0000
@@ -38,6 +38,8 @@
 #include "gnash.h"
 #include "log.h"
 #include "sdlsup.h"
+#include "Range2d.h" // for Intersection of inv bounds
+#include "render_handler.h" // for setInvalidatedRegions
 
 using namespace std;
 
@@ -333,6 +335,17 @@
     renderBuffer();
 }
 
+/* public, overridden */
+void
+SDLGui::setInvalidatedRegions(const InvalidatedRanges& ranges)
+{
+    // forward to renderer
+    _renderer->set_invalidated_regions(ranges);
+    
+    // TODO: mark regions to be redrawn on next ::renderBuffer call ?
+
+}
+
 
 } // namespace gnash
 

=== modified file 'gui/sdlsup.h'
--- a/gui/sdlsup.h      2009-02-25 22:33:03 +0000
+++ b/gui/sdlsup.h      2009-05-15 10:36:51 +0000
@@ -61,6 +61,9 @@
 
     void key_event(SDL_KeyboardEvent * key, bool down);
 
+    // See gui.h for documentation
+    void setInvalidatedRegions(const InvalidatedRanges& ranges);
+
 private:
     unsigned int _timeout;
     bool         _core_trap;


reply via email to

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