From: Derek Foreman Date: Thu, 23 Jan 2003 05:38:08 +0000 (+0000) Subject: Fixed corners of bevels X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=b45a68cc30121ad2c5cd3b795a6b5e8572425316;p=chaz%2Fopenbox Fixed corners of bevels --- diff --git a/otk/truerendercontrol.cc b/otk/truerendercontrol.cc index 8e2b1083..6a74007f 100644 --- a/otk/truerendercontrol.cc +++ b/otk/truerendercontrol.cc @@ -154,7 +154,7 @@ void TrueRenderControl::drawGradientBackground( if (texture.relief() != RenderTexture::Flat) { if (texture.bevel() == RenderTexture::Bevel1) { - for (off = 0, x = 0; x < w; ++x, off++) + for (off = 1, x = 1; x < w - 1; ++x, off++) highlight(data + off, data + off + (h-1) * w, texture.relief()==RenderTexture::Raised); @@ -165,7 +165,7 @@ void TrueRenderControl::drawGradientBackground( } if (texture.bevel() == RenderTexture::Bevel2) { - for (off = 1, x = 1; x < w - 1; ++x, off++) + for (off = 2, x = 2; x < w - 2; ++x, off++) highlight(data + off + w, data + off + (h-2) * w, texture.relief()==RenderTexture::Raised);