summaryrefslogtreecommitdiff
path: root/test/subsurface-similar-repeat.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-04-29 17:29:13 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-04-30 10:16:06 +0100
commit3940b0e91c274de0cf2fca4b34d4025b92965c19 (patch)
tree6417b838ef6e920fcf0ac50bc6769bdb693bc7f4 /test/subsurface-similar-repeat.c
parent4b6fa8d5a78731aca80f3c8c6320e7edc845c5b5 (diff)
downloadcairo-3940b0e91c274de0cf2fca4b34d4025b92965c19.tar.gz
subsurface: s/region/rectangle/
After a renewed discussion, it was pointed out that the API in Cairo was not restrictive and by using doubles we would be consisted with the rest of the API. Thus prompting the name change to cairo_surface_create_for_rectangle() similar to cairo_rectangle(). And document the public API.
Diffstat (limited to 'test/subsurface-similar-repeat.c')
-rw-r--r--test/subsurface-similar-repeat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/subsurface-similar-repeat.c b/test/subsurface-similar-repeat.c
index ad63cc8de..492bc7744 100644
--- a/test/subsurface-similar-repeat.c
+++ b/test/subsurface-similar-repeat.c
@@ -46,7 +46,7 @@ draw (cairo_t *cr, int width, int height)
cairo_destroy (cr_region);
/* fill the centre */
- region = cairo_surface_create_for_region (similar, 20, 20, 20, 20);
+ region = cairo_surface_create_for_rectangle (similar, 20, 20, 20, 20);
cairo_surface_destroy (similar);
cr_region = cairo_create (region);
cairo_surface_destroy (region);