summaryrefslogtreecommitdiff
path: root/wm/fluxbox/patches/patch-bc
diff options
context:
space:
mode:
Diffstat (limited to 'wm/fluxbox/patches/patch-bc')
-rw-r--r--wm/fluxbox/patches/patch-bc16
1 files changed, 0 insertions, 16 deletions
diff --git a/wm/fluxbox/patches/patch-bc b/wm/fluxbox/patches/patch-bc
deleted file mode 100644
index 8be04449956..00000000000
--- a/wm/fluxbox/patches/patch-bc
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD: patch-bc,v 1.1 2007/11/01 13:08:05 rillig Exp $
-
-sunpro doesn't know whether it should call abs(int) or abs(long), so we
-need to make it explicit.
-
---- src/FbTk/TextBox.cc.orig 2007-03-19 20:57:07.000000000 +0100
-+++ src/FbTk/TextBox.cc 2007-10-30 16:57:31.306492000 +0100
-@@ -193,7 +193,7 @@ void TextBox::buttonPressEvent(XButtonEv
- int delta = width();
- int tmp = 0;
- for(i = m_start_pos; i <= m_end_pos; i++) {
-- tmp = abs(event.x - font().textWidth(m_text.c_str() + m_start_pos, i - m_start_pos));
-+ tmp = abs((int)(event.x - font().textWidth(m_text.c_str() + m_start_pos, i - m_start_pos)));
-
- if (tmp < delta) {
- delta = tmp;