Ignore:
Timestamp:
Nov 9, 1999, 8:23:17 PM (26 years ago)
Author:
sandervl
Message:

dprintf2 addition + Rene Pronk's mnemonics changes

File:
1 edited

Legend:

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

    r1629 r1671  
    1 /* $Id: user32.cpp,v 1.51 1999-11-08 13:44:14 sandervl Exp $ */
     1/* $Id: user32.cpp,v 1.52 1999-11-09 19:23:16 sandervl Exp $ */
    22
    33/*
     
    9999BOOL WIN32API CopyRect( PRECT lprcDst, const RECT * lprcSrc)
    100100{
    101 //    ddprintf(("USER32:  CopyRect\n"));
     101    dprintf2(("USER32:  CopyRect\n"));
    102102    if (!lprcDst || !lprcSrc) {
    103103        SetLastError(ERROR_INVALID_PARAMETER);
     
    113113BOOL WIN32API EqualRect( const RECT *lprc1, const RECT *lprc2)
    114114{
    115 #ifdef DEBUG
    116     WriteLog("USER32:  EqualRect\n");
    117 #endif
     115    dprintf2(("USER32:  EqualRect\n"));
    118116    if (!lprc1 || !lprc2)
    119117    {
     
    131129BOOL WIN32API InflateRect( PRECT lprc, int dx, int  dy)
    132130{
    133 #ifdef DEBUG
    134     WriteLog("USER32:  InflateRect\n");
    135 #endif
     131    dprintf(("USER32:  InflateRect\n"));
    136132    if (!lprc)
    137133    {
     
    151147BOOL WIN32API IntersectRect( PRECT lprcDst, const RECT * lprcSrc1, const RECT * lprcSrc2)
    152148{
    153 #ifdef DEBUG
    154 ////    WriteLog("USER32:  IntersectRect\n");
    155 #endif
     149    dprintf2(("USER32:  IntersectRect\n"));
    156150    if (!lprcDst || !lprcSrc1 || !lprcSrc2)
    157151    {
     
    191185BOOL WIN32API OffsetRect( PRECT lprc, int x, int  y)
    192186{
    193 #ifdef DEBUG
    194 ////    WriteLog("USER32:  OffsetRect\n");
    195 #endif
     187    dprintf2(("USER32:  OffsetRect\n"));
    196188    if (!lprc)
    197189    {
     
    211203BOOL WIN32API PtInRect( const RECT *lprc, POINT pt)
    212204{
    213 #ifdef DEBUG1
    214     WriteLog("USER32:  PtInRect\n");
    215 #endif
     205    dprintf2(("USER32:  PtInRect\n"));
    216206    if (!lprc)
    217207    {
     
    260250BOOL WIN32API SubtractRect( PRECT lprcDest, const RECT * lprcSrc1, const RECT * lprcSrc2)
    261251{
    262 #ifdef DEBUG
    263     WriteLog("USER32:  SubtractRect");
    264 #endif
     252    dprintf2(("USER32:  SubtractRect"));
    265253    RECT tmp;
    266254
     
    303291BOOL WIN32API UnionRect( PRECT lprcDst, const RECT *lprcSrc1, const RECT *lprcSrc2)
    304292{
    305 #ifdef DEBUG
    306     WriteLog("USER32:  UnionRect\n");
    307 #endif
     293    dprintf2(("USER32:  UnionRect\n"));
    308294    if (!lprcDst || !lprcSrc1 || !lprcSrc2)
    309295    {
     
    341327BOOL WIN32API ClipCursor(const RECT * lpRect)
    342328{
    343 #ifdef DEBUG
    344     WriteLog("USER32:  ClipCursor\n");
    345 #endif
     329    dprintf(("USER32:  ClipCursor\n"));
    346330    return O32_ClipCursor(lpRect);
    347331}
     
    350334HCURSOR WIN32API CreateCursor( HINSTANCE hInst, int xHotSpot, int yHotSpot, int nWidth, int nHeight, const VOID *pvANDPlane, const VOID *pvXORPlane)
    351335{
    352 #ifdef DEBUG
    353     WriteLog("USER32:  CreateCursor\n");
    354 #endif
     336    dprintf(("USER32:  CreateCursor\n"));
    355337    return O32_CreateCursor(hInst,xHotSpot,yHotSpot,nWidth,nHeight,pvANDPlane,pvXORPlane);
    356338}
     
    359341BOOL WIN32API DestroyCursor( HCURSOR hCursor)
    360342{
    361 #ifdef DEBUG
    362     WriteLog("USER32:  DestroyCursor\n");
    363 #endif
     343    dprintf(("USER32:  DestroyCursor\n"));
    364344    return O32_DestroyCursor(hCursor);
    365345}
     
    368348BOOL WIN32API GetClipCursor( LPRECT lpRect)
    369349{
    370 #ifdef DEBUG
    371     WriteLog("USER32:  GetClipCursor\n");
    372 #endif
     350    dprintf(("USER32:  GetClipCursor\n"));
    373351    return O32_GetClipCursor(lpRect);
    374352}
     
    377355HCURSOR WIN32API GetCursor(void)
    378356{
    379 #ifdef DEBUG
    380 ////    WriteLog("USER32:  GetCursor\n");
    381 #endif
     357    dprintf2(("USER32:  GetCursor\n"));
    382358    return O32_GetCursor();
    383359}
     
    388364    BOOL rc;
    389365    POINT point;
    390 #ifdef DEBUG
    391 ////    WriteLog("USER32:  GetCursorPos\n");
    392 #endif
     366
     367    dprintf2(("USER32:  GetCursorPos\n"));
     368
    393369    if (!lpPoint) return FALSE;
    394370    if (OSLibWinQueryPointerPos(OSLIB_HWND_DESKTOP,&point)) //POINT == POINTL
     
    422398  {
    423399    return LoadCursorA(NULL,lpFileName);
    424   } else
     400  }
     401  else
    425402  {
    426403    dprintf(("USER32:LoadCursorFromFileA (%s) not implemented.\n",
     
    476453BOOL WIN32API SetCursorPos( int X, int Y)
    477454{
    478 #ifdef DEBUG
    479     WriteLog("USER32:  SetCursorPos\n");
    480 #endif
     455    dprintf(("USER32:  SetCursorPos %d %d", X,Y));
    481456    return O32_SetCursorPos(X,Y);
    482457}
     
    512487int WIN32API ShowCursor( BOOL bShow)
    513488{
    514 #ifdef DEBUG
    515     WriteLog("USER32:  ShowCursor\n");
    516 #endif
     489    dprintf2(("USER32:  ShowCursor %d", bShow));
    517490    return O32_ShowCursor(bShow);
    518491}
     
    547520UINT WIN32API GetDoubleClickTime(void)
    548521{
    549 #ifdef DEBUG
    550     WriteLog("USER32:  GetDoubleClickTime\n");
    551 #endif
     522    dprintf(("USER32:  GetDoubleClickTime\n"));
    552523    return O32_GetDoubleClickTime();
    553524}
     
    845816        break;
    846817    }
    847 #ifdef DEBUG
    848     WriteLog("USER32:  GetSystemMetrics %d returned %d\n", nIndex, rc);
    849 #endif
     818    dprintf(("USER32:  GetSystemMetrics %d returned %d\n", nIndex, rc));
    850819    return(rc);
    851820}
     
    949918        break;
    950919  }
    951 #ifdef DEBUG
    952   WriteLog("USER32:  SystemParametersInfoA %d, returned %d\n", uiAction, rc);
    953 #endif
     920  dprintf(("USER32:  SystemParametersInfoA %d, returned %d\n", uiAction, rc));
    954921  return(rc);
    955922}
     
    11331100WORD WIN32API GetAsyncKeyState(INT nVirtKey)
    11341101{
    1135 #ifdef DEBUG
    1136 ////    WriteLog("USER32:  GetAsyncKeyState Not implemented\n");
    1137 #endif
     1102    dprintf2(("USER32:  GetAsyncKeyState Not implemented\n"));
    11381103    return 0;
    11391104}
     
    11851150int WIN32API GetKeyboardLayoutList(int nBuff, HKL *lpList)
    11861151{
    1187 #ifdef DEBUG
    1188   WriteLog("USER32:  GetKeyboardLayoutList, not implemented\n");
    1189 #endif
     1152  dprintf(("USER32:  GetKeyboardLayoutList, not implemented\n"));
    11901153  return(0);
    11911154}
     
    12571220{
    12581221//SvL: Hehe. 32 MB logfile for Opera after a minute.
    1259 #ifdef DEBUG
    1260 //    WriteLog("USER32:  GetKeyState %d\n", nVirtKey);
    1261 #endif
     1222    dprintf2(("USER32:  GetKeyState %d\n", nVirtKey));
    12621223    return O32_GetKeyState(nVirtKey);
    12631224}
Note: See TracChangeset for help on using the changeset viewer.