2008-11-07 Matthew Allum <mallum@linux.intel.com>

Bug 1237 - clutter_texture_set_filter_quality calls
                  clutter_texture_[un]realize

* clutter/clutter-texture.c: (clutter_texture_set_filter_quality):
        Call clutter_actor_[un]realize and keep visibility state
This commit is contained in:
Matthew Allum 2008-11-07 16:50:23 +00:00
parent c7c5cf9bd4
commit 0d7545a541
2 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2008-11-07 Matthew Allum <mallum@linux.intel.com>
Bug 1237 - clutter_texture_set_filter_quality calls
clutter_texture_[un]realize
* clutter/clutter-texture.c: (clutter_texture_set_filter_quality):
Call clutter_actor_[un]realize and keep visibility state
2008-11-07 Matthew Allum <mallum@linux.intel.com>
* clutter/clutter-actor.c:

View File

@ -1415,8 +1415,15 @@ clutter_texture_set_filter_quality (ClutterTexture *texture,
filter_quality == CLUTTER_TEXTURE_QUALITY_HIGH) &&
CLUTTER_ACTOR_IS_REALIZED (texture))
{
clutter_texture_unrealize (CLUTTER_ACTOR (texture));
clutter_texture_realize (CLUTTER_ACTOR (texture));
gboolean was_visible;
was_visible = CLUTTER_ACTOR_IS_VISIBLE (CLUTTER_ACTOR (texture));
clutter_actor_unrealize (CLUTTER_ACTOR (texture));
clutter_actor_realize (CLUTTER_ACTOR (texture));
if (was_visible)
clutter_actor_show (CLUTTER_ACTOR (texture));
}
g_object_notify (G_OBJECT (texture), "filter-quality");