search for: align_flag

Displaying 6 results from an estimated 6 matches for "align_flag".

Did you mean: align_flags
2007 Jul 21
0
12 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/jpeg libswfdec/swfdec_as_array.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h
...t;scale_x = 1.0; + player->scale_y = 1.0; + break; + default: + g_assert_not_reached (); + } + width = player->stage_width - ceil (player->width * player->scale_x); + height = player->stage_height - ceil (player->height * player->scale_y); + if (player->align_flags & SWFDEC_ALIGN_FLAG_LEFT) { + player->offset_x = 0; + } else if (player->align_flags & SWFDEC_ALIGN_FLAG_RIGHT) { + player->offset_x = width; + } else { + player->offset_x = width / 2; + } + if (player->align_flags & SWFDEC_ALIGN_FLAG_TOP) { + player->...
2007 Dec 13
0
libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_date.c libswfdec/swfdec_audio.c libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_interval.c libswfdec/swfdec_key_as.c libswfdec/swfdec_mouse_as.c libswfdec/swfdec_movie.c
...(value, priv->stage_width); break; case PROP_HEIGHT: - g_value_set_int (value, player->stage_height); + g_value_set_int (value, priv->stage_height); break; case PROP_ALIGNMENT: - g_value_set_enum (value, swfdec_player_alignment_from_flags (player->align_flags)); + g_value_set_enum (value, swfdec_player_alignment_from_flags (priv->align_flags)); break; case PROP_SCALE: - g_value_set_enum (value, player->scale_mode); + g_value_set_enum (value, priv->scale_mode); break; case PROP_SYSTEM: - g_value_set_o...
2007 Jul 26
0
6 commits - libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_stage_as.c test/trace
.../swfdec_player.c index 72313a4..5bbf545 100644 --- a/libswfdec/swfdec_player.c +++ b/libswfdec/swfdec_player.c @@ -1891,6 +1891,12 @@ swfdec_player_set_alignment (SwfdecPlaye g_return_if_fail (SWFDEC_IS_PLAYER (player)); flags = swfdec_player_alignment_to_flags (align); + swfdec_player_set_align_flags (player, flags); +} + +void +swfdec_player_set_align_flags (SwfdecPlayer *player, guint flags) +{ if (flags != player->align_flags) { player->align_flags = flags; swfdec_player_update_scale (player); diff --git a/libswfdec/swfdec_player_internal.h b/libswfdec/swfdec_player_inter...
2007 Oct 22
0
6 commits - doc/Makefile.am doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_internal.h libswfdec/swfdec_player.c libswfdec/swfdec_player.h
...; player->invalidations = g_array_new (FALSE, FALSE, sizeof (SwfdecRectangle)); player->mouse_visible = TRUE; player->mouse_cursor = SWFDEC_MOUSE_CURSOR_NORMAL; @@ -2434,6 +2460,8 @@ swfdec_player_set_alignment (SwfdecPlayer *player, SwfdecAlignment align) void swfdec_player_set_align_flags (SwfdecPlayer *player, guint flags) { + g_return_if_fail (SWFDEC_IS_PLAYER (player)); + if (flags != player->align_flags) { player->align_flags = flags; swfdec_player_update_scale (player); @@ -2441,3 +2469,43 @@ swfdec_player_set_align_flags (SwfdecPlayer *player, guint flags...
2007 Aug 02
0
2 commits - libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_stage_as.c
...initial loader */ /* stage properties */ + guint internal_width; /* width used by the scripting engine */ + guint internal_height; /* height used by the scripting engine */ gint stage_width; /* width set by the user */ gint stage_height; /* height set by the user */ guint align_flags; /* SwfdecAlignFlag */ diff --git a/libswfdec/swfdec_stage_as.c b/libswfdec/swfdec_stage_as.c index 85fc9ea..2f27cbb 100644 --- a/libswfdec/swfdec_stage_as.c +++ b/libswfdec/swfdec_stage_as.c @@ -134,11 +134,7 @@ get_width (SwfdecAsContext *cx, SwfdecAs { SwfdecPlayer *player = SWFDEC_PLAYER...
2007 Jul 26
0
17 commits - doc/swfdec-sections.txt libswfdec/compiler.c libswfdec/.gitignore libswfdec/Makefile.am libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c
...- a/libswfdec/swfdec_player_internal.h +++ b/libswfdec/swfdec_player_internal.h @@ -27,6 +27,9 @@ G_BEGIN_DECLS +#define SWFDEC_AS_NATIVE(x, y, func) void func (SwfdecAsContext *cx, \ + SwfdecAsObject *object, guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret); + typedef enum { SWFDEC_ALIGN_FLAG_TOP = (1 << 0), SWFDEC_ALIGN_FLAG_BOTTOM = (1 << 1), diff-tree 51555cdec92aa2859005071a04543e1032ee3333 (from 865fbab009d84a3c36216d9a56ba5ffa399c96b2) Author: Benjamin Otte <otte at gnome.org> Date: Thu Jul 26 14:44:48 2007 +0200 warn if data is left after a Flash file...