[Swfdec-commits] src/swfmoz_player.c
Benjamin Otte
company at kemper.freedesktop.org
Wed Jul 2 01:17:26 PDT 2008
src/swfmoz_player.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
New commits:
commit 0eb3024798200acc3931e2b34fd13aef9ed03eb1
Author: Benjamin Otte <otte at gnome.org>
Date: Wed Jul 2 10:17:05 2008 +0200
update API of render functions
diff --git a/src/swfmoz_player.c b/src/swfmoz_player.c
index 09a7d0a..f153a94 100644
--- a/src/swfmoz_player.c
+++ b/src/swfmoz_player.c
@@ -182,7 +182,7 @@ swfmoz_player_idle_redraw (gpointer playerp)
}
static void
-swfmoz_player_redraw (SwfmozPlayer *player, const SwfdecRectangle *extents,
+swfmoz_player_redraw (SwfmozPlayer *player,
const SwfdecRectangle *rects, guint n_rects, gpointer unused)
{
GdkRegion *region;
@@ -277,7 +277,7 @@ static void
swfmoz_player_invalidate (SwfmozPlayer *player)
{
SwfdecRectangle rect = { 0, 0, player->target_rect.width, player->target_rect.height };
- swfmoz_player_redraw (player, &rect, &rect, 1, NULL);
+ swfmoz_player_redraw (player, &rect, 1, NULL);
}
/* function stolen from SwfdecGtkWidget */
@@ -793,8 +793,7 @@ swfmoz_player_render (SwfmozPlayer *player, cairo_t *cr, GdkRegion *region)
}
cairo_translate (cr, player->target_rect.x, player->target_rect.y);
gdk_region_get_clipbox (region, &rect);
- swfdec_player_render (SWFDEC_PLAYER (player), cr, rect.x - player->target_rect.x,
- rect.y - player->target_rect.y, rect.width, rect.height);
+ swfdec_player_render (SWFDEC_PLAYER (player), cr);
/* paint optional pause sign */
if (!swfdec_gtk_player_get_playing (SWFDEC_GTK_PLAYER (player)) &&
swfdec_player_get_url (SWFDEC_PLAYER (player)) != NULL) {
More information about the Swfdec-commits
mailing list