Ignore:
Timestamp:
Nov 15, 2000, 2:56:46 PM (25 years ago)
Author:
sandervl
Message:

(Ext)SelectClipRgn fixes

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 $ */
    22
    33/*
     
    1919#include <winconst.h>
    2020#include "oslibgpi.h"
    21 #include "dcdata.h"
     21#include <dcdata.h>
     22#include <misc.h>
    2223
    2324#define DBG_LOCALLOG    DBG_oslibgpi
     
    404405
    405406
     407int 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
     423void 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.