Changeset 5796 for trunk/src


Ignore:
Timestamp:
May 24, 2001, 9:27:00 PM (24 years ago)
Author:
sandervl
Message:

minor logging updates

Location:
trunk/src/user32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/text.cpp

    r4825 r5796  
    1 /* $Id: text.cpp,v 1.10 2000-12-17 15:04:11 sandervl Exp $ */
     1/* $Id: text.cpp,v 1.11 2001-05-24 19:26:59 sandervl Exp $ */
    22
    33/*
     
    3030INT WIN32API DrawTextW(HDC hDC,LPCWSTR lpString,INT nCount,PRECT lpRect,UINT nFormat)
    3131{
    32   dprintf(("USER32: DrawTextW %x",hDC));
     32  dprintf(("USER32: DrawTextA %x %ls %d (%d,%d)(%d,%d) %x",hDC, lpString, nCount, lpRect->left, lpRect->top, lpRect->right, lpRect->bottom, nFormat));
    3333
    3434  return InternalDrawTextExW(hDC,lpString,nCount,lpRect,nFormat,NULL,FALSE);
     
    4646int WIN32API DrawTextExW(HDC hdc,LPWSTR lpchText,INT cchText,LPRECT lprc,UINT dwDTFormat,LPDRAWTEXTPARAMS lpDTParams)
    4747{
    48   dprintf(("USER32: DrawTextExW %x",hdc));
     48  dprintf(("USER32: DrawTextExA %x %ls %d (%d,%d)(%d,%d) %x",hdc, lpchText, cchText, lprc->left, lprc->top, lprc->right, lprc->bottom, dwDTFormat));
    4949
    5050  return InternalDrawTextExW(hdc,lpchText,cchText,lprc,dwDTFormat,lpDTParams,TRUE);
  • trunk/src/user32/win32dlg.cpp

    r5725 r5796  
    1 /* $Id: win32dlg.cpp,v 1.63 2001-05-17 09:50:30 sandervl Exp $ */
     1/* $Id: win32dlg.cpp,v 1.64 2001-05-24 19:27:00 sandervl Exp $ */
    22/*
    33 * Win32 Dialog Code for OS/2
     
    8383        /* and must be converted to pixels first */
    8484        /* (see CreateFont() documentation in the Windows SDK).   */
    85         HDC dc = GetDC(0);
    86         int pixels = dlgInfo.pointSize * GetDeviceCaps(dc , LOGPIXELSY)/72;
    87         ReleaseDC(0, dc);
     85        int pixels;
     86        if (((short)dlgInfo.pointSize) < 0)
     87            pixels = -((short)dlgInfo.pointSize);
     88        else
     89        {
     90            HDC hdc = GetDC(0);
     91            pixels = dlgInfo.pointSize * GetDeviceCaps(hdc, LOGPIXELSY)/72;
     92            ReleaseDC(0, hdc);
     93        }
    8894
    8995        hUserFont = CreateFontW(-pixels, 0, 0, 0,
     
    496502BOOL Win32Dialog::getCharSize( HFONT hUserFont, SIZE * pSize )
    497503{
    498     HDC  hDC = GetDC(0);
     504    HDC  hDC = CreateCompatibleDC(0);
    499505    BOOL Success = getCharSizeFromDC( hDC, hUserFont, pSize );
    500     ReleaseDC(0, hDC);
     506    DeleteDC(hDC);
    501507    return Success;
    502508}
Note: See TracChangeset for help on using the changeset viewer.