Ignore:
Timestamp:
Jun 14, 2000, 3:17:51 PM (25 years ago)
Author:
sandervl
Message:

region changes

File:
1 edited

Legend:

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

    r3677 r3705  
    1 /* $Id: gdi32.cpp,v 1.50 2000-06-08 18:07:06 sandervl Exp $ */
     1/* $Id: gdi32.cpp,v 1.51 2000-06-14 13:17:50 sandervl Exp $ */
    22
    33/*
     
    8585//******************************************************************************
    8686//******************************************************************************
    87 int WIN32API GetObjectA( HGDIOBJ hObject, int size, void *lpBuffer)
    88 {
    89  int rc;
    90 
    91   if(size == 0 || lpBuffer == NULL) {
    92         SetLastError(ERROR_INVALID_PARAMETER);
    93         return 0;
    94   }
    95 
    96   if(DIBSection::getSection() != NULL)
    97   {
    98         DIBSection *dsect = DIBSection::find(hObject);
    99         if(dsect)
    100         {
    101                 rc = dsect->GetDIBSection(size, lpBuffer);
    102                 if(rc == 0) {
    103                         SetLastError(ERROR_INVALID_PARAMETER);
    104                         return 0;
    105                 }
    106                 SetLastError(ERROR_SUCCESS);
    107                 return rc;
    108         }
    109   }
    110 
    111   dprintf(("GDI32: GetObject %X %X %X\n", hObject, size, lpBuffer));
    112   return O32_GetObject(hObject, size, lpBuffer);
    113 }
    114 //******************************************************************************
    115 //******************************************************************************
    116 int WIN32API GetObjectW( HGDIOBJ arg1, int arg2, void *  arg3)
    117 {
    118     dprintf(("GDI32: GetObjectW %X, %d %X not complete!", arg1, arg2, arg3));
    119     return GetObjectA(arg1, arg2, arg3);
    120 }
    121 //******************************************************************************
    122 //******************************************************************************
    123 DWORD WIN32API GetObjectType( HGDIOBJ arg1)
    124 {
    125     dprintf2(("GDI32: GetObjectType\n"));
    126     return O32_GetObjectType(arg1);
    127 }
    128 //******************************************************************************
    129 //******************************************************************************
    130 BOOL WIN32API DeleteObject(HANDLE hObj)
    131 {
    132     dprintf(("GDI32: DeleteObject %x", hObj));
    133     DIBSection::deleteSection((DWORD)hObj);
    134     return O32_DeleteObject(hObj);
    135 }
    136 //******************************************************************************
    137 //******************************************************************************
    13887BOOL WIN32API DeleteDC( HDC hdc)
    13988{
     
    205154    dprintf(("GDI32: StrokePath\n"));
    206155    return O32_StrokePath(arg1);
    207 }
    208 //******************************************************************************
    209 //******************************************************************************
    210 HGDIOBJ WIN32API SelectObject(HDC hdc, HGDIOBJ hObj)
    211 {
    212  HGDIOBJ rc;
    213 
    214     dprintf2(("GDI32: SelectObject %x %x", hdc, hObj));
    215 
    216     if(DIBSection::getSection() != NULL)
    217     {
    218       DIBSection *dsect;
    219 
    220       dsect = DIBSection::find(hdc);
    221       if(dsect)
    222       {
    223         //remove previously selected dibsection
    224         dsect->UnSelectDIBObject();
    225       }
    226       dsect = DIBSection::find((DWORD)hObj);
    227       if(dsect)
    228       {
    229         dsect->SelectDIBObject(hdc);
    230       }
    231     }
    232     rc = O32_SelectObject(hdc, hObj);
    233     if(rc != 0 && DIBSection::getSection != NULL)
    234     {
    235       DIBSection *dsect = DIBSection::find((DWORD)rc);
    236       if(dsect)
    237       {
    238         dsect->UnSelectDIBObject();
    239       }
    240     }
    241     return(rc);
    242156}
    243157//******************************************************************************
     
    14861400
    14871401//******************************************************************************
    1488 BOOL WIN32API SetObjectOwner( HGDIOBJ arg1, int arg2 )
    1489 {
    1490   // Here is a guess for a undocumented entry
    1491   dprintf(("GDI32: SetObjectOwner - stub (TRUE)\n"));
    1492   return TRUE;
    1493 }
    1494 //******************************************************************************
    14951402
    14961403
Note: See TracChangeset for help on using the changeset viewer.