[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-commit] gnash ChangeLog gui/gtk_glue_agg.cpp gui/gtk.cp...
From: |
Bastiaan Jacques |
Subject: |
Re: [Gnash-commit] gnash ChangeLog gui/gtk_glue_agg.cpp gui/gtk.cp... |
Date: |
Mon, 16 Oct 2006 18:03:27 +0200 |
User-agent: |
KMail/1.9.4 |
On Monday 16 October 2006 16:36, Hannes Mayr wrote:
> Index: gui/gtk.cpp
> ===================================================================
> RCS file: /sources/gnash/gnash/gui/gtk.cpp,v
> retrieving revision 1.33
> retrieving revision 1.34
> diff -u -b -r1.33 -r1.34
> --- gui/gtk.cpp 13 Oct 2006 16:38:55 -0000 1.33
> +++ gui/gtk.cpp 16 Oct 2006 14:36:22 -0000 1.34
> @@ -229,23 +229,12 @@
> return coord;
> }
>
> -// for some reason this doesn't work as expected yet. Still working
> on it. -#if 0
> void
> GtkGui::set_invalidated_region(const rect& bounds)
This function calls _renderer->world_to_pixel(), which, for
triangle-based renders such as OpenGL, has not been implemented (in
fact, it causes an assertion).
Bastiaan
> {
> -#ifdef RENDERER_AGG
> // forward to renderer
> _renderer->set_invalidated_region(bounds);
>
> - log_msg("GtkGui::set_invalidated_region: x1:%0.2f, y1:%0.2f,
> x2:%0.2f, y2:%0.2f\n", \ - bounds.m_x_min, \
> - bounds.m_y_min, \
> - bounds.m_x_max, \
> - bounds.m_y_max \
> - );
> -
> -
> if (bounds.m_x_max - bounds.m_x_min > 1e10f) {
> // Region is entire screen. Don't convert to integer as this
> will overflow.
> @@ -265,10 +254,18 @@
> m_draw_miny = valid_coord(m_draw_miny-2, _height);
> m_draw_maxx = valid_coord(m_draw_maxx+2, _width);
> m_draw_maxy = valid_coord(m_draw_maxy+2, _height);
> +
> }
> -#endif
> +
> + /*
> + log_msg("GtkGui::set_invalidated_region pixel: x1:%i, y1:%i,
> x2:%i, y2:%i\n", \ + m_draw_minx,
> + m_draw_miny, \
> + m_draw_maxx, \
> + m_draw_maxy \
> + );
> + */
> }
> -#endif
>
> void
> GtkGui::setTimeout(unsigned int timeout)
> @@ -515,13 +512,15 @@
> // TODO: implement and use set_invalidated_region instead?
> //gui->renderBuffer();
>
> - // Set a invalidate region that contains the whole screen
> + // 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;
> - //gui->set_invalidated_region(draw_bounds);
> +
> + gui->set_invalidated_region(draw_bounds);
> +
> gui->renderBuffer();
>
> return TRUE;