summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-11-07 22:48:21 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2008-11-08 11:18:26 +0000
commit1d0faefbc8700833e9bde8a9c825b02b0f3cf910 (patch)
treeb41157b7bb8db24eca9e83a0b4a5e621f1e9527e /util
parent899a159b133e22f71e2a176785c91e78838c3fee (diff)
[trace] Record the XID as a number
Don't waste string constants (which get interned) for a simple number!
Diffstat (limited to 'util')
-rw-r--r--util/cairo-trace/trace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/cairo-trace/trace.c b/util/cairo-trace/trace.c
index c92215ea..491184ca 100644
--- a/util/cairo-trace/trace.c
+++ b/util/cairo-trace/trace.c
@@ -3468,7 +3468,7 @@ cairo_xlib_surface_create (Display *dpy,
fprintf (logfile,
"dict\n"
" /type (xlib) set\n"
- " /drawable /%lx set\n"
+ " /drawable 16!%lx set\n"
" /width %d set\n"
" /height %d set\n"
" surface dup /s%ld exch def\n",
@@ -3504,7 +3504,7 @@ cairo_xlib_surface_create_for_bitmap (Display *dpy,
fprintf (logfile,
"dict\n"
" /type (xlib) set\n"
- " /drawable /%lx set\n"
+ " /drawable 16!%lx set\n"
" /width %d set\n"
" /height %d set\n"
" /depth 1 set\n"
@@ -3544,7 +3544,7 @@ cairo_xlib_surface_create_with_xrender_format (Display *dpy,
fprintf (logfile,
"dict\n"
" /type (xrender) set\n"
- " /drawable /%lx set\n"
+ " /drawable 16!%lx set\n"
" /width %d set\n"
" /height %d set\n"
" /depth %d set\n"