Ticket #118: fs.diff

File fs.diff, 1.3 KB (added by KO Myung-Hun, 14 years ago)

Patch for switching to full screen

  • src/gui/kernel/qwidget_pm.cpp

     
    17161716                QRect r = QApplication::desktop()->screenGeometry(this);
    17171717                QRect fs(d->frameStrut());
    17181718                fs.adjust(-fs.left(), -fs.top(), fs.right(), fs.bottom());
     1719
     1720                RECTL rcl;
     1721                rcl.xLeft   = r.left();
     1722                // flip y coordinate
     1723                rcl.yBottom = QApplication::desktop()->height() - (r.top() + r.height());
     1724                rcl.xRight  = r.left() + r.width();
     1725                rcl.yTop    = rcl.yBottom + r.height();
     1726                WinCalcFrameRect(fId, &rcl, FALSE);
     1727
    17191728                fl |= SWP_ZORDER | SWP_MOVE | SWP_SIZE;
    1720                 WinSetWindowPos(fId, HWND_TOP, r.left(),
    1721                                 // flip y coodrinate
    1722                                 QApplication::desktop()->height() - (r.top() + r.height()),
    1723                                 r.width(), r.height(), fl);
     1729                WinSetWindowPos(fId, HWND_TOP, rcl.xLeft, rcl.yBottom,
     1730                                rcl.xRight - rcl.xLeft, rcl.yTop - rcl.yBottom, fl);
    17241731            } else {
    17251732                // preserve maximized state
    17261733                if (isVisible()) {