summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2009-01-10 19:25:27 -0500
committerEmmanuele Bassi <ebassi@linux.intel.com>2009-01-16 23:45:36 +0000
commit6d4cd416ec3155db0778246099a431331149edd2 (patch)
tree0668fadeb5b3b959d4a5bf4a2b6bcfbe908c7e2b
parentb716d32000cfc309dd7c52a1ee6aad3cea398ec6 (diff)
downloadclutter-6d4cd416ec3155db0778246099a431331149edd2.tar.gz
Change default tile-waste from 64 to 63cogl-fixed-end
It's more sensible to use 2^n-1 for a max tile-waste value rather than 2^n, so change the value default from 64 to 63. Example: 191 and 192 will both be sliced to 128+64 rather than having 191=>128+64, 192=>256. http://bugzilla.openedhand.com/show_bug.cgi?id=1402 Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
-rw-r--r--clutter/clutter-texture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clutter/clutter-texture.c b/clutter/clutter-texture.c
index d081b3889..95aa8f9e3 100644
--- a/clutter/clutter-texture.c
+++ b/clutter/clutter-texture.c
@@ -880,7 +880,7 @@ clutter_texture_class_init (ClutterTextureClass *klass)
"smaller values less texture memory.",
-1,
G_MAXINT,
- 64,
+ 63,
G_PARAM_CONSTRUCT_ONLY | CLUTTER_PARAM_READWRITE));
g_object_class_install_property
@@ -1061,7 +1061,7 @@ clutter_texture_init (ClutterTexture *self)
self->priv = priv = CLUTTER_TEXTURE_GET_PRIVATE (self);
- priv->max_tile_waste = 64;
+ priv->max_tile_waste = 63;
priv->filter_quality = CLUTTER_TEXTURE_QUALITY_MEDIUM;
priv->repeat_x = FALSE;
priv->repeat_y = FALSE;