diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-19 02:38:47 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-19 02:38:47 +0000 |
| commit | 65e91ac3d6bbfec368bae9957c18c477d4f53ec5 (patch) | |
| tree | 34d85c3612a1955e0ae6d12cf8a24819201e7709 | |
| parent | dfd3f12c5c2c6f0a39d61322f2a42c8255124340 (diff) | |
labels are not the size of buttons
| -rw-r--r-- | src/frame.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/frame.cc b/src/frame.cc index 2f0835ee..cabad297 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->width(); + int yd = s->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 |
