surface's have a size not a width()/height()
This commit is contained in:
parent
65e91ac3d6
commit
89a5c973ac
1 changed files with 2 additions and 2 deletions
|
@ -449,8 +449,8 @@ void Frame::renderLabel()
|
||||||
src = _title_sur->pixelData() + w * (geom.bevel + 1) + geom.title_x;
|
src = _title_sur->pixelData() + w * (geom.bevel + 1) + geom.title_x;
|
||||||
|
|
||||||
// get the background under the label
|
// get the background under the label
|
||||||
int xd = s->width();
|
int xd = s->size().width();
|
||||||
int yd = s->height();
|
int yd = s->size().height();
|
||||||
for (int y = 0; y < yd; ++y, src += w - xd)
|
for (int y = 0; y < yd; ++y, src += w - xd)
|
||||||
for (int x = 0; x < xd; ++x, ++dest, ++src)
|
for (int x = 0; x < xd; ++x, ++dest, ++src)
|
||||||
*dest = *src;
|
*dest = *src;
|
||||||
|
|
Loading…
Reference in a new issue