gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash/gui gui.cpp


From: Sandro Santilli
Subject: [Gnash-commit] gnash/gui gui.cpp
Date: Wed, 18 Oct 2006 15:46:59 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  06/10/18 15:46:59

Modified files:
        gui            : gui.cpp 

Log message:
        removed rect private access in region updates debuggin section

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gui.cpp?cvsroot=gnash&r1=1.33&r2=1.34

Patches:
Index: gui.cpp
===================================================================
RCS file: /sources/gnash/gnash/gui/gui.cpp,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -b -r1.33 -r1.34
--- gui.cpp     18 Oct 2006 15:20:17 -0000      1.33
+++ gui.cpp     18 Oct 2006 15:46:59 -0000      1.34
@@ -262,14 +262,19 @@
                // (Flash debug style)
                IF_DEBUG_REGION_UPDATES (
                        point corners[4];
-                       corners[0].m_x = draw_bounds.m_x_min;           
-                       corners[0].m_y = draw_bounds.m_y_min;           
-                       corners[1].m_x = draw_bounds.m_x_max;           
-                       corners[1].m_y = draw_bounds.m_y_min;           
-                       corners[2].m_x = draw_bounds.m_x_max;           
-                       corners[2].m_y = draw_bounds.m_y_max;           
-                       corners[3].m_x = draw_bounds.m_x_min;           
-                       corners[3].m_y = draw_bounds.m_y_max;
+                       float xmin = draw_bounds.get_x_min();
+                       float xmax = draw_bounds.get_x_max();
+                       float ymin = draw_bounds.get_y_min();
+                       float ymax = draw_bounds.get_y_max();
+
+                       corners[0].m_x = xmin;
+                       corners[0].m_y = ymin;
+                       corners[1].m_x = xmax;
+                       corners[1].m_y = ymin;
+                       corners[2].m_x = xmax;
+                       corners[2].m_y = ymax;
+                       corners[3].m_x = xmin;
+                       corners[3].m_y = ymax;
                        matrix dummy;           
                        gnash::render::set_matrix(dummy); // reset matrix
                        gnash::render::draw_poly(&corners[0], 4,




reply via email to

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