Changeset 603 for trunk/src/gui/kernel/qwidget_pm.cpp
- Timestamp:
- Feb 25, 2010, 4:31:14 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/kernel/qwidget_pm.cpp
r569 r603 284 284 // first, process areas placed outside the screen bounds 285 285 if (flags & PWO_Screen) { 286 RECTL rclScr = { 0, 0, QApplication::desktop()->width(), 287 QApplication::desktop()->height() }; 286 RECTL rclScr = { 0, 0, qt_display_width(), qt_display_height() }; 288 287 WinMapWindowPoints(HWND_DESKTOP, hwnd, (PPOINTL) &rclScr, 2); 289 288 // rough check of whether some window part is outside bounds … … 1540 1539 WinMapWindowPoints(internalWinId(), HWND_DESKTOP, &ptl, 1); 1541 1540 // flip y (global) coordinate 1542 ptl.y = QApplication::desktop()->height() - (ptl.y + 1);1541 ptl.y = qt_display_height() - (ptl.y + 1); 1543 1542 return QPoint(ptl.x, ptl.y); 1544 1543 } … … 1557 1556 ptl.x = pos.x(); 1558 1557 // flip y (global) coordinate 1559 ptl.y = QApplication::desktop()->height() - (pos.y() + 1);1558 ptl.y = qt_display_height() - (pos.y() + 1); 1560 1559 WinMapWindowPoints(HWND_DESKTOP, internalWinId(), &ptl, 1); 1561 1560 // flip y (local) coordinate … … 1756 1755 WinSetWindowPos(fId, HWND_TOP, r.left(), 1757 1756 // flip y coodrinate 1758 QApplication::desktop()->height() - (r.top() + r.height()),1757 qt_display_height() - (r.top() + r.height()), 1759 1758 r.width(), r.height(), fl); 1760 1759 } else { … … 2117 2116 data.crect.setRect(x, y, w, h); 2118 2117 } else if (q->isWindow()) { 2119 int sh = QApplication::desktop()->height();2118 int sh = qt_display_height(); 2120 2119 QRect fs(frameStrut()); 2121 2120 if (extra) { … … 2408 2407 WinQueryWindowPos(data.winid, &cswp); 2409 2408 // flip y coordinates 2410 swp.y = QApplication::desktop()->height() - (swp.y + swp.cy);2409 swp.y = qt_display_height() - (swp.y + swp.cy); 2411 2410 cswp.y = swp.cy - (cswp.y + cswp.cy); 2412 2411 QRect &fs = top->frameStrut;
Note:
See TracChangeset
for help on using the changeset viewer.