Ignore:
Timestamp:
Jul 16, 2001, 9:32:55 PM (24 years ago)
Author:
sandervl
Message:

allocate more memory for GpiCreateBitmap (icon)

File:
1 edited

Legend:

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

    r6168 r6348  
    1 /* $Id: oslibres.cpp,v 1.15 2001-07-04 09:55:17 sandervl Exp $ */
     1/* $Id: oslibres.cpp,v 1.16 2001-07-16 19:32:55 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    246246
    247247    hps = WinGetScreenPS(HWND_DESKTOP);
    248     masksize = sizeof(BITMAPINFO2) + (pAndBmp->bmHeight * 2 * pAndBmp->bmWidthBytes) + 2*sizeof(RGB2);
     248    //SvL: 2*sizeof(RGB2) is enough, but GpiCreateBitmap seems to touch more
     249    //     memory. (Adobe Photoshop 6 running in the debugger)
     250    masksize = sizeof(BITMAPINFO2) + (pAndBmp->bmHeight * 2 * pAndBmp->bmWidthBytes) + 16*sizeof(RGB2);
    249251    pBmpMask = (BITMAPINFO2 *)malloc(masksize);
    250252    if(pBmpMask == NULL) {
Note: See TracChangeset for help on using the changeset viewer.