Changeset 5191 for trunk/src/user32/dc.cpp
- Timestamp:
- Feb 19, 2001, 2:13:04 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dc.cpp
r5189 r5191 1 /* $Id: dc.cpp,v 1. 89 2001-02-19 10:15:49sandervl Exp $ */1 /* $Id: dc.cpp,v 1.90 2001-02-19 13:13:00 sandervl Exp $ */ 2 2 3 3 /* … … 219 219 double yScale = pHps->viewportYExt / (double)pHps->windowExt.cy; 220 220 221 #if 0 222 mlf.fxM11 = FLOAT_TO_FIXED(1.0); 223 mlf.fxM12 = 0; 224 mlf.lM13 = 0; 225 mlf.fxM21 = 0; 226 mlf.fxM22 = FLOAT_TO_FIXED(1.0); 227 mlf.lM23 = 0; 228 mlf.lM31 = pHps->viewportOrg.x - (LONG)(pHps->windowOrg.x * xScale); 229 mlf.lM32 = pHps->viewportOrg.y - (LONG)(pHps->windowOrg.y * yScale); 230 mlf.lM33 = 1; 231 232 //testestest 233 if(wnd && wnd->getWindowWidth() && wnd->getWindowHeight()) { 234 RECTL recttmp, rectviewold; 235 236 rc = GpiQueryPageViewport(pHps->hps, &rectviewold); 237 if(rc == 0) { 238 dprintf(("WARNING: GpiQueryPageViewport returned FALSE!!")); 239 } 240 recttmp.xLeft = 0; 241 // recttmp.xRight = ((double)wnd->getWindowWidth() / xScale); 242 recttmp.xRight = ((double)GetScreenWidth() / xScale); 243 recttmp.yBottom = 0; 244 // recttmp.yTop = ((double)wnd->getWindowHeight() / yScale); 245 recttmp.yTop = ((double)GetScreenHeight() / yScale); 246 247 if(recttmp.yTop != rectviewold.yTop || 248 recttmp.xRight != rectviewold.xRight) 249 { 250 dprintf(("GpiSetPageViewport %x (%d,%d) %f %f", pHps->hps, recttmp.xRight, recttmp.yTop, xScale, yScale)); 251 rc = GpiSetPageViewport(pHps->hps, &recttmp); 252 if(rc == 0) { 253 dprintf(("WARNING: GpiSetPageViewport returned FALSE!!")); 254 } 255 } 256 } 257 //testestest 258 259 #else 221 260 mlf.fxM11 = FLOAT_TO_FIXED(xScale); 222 261 mlf.fxM12 = 0; … … 228 267 mlf.lM32 = pHps->viewportOrg.y - (LONG)(pHps->windowOrg.y * yScale); 229 268 mlf.lM33 = 1; 269 #endif 230 270 231 271 pHps->isLeftLeft = mlf.fxM11 >= 0; … … 251 291 // (pHps->pMetaFileObject && pHps->pMetaFileObject->isEnhanced())) 252 292 rc = GpiSetDefaultViewMatrix(pHps->hps, 8, &mlf, TRANSFORM_REPLACE); 253 293 if(rc == 0) { 294 dprintf(("WARNING: GpiSetDefaultViewMatrix returned FALSE!!")); 295 } 254 296 #ifdef INVERT 255 297 if (bEnableYInversion) … … 400 442 dprintf2(("WARNING: selectClientArea %x; already selected! origin (%d,%d) original origin (%d,%d)", window->getWindowHandle(), rcltemp.xLeft, rcltemp.yBottom, pHps->ptlOrigin.x, pHps->ptlOrigin.y)); 401 443 GetWindowRect(window->getWindowHandle(), &rectWindow); 402 mapWin32ToOS2Rect( OSLibGetScreenHeight(), &rectWindow, (PRECTLOS2)&rectWindowOS2);444 mapWin32ToOS2Rect(GetScreenHeight(), &rectWindow, (PRECTLOS2)&rectWindowOS2); 403 445 if(rectWindowOS2.xLeft + rcl.xLeft != rcltemp.xLeft || 404 446 rectWindowOS2.yBottom + rcl.yBottom != rcltemp.yBottom) … … 438 480 rectWindow.bottom = rectWindow.top + pClient->bottom; 439 481 rectWindow.top += pClient->top; 440 mapWin32ToOS2Rect( OSLibGetScreenHeight(), &rectWindow, (PRECTLOS2)&rectWindowOS2);482 mapWin32ToOS2Rect(GetScreenHeight(), &rectWindow, (PRECTLOS2)&rectWindowOS2); 441 483 442 484 hrgnParentClip = GreCreateRectRegion(pHps->hps, &rectWindowOS2, 1); … … 476 518 GpiQueryPageViewport(pHps->hps, &rectWindowOS2); 477 519 dprintf2(("page viewport (%d,%d)(%d,%d)", rectWindowOS2.xLeft, rectWindowOS2.yBottom, rectWindowOS2.xRight, rectWindowOS2.yTop)); 520 521 GpiQueryBoundaryData(pHps->hps, &rectWindowOS2); 522 dprintf2(("boundary data (%d,%d)(%d,%d)", rectWindowOS2.xLeft, rectWindowOS2.yBottom, rectWindowOS2.xRight, rectWindowOS2.yTop)); 478 523 479 524 GpiQueryGraphicsField(pHps->hps, &rectWindowOS2);
Note:
See TracChangeset
for help on using the changeset viewer.