diff options
Diffstat (limited to 'layoutgl')
-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); |