Changeset 3648 for trunk/src


Ignore:
Timestamp:
Jun 1, 2000, 9:00:05 PM (25 years ago)
Author:
sandervl
Message:

added more logging

Location:
trunk/src/gdi32
Files:
2 edited

Legend:

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

    r3641 r3648  
    1 /* $Id: gdi32.cpp,v 1.48 2000-06-01 11:27:05 sandervl Exp $ */
     1/* $Id: gdi32.cpp,v 1.49 2000-06-01 19:00:05 sandervl Exp $ */
    22
    33/*
     
    1414#include <stdarg.h>
    1515#include <string.h>
     16#include <odinwrap.h>
    1617#include "misc.h"
    1718#include "callback.h"
     
    2425#define DBG_LOCALLOG    DBG_gdi32
    2526#include "dbglocal.h"
     27
     28ODINDEBUGCHANNEL(GDI32-GDI32)
    2629
    2730//******************************************************************************
     
    10771080//******************************************************************************
    10781081//******************************************************************************
    1079 BOOL WIN32API LPtoDP( HDC arg1, PPOINT arg2, int  arg3)
    1080 {
    1081     dprintf(("GDI32: LPtoDP"));
    1082     return O32_LPtoDP(arg1, arg2, arg3);
     1082ODINFUNCTION3(BOOL, LPtoDP, HDC, hdc, PPOINT, lpPoints, int, nCount)
     1083{
     1084    return O32_LPtoDP(hdc, lpPoints, nCount);
    10831085}
    10841086//******************************************************************************
     
    12561258//******************************************************************************
    12571259//******************************************************************************
    1258 int WIN32API SetMapMode( HDC arg1, int  arg2)
    1259 {
    1260     dprintf(("GDI32: SetMapMode"));
    1261     return O32_SetMapMode(arg1, arg2);
    1262 }
    1263 //******************************************************************************
    1264 //******************************************************************************
    1265 DWORD WIN32API SetMapperFlags( HDC arg1, DWORD  arg2)
    1266 {
    1267     dprintf(("GDI32: SetMapperFlags"));
    1268     return O32_SetMapperFlags(arg1, arg2);
    1269 }
    1270 //******************************************************************************
    1271 //******************************************************************************
    1272 BOOL WIN32API SetMiterLimit( HDC arg1, float  arg2, float *  arg3)
    1273 {
    1274     dprintf(("GDI32: SetMiterLimit"));
    1275     return O32_SetMiterLimit(arg1, arg2, arg3);
    1276 }
    1277 //******************************************************************************
    1278 //******************************************************************************
    1279 int WIN32API SetPolyFillMode( HDC arg1, int  arg2)
    1280 {
    1281     dprintf(("GDI32: SetPolyFillMode"));
    1282     return O32_SetPolyFillMode(arg1, arg2);
    1283 }
    1284 //******************************************************************************
    1285 //******************************************************************************
    1286 UINT WIN32API SetTextAlign( HDC arg1, UINT  arg2)
    1287 {
    1288     dprintf(("GDI32: SetTextAlign"));
    1289     return O32_SetTextAlign(arg1, arg2);
    1290 }
    1291 //******************************************************************************
    1292 //******************************************************************************
    1293 int WIN32API SetTextCharacterExtra( HDC arg1, int  arg2)
    1294 {
    1295     dprintf(("GDI32: SetTextCharacterExtra"));
    1296     return O32_SetTextCharacterExtra(arg1, arg2);
    1297 }
    1298 //******************************************************************************
    1299 //******************************************************************************
    1300 BOOL WIN32API SetTextJustification( HDC arg1, int arg2, int  arg3)
    1301 {
    1302     dprintf(("GDI32: SetTextJustification"));
    1303     return O32_SetTextJustification(arg1, arg2, arg3);
     1260ODINFUNCTION2(int, SetMapMode, HDC, hdc, int, fnMapMode)
     1261{
     1262    return O32_SetMapMode(hdc, fnMapMode);
     1263}
     1264//******************************************************************************
     1265//******************************************************************************
     1266ODINFUNCTION2(DWORD, SetMapperFlags, HDC, hdc, DWORD, dwFlag)
     1267{
     1268    return O32_SetMapperFlags(hdc, dwFlag);
     1269}
     1270//******************************************************************************
     1271//******************************************************************************
     1272ODINFUNCTION3(BOOL, SetMiterLimit, HDC, hdc, float, eNewLimit, float* ,peOldLimit)
     1273{
     1274    return O32_SetMiterLimit(hdc, eNewLimit, peOldLimit);
     1275}
     1276//******************************************************************************
     1277//******************************************************************************
     1278ODINFUNCTION2(int, SetPolyFillMode, HDC, hdc, int, iPolyFillMode)
     1279{
     1280    return O32_SetPolyFillMode(hdc, iPolyFillMode);
     1281}
     1282//******************************************************************************
     1283//******************************************************************************
     1284ODINFUNCTION2(UINT, SetTextAlign, HDC, hdc, UINT, fMode)
     1285{
     1286    return O32_SetTextAlign(hdc, fMode);
     1287}
     1288//******************************************************************************
     1289//******************************************************************************
     1290ODINFUNCTION2(int, SetTextCharacterExtra, HDC, hdc, int, nCharExtra)
     1291{
     1292    return O32_SetTextCharacterExtra(hdc, nCharExtra);
     1293}
     1294//******************************************************************************
     1295//******************************************************************************
     1296ODINFUNCTION3(BOOL, SetTextJustification, HDC, hdc, int, nBreakExtra, int, nBreakCount)
     1297{
     1298    return O32_SetTextJustification(hdc, nBreakExtra, nBreakCount);
    13041299}
    13051300//******************************************************************************
     
    13631358//******************************************************************************
    13641359//******************************************************************************
    1365 BOOL WIN32API UnrealizeObject( HGDIOBJ arg1)
    1366 {
    1367     dprintf(("GDI32: UnrealizeObject"));
    1368     return O32_UnrealizeObject(arg1);
    1369 }
    1370 //******************************************************************************
    1371 //******************************************************************************
    1372 BOOL WIN32API WidenPath( HDC arg1)
    1373 {
    1374     dprintf(("GDI32: WidenPath"));
    1375     return O32_WidenPath(arg1);
     1360BOOL WIN32API UnrealizeObject( HGDIOBJ hObject)
     1361{
     1362    dprintf(("GDI32: UnrealizeObject %x", hObject));
     1363    return O32_UnrealizeObject(hObject);
     1364}
     1365//******************************************************************************
     1366//******************************************************************************
     1367BOOL WIN32API WidenPath( HDC hdc)
     1368{
     1369    dprintf(("GDI32: WidenPath %x", hdc));
     1370    return O32_WidenPath(hdc);
    13761371}
    13771372//******************************************************************************
  • trunk/src/gdi32/text.cpp

    r3481 r3648  
    1 /* $Id: text.cpp,v 1.9 2000-05-02 20:49:58 sandervl Exp $ */
     1/* $Id: text.cpp,v 1.10 2000-06-01 19:00:05 sandervl Exp $ */
    22
    33/*
     
    576576  if (!pHps || (cbCount < 0) || ((lpszString == NULL) && (cbCount != 0)))
    577577  {
    578     SetLastError(ERROR_INVALID_HANDLE);
    579     return FALSE;
     578        dprintf(("InternalTextOutA: invalid parameter"));
     579        SetLastError(ERROR_INVALID_HANDLE);
     580        return FALSE;
    580581  }
    581582
    582583  if (cbCount > 512)
    583584  {
    584     SetLastError(ERROR_INVALID_PARAMETER);
    585     return FALSE;
     585        dprintf(("InternalTextOutA: invalid parameter cbCount"));
     586        SetLastError(ERROR_INVALID_PARAMETER);
     587        return FALSE;
    586588  }
    587589  if (fuOptions & ~((UINT)(ETO_CLIPPED | ETO_OPAQUE)))
    588590  {
    589     //ETO_GLYPH_INDEX, ETO_RTLLEADING, ETO_NUMERICSLOCAL, ETO_NUMERICSLATIN, ETO_IGNORELANGUAGE, ETO_PDY  are ignored
    590     return TRUE;
     591        dprintf(("InternalTextOutA: invalid fuOptions"));
     592        //ETO_GLYPH_INDEX, ETO_RTLLEADING, ETO_NUMERICSLOCAL, ETO_NUMERICSLATIN, ETO_IGNORELANGUAGE, ETO_PDY  are ignored
     593        return TRUE;
    591594  }
    592595
     
    600603      if (excludeBottomRightPoint(pHps,(PPOINTLOS2)&pmRect) == 0)
    601604      {
     605        dprintf(("InternalTextOutA: excludeBottomRightPoint returned 0"));
    602606        return TRUE;
    603607      }
     
    606610      if (fuOptions & ETO_OPAQUE)  flOptions |= CHSOS_OPAQUE;
    607611    }
    608   } else
     612  }
     613  else
    609614  {
    610615    if (fuOptions)
    611616    {
    612       SetLastError(ERROR_INVALID_HANDLE);
    613       return FALSE;
     617        dprintf(("InternalTextOutA: ERROR_INVALID_HANDLE"));
     618        SetLastError(ERROR_INVALID_HANDLE);
     619        return FALSE;
    614620    }
    615621  }
     
    619625    if (fuOptions & ETO_OPAQUE)
    620626    {
    621       lpszString = " ";
    622       cbCount = 1;
    623       flOptions |= CHSOS_CLIP;
    624     } else return TRUE;
     627        lpszString = " ";
     628        cbCount = 1;
     629        flOptions |= CHSOS_CLIP;
     630    }
     631    else {
     632        dprintf(("InternalTextOutA: cbCount == 0"));
     633        return TRUE;
     634    }
    625635  }
    626636  if (lpDx)
     
    633643
    634644    flOptions |= CHSOS_LEAVEPOS;
    635   } else OSLibGpiQueryCurrentPosition(pHps,&ptl);
     645  }
     646  else OSLibGpiQueryCurrentPosition(pHps,&ptl);
    636647
    637648  UINT align = GetTextAlign(hdc);
     
    663674    OSLibGpiSetTextAlignment(pHps,pmHAlign,pmVAlign);
    664675
    665   if (hits == GPIOS_ERROR)
    666     return FALSE;
     676  if(hits == GPIOS_ERROR) {
     677        dprintf(("InternalTextOutA: OSLibGpiCharStringPosAt returned GPIOS_ERROR"));
     678        return FALSE;
     679  }
    667680
    668681  if (getAlignUpdateCP(pHps))
Note: See TracChangeset for help on using the changeset viewer.