--- mstools/samples/mandel/dibmp.c 2018/08/09 18:20:41 1.1 +++ mstools/samples/mandel/dibmp.c 2018/08/09 18:21:39 1.1.1.2 @@ -18,6 +18,7 @@ * none * \**************************************************************************/ +//#define STRICT #include #include #include "jtypes.h" @@ -498,7 +499,7 @@ UINT uRC; } - SelectPalette(hDC, hPalOld, 0); + //SelectPalette(hDC, hPalOld, 0); DeleteObject(hPal); ErrExit2: GlobalFree(plogPat); @@ -647,7 +648,7 @@ INT iCreatePenFrPal(HDC hDC, PVOID *prgh } for (i = 0; i < iNumClr; i++) { - prghPen[i] = (PVOID) CreatePen(PS_SOLID, 0, PALETTEINDEX(i)); + prghPen[i] = (PVOID)CreatePen(PS_SOLID, 0, PALETTEINDEX(i)); iResult = i; } @@ -688,7 +689,7 @@ INT iCreatePenFrPal(HDC hDC, PVOID *prgh RealizePalette(hDC); for (i = 0; i < iNumClr; i++) { - prghPen[i] = (PVOID) CreatePen(PS_SOLID, 0, PALETTEINDEX(i)); + prghPen[i] = (PVOID)CreatePen(PS_SOLID, 0, PALETTEINDEX(i)); iResult = i; }