Changeset 4596 for trunk/src/gdi32/oslibgpi.cpp
- Timestamp:
- Nov 15, 2000, 2:56:46 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/oslibgpi.cpp
r4170 r4596 1 /* $Id: oslibgpi.cpp,v 1. 7 2000-09-03 09:30:35 sandervl Exp $ */1 /* $Id: oslibgpi.cpp,v 1.8 2000-11-15 13:56:45 sandervl Exp $ */ 2 2 3 3 /* … … 19 19 #include <winconst.h> 20 20 #include "oslibgpi.h" 21 #include "dcdata.h" 21 #include <dcdata.h> 22 #include <misc.h> 22 23 23 24 #define DBG_LOCALLOG DBG_oslibgpi … … 404 405 405 406 407 int OSLibGpiQueryFontMaxHeight(HDC hdc) 408 { 409 FONTMETRICS metrics; 410 BOOL rc; 411 412 rc = GpiQueryFontMetrics(hdc, sizeof(metrics), &metrics); 413 if(rc) { 414 return metrics.lMaxAscender; 415 } 416 else { 417 dprintf(("GpiQueryFontMetrics returned FALSE!!")); 418 return 0; 419 } 420 } 421 422 #ifdef DEBUG 423 void dprintfOrigin(HDC hdc) 424 { 425 POINTL point; 426 427 pDCData pHps = (pDCData)OSLibGpiQueryDCData((HPS)hdc); 428 if(!pHps) 429 { 430 return; 431 } 432 433 GreGetDCOrigin(pHps->hps, &point); 434 dprintf2(("HDC origin (%d,%d) org (%d,%d)", point.x, point.y, pHps->ptlOrigin.x, pHps->ptlOrigin.y)); 435 } 436 #endif
Note:
See TracChangeset
for help on using the changeset viewer.