X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fframe.cc;h=6fedce49443fed8821aa2a480804cdb399e9127b;hb=89a5c973ac97bdeb47904ad27c291dc577a5c0a3;hp=2f0835eed9abef468c9b12e38c51d1e58f9175cb;hpb=dfd3f12c5c2c6f0a39d61322f2a42c8255124340;p=chaz%2Fopenbox diff --git a/src/frame.cc b/src/frame.cc index 2f0835ee..6fedce49 100644 --- a/src/frame.cc +++ b/src/frame.cc @@ -449,8 +449,10 @@ void Frame::renderLabel() src = _title_sur->pixelData() + w * (geom.bevel + 1) + geom.title_x; // get the background under the label - for (int y = 0; y < geom.button_size; ++y, src += w - geom.button_size) - for (int x = 0; x < geom.button_size; ++x, ++dest, ++src) + int xd = s->size().width(); + int yd = s->size().height(); + for (int y = 0; y < yd; ++y, src += w - xd) + for (int x = 0; x < xd; ++x, ++dest, ++src) *dest = *src; control->drawImage(*s, 0, 0, 0); // no image but draw the new background } else