summaryrefslogtreecommitdiff
path: root/Clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'Clock.c')
-rw-r--r--Clock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Clock.c b/Clock.c
index b734b39..efff6ca 100644
--- a/Clock.c
+++ b/Clock.c
@@ -1140,11 +1140,11 @@ Destroy(Widget gw)
{
ClockWidget w = (ClockWidget) gw;
if (w->clock.interval_id) XtRemoveTimeOut (w->clock.interval_id);
-#ifdef RENDER
+#ifdef XRENDER
if (w->clock.picture)
- XRenderFreePicture (dpy, w->clock.picture);
+ XRenderFreePicture (XtDisplay(w), w->clock.picture);
if (w->clock.fill_picture)
- XRenderFreePicture (dpy, w->clock.fill_picture);
+ XRenderFreePicture (XtDisplay(w), w->clock.fill_picture);
#endif
XtReleaseGC (gw, w->clock.myGC);
XtReleaseGC (gw, w->clock.HighGC);