[gnome-games] gnometris: Make stage rescaling properly affect the large textures
- From: Jason Clinton <jclinton src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games] gnometris: Make stage rescaling properly affect the large textures
- Date: Thu, 7 May 2009 16:45:57 -0400 (EDT)
commit f015729375ffea7587065a05b163201f17bdbf37
Author: Jason D. Clinton <me jasonclinton com>
Date: Thu May 7 15:42:36 2009 -0500
gnometris: Make stage rescaling properly affect the large textures
---
gnometris/blockops.cpp | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/gnometris/blockops.cpp b/gnometris/blockops.cpp
index 54651a5..7a2b61b 100644
--- a/gnometris/blockops.cpp
+++ b/gnometris/blockops.cpp
@@ -633,9 +633,9 @@ BlockOps::rescaleField ()
}
if (background) {
-// clutter_actor_set_size (CLUTTER_ACTOR(background), width, height);
-// clutter_cairo_texture_set_size (CLUTTER_CAIRO_TEXTURE(background),
-// width, height);
+ clutter_actor_set_size (CLUTTER_ACTOR(background), width, height);
+ clutter_cairo_texture_set_surface_size (CLUTTER_CAIRO_TEXTURE(background),
+ width, height);
} else {
background = clutter_cairo_texture_new (width, height);
/*FIXME jclinton: eventually allow solid color background
@@ -652,8 +652,8 @@ BlockOps::rescaleField ()
if (foreground) {
clutter_actor_set_size (CLUTTER_ACTOR(foreground),
width, height);
-// clutter_cairo_surface_resize (CLUTTER_CAIRO(foreground),
-// width, height);
+ clutter_cairo_texture_set_surface_size (CLUTTER_CAIRO_TEXTURE(foreground),
+ width, height);
} else {
foreground = clutter_cairo_texture_new (width, height);
clutter_group_add (CLUTTER_GROUP (stage),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]