[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/gui gtk.cpp
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash/gui gtk.cpp |
Date: |
Wed, 18 Oct 2006 14:57:31 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 06/10/18 14:57:31
Modified files:
gui : gtk.cpp
Log message:
more protection of gnash::rect private data members, added a TODO item
in expose event handler
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gtk.cpp?cvsroot=gnash&r1=1.37&r2=1.38
Patches:
Index: gtk.cpp
===================================================================
RCS file: /sources/gnash/gnash/gui/gtk.cpp,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -b -r1.37 -r1.38
--- gtk.cpp 18 Oct 2006 14:17:58 -0000 1.37
+++ gtk.cpp 18 Oct 2006 14:57:31 -0000 1.38
@@ -528,33 +528,16 @@
GtkGui* gui = static_cast<GtkGui*>(data);
- // TODO: implement and use set_invalidated_region instead?
- //gui->renderBuffer();
-
// Set an invalidate region that contains the entire screen for sure
- rect draw_bounds;
- draw_bounds.m_x_min = -1e10f;
- draw_bounds.m_y_min = -1e10f;
- draw_bounds.m_x_max = +1e10f;
- draw_bounds.m_y_max = +1e10f;
+ // TODO: be more conservative in setting draw_bounds
+ // (look at the GdkEventExpose)
+ rect draw_bounds(-1e10f, -1e10f, +1e10f, +1e10f);
gui->set_invalidated_region(draw_bounds);
gui->renderBuffer();
return TRUE;
-
-#if 0 // old code
- GdkGLDrawable *const gldrawable = gtk_widget_get_gl_drawable(widget);
- g_assert(gldrawable);
- GdkGLContext *const glcontext = gtk_widget_get_gl_context(widget);
- g_assert(glcontext);
-
- if (event->count == 0
- && gdk_gl_drawable_make_current(gldrawable, glcontext)) {
- }
-#endif
-
}
// These event handlers are never used.