aboutsummaryrefslogtreecommitdiff
path: root/dw/style.cc
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2011-06-21 21:06:38 -0400
committerJorge Arellano Cid <jcid@dillo.org>2011-06-21 21:06:38 -0400
commit86ad9513a8d090501dd602b00b70fecc31eeaaa4 (patch)
tree5b3d54986b78148658ca43015a579226e278d07c /dw/style.cc
parentc1a46d534c0d4b67f71c6e4a378de94ba4c6aaa4 (diff)
Eliminated a pack of 22 compiler warnings (gcc-4.6.1 amd64)
Diffstat (limited to 'dw/style.cc')
-rw-r--r--dw/style.cc23
1 files changed, 12 insertions, 11 deletions
diff --git a/dw/style.cc b/dw/style.cc
index 7020503e..c8cab24f 100644
--- a/dw/style.cc
+++ b/dw/style.cc
@@ -815,8 +815,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;
@@ -824,15 +823,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);