aboutsummaryrefslogtreecommitdiff
path: root/dw
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2011-07-15 09:56:19 -0400
committerJorge Arellano Cid <jcid@dillo.org>2011-07-15 09:56:19 -0400
commit5b311cb1ef29825290273ede14c7e90839b80985 (patch)
treec162cd6de7bc27fec12e3242c33022f07a7dd8c0 /dw
parent5f46adec1f6ecab7b68f3a71efbd7abe60ca917e (diff)
Eliminated a pack of compiler warnings (gcc-4.6.1 amd64)
Diffstat (limited to 'dw')
-rw-r--r--dw/fltkui.cc2
-rw-r--r--dw/style.cc23
2 files changed, 13 insertions, 12 deletions
diff --git a/dw/fltkui.cc b/dw/fltkui.cc
index ff80e14c..697d4505 100644
--- a/dw/fltkui.cc
+++ b/dw/fltkui.cc
@@ -865,7 +865,7 @@ template <class I>
{
::fltk::Item *item = new ::fltk::Item (name);
item->set_flag (::fltk::RAW_LABEL);
- item->user_data ((void *) index);
+ item->user_data ((void *)(long) index);
return item;
}
diff --git a/dw/style.cc b/dw/style.cc
index a8f458b7..d2378f0e 100644
--- a/dw/style.cc
+++ b/dw/style.cc
@@ -791,8 +791,7 @@ void drawBorder (View *view, Rectangle *area,
Style *style, bool inverse)
{
/** \todo a lot! */
- Color::Shading dark, light, normal;
- int xb1, yb1, xb2, yb2, xp1, yp1, xp2, yp2;
+ int xb1, yb1, xb2, yb2;
// top left and bottom right point of outer border boundary
xb1 = x + style->margin.left;
@@ -800,15 +799,17 @@ void drawBorder (View *view, Rectangle *area,
xb2 = x + (width > 0 ? width - 1 : 0) - style->margin.right;
yb2 = y + (height > 0 ? height - 1 : 0) - style->margin.bottom;
- // top left and bottom right point of inner border boundary
- xp1 = xb1 + style->borderWidth.left;
- yp1 = yb1 + style->borderWidth.top;
- xp2 = xb2 - style->borderWidth.right;
- yp2 = yb2 - style->borderWidth.bottom;
-
- light = inverse ? Color::SHADING_DARK : Color::SHADING_LIGHT;
- dark = inverse ? Color::SHADING_LIGHT : Color::SHADING_DARK;
- normal = inverse ? Color::SHADING_INVERSE : Color::SHADING_NORMAL;
+ /*
+ // top left and bottom right point of inner border boundary
+ xp1 = xb1 + style->borderWidth.left;
+ yp1 = yb1 + style->borderWidth.top;
+ xp2 = xb2 - style->borderWidth.right;
+ yp2 = yb2 - style->borderWidth.bottom;
+
+ light = inverse ? Color::SHADING_DARK : Color::SHADING_LIGHT;
+ dark = inverse ? Color::SHADING_LIGHT : Color::SHADING_DARK;
+ normal = inverse ? Color::SHADING_INVERSE : Color::SHADING_NORMAL;
+ */
drawBorderRight(view, style, xb2, yb1, xb2, yb2);
drawBorderLeft(view, style, xb1, yb1, xb1, yb2);