summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@gnome.org>2012-05-13 22:57:57 (GMT)
committerEmmanuele Bassi <ebassi@linux.intel.com>2012-05-31 10:50:58 (GMT)
commitd154a10fa0e206a013058a45955b2a582d1417c0 (patch)
treecc8c7618118e5f25bb6b3a0cbc6cc694fcae8326 /doc
parentb1fcc828be841fc29547435b0c8611105d7938b8 (diff)
downloadclutter-d154a10fa0e206a013058a45955b2a582d1417c0.tar.gz
clutter-d154a10fa0e206a013058a45955b2a582d1417c0.tar.xz
cookbook/examples: Don't mix up height and width while splitting
Fixes: https://bugzilla.gnome.org/675998
Diffstat (limited to 'doc')
-rw-r--r--doc/cookbook/examples/textures-split-go.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/cookbook/examples/textures-split-go.c b/doc/cookbook/examples/textures-split-go.c
index f94385b..47fee88 100644
--- a/doc/cookbook/examples/textures-split-go.c
+++ b/doc/cookbook/examples/textures-split-go.c
@@ -137,16 +137,16 @@ main (int argc,
/* Create four sub-textures from image, actually splitting the image in
* four */
context.sub_nw = setup_sub (texture, image_width, image_height,
- 0, 0, image_width / 2 , image_width / 2);
+ 0, 0, image_width / 2 , image_height / 2);
context.sub_ne = setup_sub (texture, image_width, image_height,
image_width / 2 , 0,
- image_width / 2, image_width / 2);
+ image_width / 2, image_height / 2);
context.sub_sw = setup_sub (texture, image_width, image_height,
- 0.f, image_width / 2,
- image_width / 2, image_width / 2);
+ 0.f, image_height / 2,
+ image_width / 2, image_height / 2);
context.sub_se = setup_sub (texture, image_width, image_height,
- image_width / 2, image_width / 2,
- image_width / 2, image_width / 2);
+ image_width / 2, image_height / 2,
+ image_width / 2, image_height / 2);
/* We don't need the image anymore as we won't display it and as
* cogl_texture_new_from_sub_texture() keeps a reference to the underlying