1
0
Fork 0

2006-06-23 Matthew Allum <mallum@openedhand.com>

* examples/video-player.c: (size_change):
        cast stage height to gint avoiding wierdness for when
        video height greater than half display height. Fixed #99
This commit is contained in:
Matthew Allum 2006-06-23 16:21:13 +00:00
parent fb5f7475d7
commit 21728c5ba9
2 changed files with 8 additions and 2 deletions

View file

@ -1,7 +1,13 @@
2006-06-23 Matthew Allum <mallum@openedhand.com>
* examples/video-player.c: (size_change):
cast stage height to gint avoiding wierdness for when
video height greater than half display height. Fixed #99
2006-06-23 Matthew Allum <mallum@openedhand.com>
* clutter/clutter-video-texture.c: (clutter_video_texture_new):
Small fix for video playback on Big Endian. See #99
Small fix for video playback on Big Endian. See #97
2006-06-23 Iain Holmes <iain@openedhand.com>

View file

@ -200,7 +200,7 @@ size_change (ClutterTexture *texture,
clutter_texture_get_base_size (texture, &vid_width, &vid_height);
new_height = ( vid_height * CLUTTER_STAGE_WIDTH() ) / vid_width;
new_y = ( CLUTTER_STAGE_HEIGHT() - new_height) / 2;
new_y = ( (gint)CLUTTER_STAGE_HEIGHT() - new_height) / 2;
clutter_actor_set_position (CLUTTER_ACTOR (texture), 0, new_y);