mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
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:
parent
fb5f7475d7
commit
21728c5ba9
@ -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>
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user