X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FImage.cc;h=7aaeefaf160b20b38e228f3559f702db4382cba2;hb=d181f1ad05332c42eb090384666171a142f54b0c;hp=674fdeace13ef93283e2bcbfa35f3cec0111a429;hpb=01096f867493aed2efc2694c986811404288c1f1;p=chaz%2Fopenbox diff --git a/src/Image.cc b/src/Image.cc index 674fdeac..7aaeefaf 100644 --- a/src/Image.cc +++ b/src/Image.cc @@ -41,7 +41,7 @@ using std::min; #include "Texture.hh" -BImage::BImage(BImageControl *c, unsigned int w, unsigned int h) { +BImage::BImage(BImageControl *c, int w, int h) { control = c; width = (w > 0) ? w : 1; @@ -107,6 +107,11 @@ Pixmap BImage::render_solid(const BTexture &texture) { XDrawLine(display, pixmap, peninterlace.gc(), 0, i, width, i); } + if (texture.texture() & BTexture::FlatBorder) { + BPen penborder(texture.colorTo()); + XDrawRectangle(display, pixmap, penborder.gc(), 0, 0, width-1, height-1); + } + if (texture.texture() & BTexture::Bevel1) { if (texture.texture() & BTexture::Raised) { XDrawLine(display, pixmap, penshadow.gc(),