Changeset 11 for trunk/bitmap.cpp


Ignore:
Timestamp:
Feb 21, 2018, 1:01:16 AM (7 years ago)
Author:
Gregg Young
Message:

This changes the bitmap save from an internal bitmap or the use of MMOS2 to using GBM. The save code was adapted from GBMv2 by Heiko Nitzsche and Andy Keys. Also fixed the failure of the file dialog to update the file extension name on the first save after a format changes. Non English resources haven't been updated yet. Several more build error warning fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bitmap.cpp

    r2 r11  
    1818 ***/
    1919
    20 // ** CaptureWindow ******************************************************* /*fold00*/
     20// ** CaptureWindow ******************************************************* /*FOLD00*/
    2121
    2222#define MAX_WAIT   15
     
    4242        for (USHORT i = 0; i < MAX_WAIT; i++)
    4343        {
    44             _sleep2 (100);
     44            DosSleep (100);
    4545            WinQueryWindowPos (hwndParent, &swp);
    4646            if ((swp.hwndInsertBehind == HWND_TOP) ||
     
    149149               sizeof (aptl) / sizeof (POINTL), /* Number of points in aptl */
    150150               aptl, ROP_SRCCOPY, BBO_IGNORE);
    151     SaveBitmap (hbm, hpsMem);
     151    SaveBitmap (hbm, hpsMem, sWidth, sHeight, bmp.cBitCount);
    152152
    153153    // re-associate the previous bit map and the memory presentation space
Note: See TracChangeset for help on using the changeset viewer.