Ignore:
Timestamp:
Oct 1, 2000, 11:25:49 PM (25 years ago)
Author:
phaller
Message:

.

File:
1 edited

Legend:

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

    r4254 r4356  
    1 /* $Id: blit.cpp,v 1.18 2000-09-13 21:00:22 sandervl Exp $ */
     1/* $Id: blit.cpp,v 1.19 2000-10-01 21:21:15 phaller Exp $ */
    22
    33/*
     
    5555//******************************************************************************
    5656//******************************************************************************
    57 BOOL WIN32API BitBlt(HDC hdcDest, int arg2, int arg3, int arg4, int arg5, HDC hdcSrc, int arg7, int arg8, DWORD  arg9)
    58 {
    59  BOOL rc;
    60 
    61     SetLastError(ERROR_SUCCESS);
    62     if(DIBSection::getSection() != NULL) {
    63         DIBSection *dsect = DIBSection::findHDC(hdcSrc);
    64         if(dsect) {
    65                 return dsect->BitBlt(hdcDest, arg2, arg3, arg4, arg5, arg7, arg8, arg4, arg5, arg9);
    66         }
    67     }
    68     dprintf(("GDI32: BitBlt to hdc %X from (%d,%d) to (%d,%d), (%d,%d) rop %X\n", hdcDest, arg7, arg8, arg2, arg3, arg4, arg5, arg9));
    69     return O32_BitBlt(hdcDest, arg2, arg3, arg4, arg5, hdcSrc, arg7, arg8, arg9);
     57BOOL WIN32API BitBlt(HDC hdcDest,
     58                     int nXDest,
     59                     int nYDest,
     60                     int nWidth,
     61                     int nHeight,
     62                     HDC hdcSrc,
     63                     int nXSrc,
     64                     int nYSrc,
     65                     DWORD  dwRop)
     66{
     67  BOOL rc;
     68
     69  SetLastError(ERROR_SUCCESS);
     70  if(DIBSection::getSection() != NULL)
     71  {
     72    DIBSection *dsect = DIBSection::findHDC(hdcSrc);
     73    if(dsect)
     74    {
     75      return dsect->BitBlt(hdcDest,
     76                           nXDest,
     77                           nYDest,
     78                           nWidth,
     79                           nHeight,
     80                           nXSrc,
     81                           nYSrc,
     82                           nWidth,
     83                           nHeight,
     84                           dwRop);
     85    }
     86  }
     87  dprintf(("GDI32: BitBlt to hdc %X from (%d,%d) to (%d,%d), (%d,%d) rop %X\n",
     88           hdcDest, nXSrc, nYSrc, nXDest, nYDest, nWidth, nHeight, dwRop));
     89  return O32_BitBlt(hdcDest, nXDest, nYDest, nWidth, nHeight, hdcSrc, nXSrc, nYSrc, dwRop);
    7090}
    7191//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.