Re: Draft animator bug: help?
- From: Christopher Roy Bratusek <zanghar freenet de>
- To: sawfish-list gnome org
- Subject: Re: Draft animator bug: help?
- Date: Tue, 17 Aug 2010 17:52:32 +0200
Attached patch fixes the issue as far as I can see, check it and tell me, if it works for
you, too.
Regards,
Chris
diff --git a/src/x.c b/src/x.c
index c80ffba..782dba6 100644
--- a/src/x.c
+++ b/src/x.c
@@ -39,7 +39,7 @@
# endif
# endif
#endif
-
+
#include "sawfish.h"
#include <string.h>
#include <X11/Xresource.h>
@@ -213,7 +213,7 @@ static int
x_function_from_sym (repv sym)
{
int i;
-
+
for (i = 0; i < N_FNS; i++)
{
if (sym == r_fns[i])
@@ -834,7 +834,7 @@ Destroys the X-DRAWABLE.
XDeleteContext (dpy, VX_DRAWABLE (drawable)->id, x_drawable_context);
if (X_WINDOWP (drawable))
{
- deregister_event_handler (VX_DRAWABLE (drawable)->id);
+ deregister_event_handler (VX_DRAWABLE (drawable)->id);
XDestroyWindow (dpy, VX_DRAWABLE (drawable)->id);
}
else if (X_PIXMAPP (drawable) || X_BITMAPP (drawable))
@@ -1035,8 +1035,9 @@ specified font in the window associated with WINDOW.
y = rep_INT (rep_CDR (xy));
str = rep_STR (string);
- x_draw_string (id, font, VX_GC (gc)->gc,
- &VX_GC (gc)->fg_copy, x, y, str, strlen (str));
+ XTextItem text={str,strlen(str),0,0};
+
+ XDrawText (dpy, id, VX_GC (gc)->gc, x, y, &text, 1);
return Qt;
}
@@ -1135,7 +1136,7 @@ Draws a single circular or elliptical arc. Each arc is specified by a
rectangle and two angles.
The center of the circle or ellipse is the center of the rectangle, and
-the major and minor axes are specified by the width and height.
+the major and minor axes are specified by the width and height.
Positive angles indicate counter-clockwise motion, and negative angles
indicate clockwise motion.
@@ -1176,7 +1177,7 @@ Draws a single filled circular or elliptical arc. Each arc is specified
by a rectangle and two angles.
The center of the circle or ellipse is the center of the rectangle, and
-the major and minor axes are specified by the width and height.
+the major and minor axes are specified by the width and height.
Positive angles indicate counter-clockwise motion, and negative angles
indicate clockwise motion.
@@ -1354,7 +1355,7 @@ the offset.
int i;
repv tmp;
-
+
rep_DECLARE1 (_gc, X_GCP);
rep_DECLARE2 (_dash_list, rep_LISTP);
offset = rep_INTP (_offset) ? rep_INT (_offset) : 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]