summaryrefslogtreecommitdiff
path: root/test/user-font-proxy.c
diff options
context:
space:
mode:
authorJeff Muizelaar <jmuizelaar@mozilla.com>2009-02-10 11:44:20 -0500
committerJeff Muizelaar <jmuizelaar@mozilla.com>2009-02-10 11:44:20 -0500
commit41e46c7754fff3a99927979925300a7588b9962f (patch)
treed683240c65ed6c44a26414f03596eb9c6ca62c7e /test/user-font-proxy.c
parentfe40d3bdb0d0cb93169b935e44d14b15e014fa6d (diff)
downloadcairo-41e46c7754fff3a99927979925300a7588b9962f.tar.gz
[test] Don't embed preprocessor directives inside macros
MSVC can't handle this. GCC will warn with -pedantic, but I'm not sure we want to enable that.
Diffstat (limited to 'test/user-font-proxy.c')
-rw-r--r--test/user-font-proxy.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/user-font-proxy.c b/test/user-font-proxy.c
index 45974d3dd..3470a1218 100644
--- a/test/user-font-proxy.c
+++ b/test/user-font-proxy.c
@@ -35,7 +35,11 @@
#define BORDER 10
#define TEXT_SIZE 64
#define WIDTH (TEXT_SIZE * 12 + 2*BORDER)
-#define HEIGHT ((TEXT_SIZE + 2*BORDER)*2)
+#ifndef ROTATED
+ #define HEIGHT ((TEXT_SIZE + 2*BORDER)*2)
+#else
+ #define HEIGHT WIDTH
+#endif
#define TEXT "geez... cairo user-font"
static cairo_user_data_key_t fallback_font_key;
@@ -208,9 +212,5 @@ CAIRO_TEST (user_font_proxy,
"Tests a user-font using a native font in its render_glyph",
"font, user-font", /* keywords */
"cairo >= 1.7.4", /* requirements */
-#ifndef ROTATED
WIDTH, HEIGHT,
-#else
- WIDTH, WIDTH,
-#endif
NULL, draw)