summaryrefslogtreecommitdiff
path: root/lang/drscheme/patches/patch-as
diff options
context:
space:
mode:
Diffstat (limited to 'lang/drscheme/patches/patch-as')
-rw-r--r--lang/drscheme/patches/patch-as15
1 files changed, 15 insertions, 0 deletions
diff --git a/lang/drscheme/patches/patch-as b/lang/drscheme/patches/patch-as
new file mode 100644
index 00000000000..e92f8cd5af9
--- /dev/null
+++ b/lang/drscheme/patches/patch-as
@@ -0,0 +1,15 @@
+$NetBSD: patch-as,v 1.1 2006/10/26 13:54:25 rillig Exp $
+
+sunpro is a little picky about overloaded functions, for good reason.
+
+--- wxxt/src/DeviceContexts/WindowDC.cc.orig 2004-12-19 09:38:26.000000000 +0100
++++ wxxt/src/DeviceContexts/WindowDC.cc 2006-10-26 15:45:24.638175276 +0200
+@@ -1935,7 +1935,7 @@ void wxWindowDC::DrawText(char *text, fl
+ fontinfo = (XFontStruct *)current_font->GetInternalFont(scale_x, scale_y, angle);
+ XSetFont(DPY, TEXT_GC, fontinfo->fid);
+
+- quadrant = fmod(angle, 2 * pie);
++ quadrant = fmod((double)angle, 2 * pie);
+ if (quadrant < 0)
+ quadrant += (2 * pie);
+