From 9b2938e11b8f67d590ee752b0c7ccc33ea04e55b Mon Sep 17 00:00:00 2001 From: Treeki Date: Wed, 15 Aug 2012 01:09:27 +0200 Subject: fixed 4-frame windows --- layoutgl/widget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layoutgl/widget.cpp b/layoutgl/widget.cpp index 44a9a45..f88de00 100644 --- a/layoutgl/widget.cpp +++ b/layoutgl/widget.cpp @@ -316,10 +316,10 @@ void LGLWidget::drawWindow(const LYTWindow *wnd) { if (!mBR.texMaps.empty()) { useMaterial(mBR); - float pieceWidth = frameRight; - float pieceHeight = wnd->height - frameBottom; + float pieceWidth = wnd->width - frameLeft; + float pieceHeight = frameBottom; - dealWithWindowFrame(texCoords, fBR.materialName, fBR.type, pieceWidth, pieceHeight, 6, 4, 0, 2); + dealWithWindowFrame(texCoords, fBR.materialName, fBR.type, pieceWidth, pieceHeight, 6, 4, 2, 0); drawQuad(dX + frameLeft, dY - wnd->height + frameBottom, pieceWidth, pieceHeight, 1, &texCoords, 0, wnd->alpha); -- cgit v1.2.3