diff options
author | Treeki <treeki@gmail.com> | 2012-08-15 01:09:27 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-08-15 01:09:27 +0200 |
commit | 9b2938e11b8f67d590ee752b0c7ccc33ea04e55b (patch) | |
tree | 56d27c93d9bc71bd547dd7ccbc270f3a9b763321 /layoutgl | |
parent | 3737076011e7dbafe9310726b6fa228cf244ef1a (diff) | |
download | LayoutStudio-9b2938e11b8f67d590ee752b0c7ccc33ea04e55b.tar.gz LayoutStudio-9b2938e11b8f67d590ee752b0c7ccc33ea04e55b.zip |
fixed 4-frame windows
Diffstat (limited to '')
-rw-r--r-- | layoutgl/widget.cpp | 6 |
1 files 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); |