Ignore:
Timestamp:
Dec 1, 2003, 2:27:39 PM (22 years ago)
Author:
sandervl
Message:

Updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/oslibgpi.cpp

    r10174 r10349  
    1 /* $Id: oslibgpi.cpp,v 1.14 2003-07-16 15:47:37 sandervl Exp $ */
     1/* $Id: oslibgpi.cpp,v 1.15 2003-12-01 13:27:39 sandervl Exp $ */
    22
    33/*
     
    257257  ULONG    cy;
    258258
     259  //ignore underhang (just like GetTextExtentPoint does in Windows)
     260  if (box[TXTBOX_BOTTOMLEFT].x < 0) {
     261      dprintf(("WARNING: Ignoring underhang!!"));
     262      box[TXTBOX_BOTTOMLEFT].x = 0;
     263  }
     264
    259265  if (box[TXTBOX_BOTTOMLEFT].y == box[TXTBOX_BOTTOMRIGHT].y)
    260266  {
    261267    point->y = labs (box[TXTBOX_BOTTOMLEFT].y-box[TXTBOX_TOPLEFT].y) + 1;
    262     point->x = labs (box[TXTBOX_BOTTOMRIGHT].x-box[TXTBOX_BOTTOMLEFT].x) + 1;
     268    point->x = labs (box[TXTBOX_CONCAT].x - box[TXTBOX_BOTTOMLEFT].x);
     269
    263270    if (box[TXTBOX_BOTTOMLEFT].x != box[TXTBOX_TOPLEFT].x)
    264271    {
Note: See TracChangeset for help on using the changeset viewer.