Ignore:
Timestamp:
Oct 31, 1999, 10:38:20 PM (26 years ago)
Author:
achimha
Message:

Added DIB changes from Markus Montkowski to return initalized DIB structure + various bug fixes in DIB handling

File:
1 edited

Legend:

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

    r1388 r1533  
    1 /* $Id: gdi32.cpp,v 1.11 1999-10-20 22:36:53 sandervl Exp $ */
     1/* $Id: gdi32.cpp,v 1.12 1999-10-31 21:38:17 achimha Exp $ */
    22
    33/*
     
    187187int WIN32API GetObjectA( HGDIOBJ arg1, int arg2, void *  arg3)
    188188{
     189
     190    if(DIBSection::getSection() != NULL)
     191    {
     192      DIBSection *dsect = DIBSection::find(arg1);
     193      if(dsect)
     194      {
     195        return dsect->GetDIBSection(arg2, (DIBSECTION*)arg3);
     196      }
     197    }
     198
    189199    dprintf(("GDI32: GetObject %X %X %X\n", arg1, arg2, arg3));
    190200    return O32_GetObject(arg1, arg2, arg3);
     
    13381348    dprintf(("GDI32: OS2GetTextFaceW"));
    13391349    rc = O32_GetTextFace(arg1, arg2, astring);
    1340     AsciiToUnicode(astring, arg3);     
     1350    AsciiToUnicode(astring, arg3);
    13411351    return rc;
    13421352}
     
    15141524//******************************************************************************
    15151525BOOL WIN32API Pie(HDC hdc, int nLeftRect, int nTopRect, int nRightRect,
    1516                   int nBottomRect, int nXRadial1, int nYRadial1, int nXRadial2, 
     1526                  int nBottomRect, int nXRadial1, int nYRadial1, int nXRadial2,
    15171527                  int nYRadial2)
    15181528{
     
    17401750//******************************************************************************
    17411751//******************************************************************************
    1742 INT WIN32API SetDIBitsToDevice(HDC hdc, INT xDest, INT yDest, DWORD cx, DWORD cy, INT xSrc, INT ySrc, UINT startscan, UINT lines, LPCVOID bits, const BITMAPINFO *info, UINT coloruse)
     1752INT WIN32API SetDIBitsToDevice(HDC hdc, INT xDest, INT yDest, DWORD cx, DWORD cy, INT xSrc, INT ySrc, UINT startscan, UINT lines, LPCVOID bits, const BITMAPINFO *info, UINT coloruse)
    17431753{
    17441754    INT result, imgsize, palsize;
     
    20162026  {
    20172027        DIBSection *dsect = new DIBSection((WINBITMAPINFOHEADER *)&pbmi->bmiHeader, (DWORD)res, fFlip);
    2018         *ppvBits = dsect->GetDIBObject();
     2028        dprintf(("Constructor returned\n",res));
     2029        if(ppvBits!=NULL)
     2030          *ppvBits = dsect->GetDIBObject();
     2031        dprintf(("GDI32: return %08X\n",res));
    20192032        return(res);
    20202033  }
     
    32023215
    32033216
     3217
Note: See TracChangeset for help on using the changeset viewer.