[longomatch/clutter] Fix aspect ratio and position of displayed drawings
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/clutter] Fix aspect ratio and position of displayed drawings
- Date: Sat, 24 Sep 2011 16:55:10 +0000 (UTC)
commit 795b143ce84b415682ede14d7246dd034f1b7ad9
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sat Sep 24 13:01:07 2011 +0200
Fix aspect ratio and position of displayed drawings
libcesarplayer/bacon-video-widget-gst-0.10.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libcesarplayer/bacon-video-widget-gst-0.10.c b/libcesarplayer/bacon-video-widget-gst-0.10.c
index 2425539..6848510 100644
--- a/libcesarplayer/bacon-video-widget-gst-0.10.c
+++ b/libcesarplayer/bacon-video-widget-gst-0.10.c
@@ -641,6 +641,7 @@ bvw_handle_application_message (BaconVideoWidget * bvw, GstMessage * msg)
* display to be taken into account. */
get_media_size (bvw, &w, &h);
clutter_actor_set_size (bvw->priv->texture, w, h);
+ clutter_actor_set_size (bvw->priv->drawings, w, h);
bvw->priv->window_resized = TRUE;
set_current_actor (bvw);
@@ -3268,7 +3269,7 @@ bacon_video_widget_new (BvwUseType use_type, GError ** err)
bvw->priv->drawings_frame);
constraint =
clutter_bind_constraint_new (bvw->priv->stage, CLUTTER_BIND_SIZE, 0.0);
- clutter_actor_add_constraint_with_name (bvw->priv->drawings, "size",
+ clutter_actor_add_constraint_with_name (bvw->priv->drawings_frame, "size",
constraint);
clutter_actor_raise (CLUTTER_ACTOR (bvw->priv->drawings_frame),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]