summaryrefslogtreecommitdiff
path: root/Clock.c
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2006-03-29 02:10:49 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2006-03-29 02:10:49 +0000
commita5fd7d91172970d75b1aeaa729125dbbc56615f7 (patch)
treeca5922e7b75c7b43746e0956a0fdca759e5de7aa /Clock.c
parent57647f74642e672bc7082aed84141b456659e464 (diff)
Bug #6420 <https://bugs.freedesktop.org/show_bug.cgi?id=6420> Patch #5103XORG-7_0_99_901
<https://bugs.freedesktop.org/attachment.cgi?id=5103> xclock code contains wrong "ifdef RENDER" (Kirill Belokurov)
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);