]> Dogcows Code - chaz/openbox/commitdiff
labels are not the size of buttons
authorDana Jansens <danakj@orodu.net>
Wed, 19 Feb 2003 02:38:47 +0000 (02:38 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 19 Feb 2003 02:38:47 +0000 (02:38 +0000)
src/frame.cc

index 2f0835eed9abef468c9b12e38c51d1e58f9175cb..cabad297e60016f1b03531c7066e708c76ba1fbe 100644 (file)
@@ -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
This page took 0.023829 seconds and 4 git commands to generate.