Ignore:
Timestamp:
Oct 7, 2000, 11:03:50 AM (25 years ago)
Author:
hugh
Message:

Fixed bitblt, it used the size of the source DC
when no destwindow was found. this doesn't work
for bitblt between dibsections if the dest is larger.
so now it checks if the dest DC belongs to a dibsection
and uses sets hdcHeight/Width to the size of the dibsection.
Added GetWidth() member function for this.

Fixes Civilisation Test of Times.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/dibsect.h

    r4127 r4447  
    1 /* $Id: dibsect.h,v 1.20 2000-08-30 18:05:24 sandervl Exp $ */
     1/* $Id: dibsect.h,v 1.21 2000-10-07 09:03:50 hugh Exp $ */
    22
    33/*
     
    5050
    5151typedef struct {
    52         BITMAPINFOHEADER_W bmiHeader;
    53         RGBQUAD bmiColors[1];
     52  BITMAPINFOHEADER_W bmiHeader;
     53  RGBQUAD bmiColors[1];
    5454} BITMAPINFO_W;
    5555typedef BITMAPINFO *LPBITMAPINFO;
     
    7979              int   GetBitCount();
    8080              int   GetHeight();
     81              int   GetWidth();
    8182              void  UnSelectDIBObject()      { this->hdc = 0;   };
    8283
    83               DWORD GetBitmapHandle()        { return handle; };
     84        DWORD GetBitmapHandle()      { return handle; };
    8485              void  SetBitmapHandle(DWORD bmphandle) { handle = bmphandle; };
    85               DWORD GetRGBUsage()            { return iUsage; };
     86        DWORD GetRGBUsage()            { return iUsage; };
    8687
    8788              BOOL  BitBlt(HDC hdcDest, int nXdest, int nYDest,
Note: See TracChangeset for help on using the changeset viewer.