HBITMAP hBitmap;
INT cxSource;
INT cySource;
- INT iPLanes;
+ INT iPlanes;
INT iBits;
} IMGINFO, *PIMGINFO;
-PIMGINFO pImgInfo = NULL;
-BLENDFUNCTION BlendFunc = {AC_SRC_OVER, 0, 255, AC_SRC_ALPHA};
+static PIMGINFO pImgInfo;
+static const BLENDFUNCTION BlendFunc = {AC_SRC_OVER, 0, 255, AC_SRC_ALPHA};
VOID ShowLastWin32Error(HWND hWndOwner)
{
pImgInfo->cxSource = logoBitmap.bmWidth;
pImgInfo->cySource = logoBitmap.bmHeight;
pImgInfo->iBits = logoBitmap.bmBitsPixel;
- pImgInfo->iPLanes = logoBitmap.bmPlanes;
+ pImgInfo->iPlanes = logoBitmap.bmPlanes;
DeleteObject(hLogo);
DeleteObject(hMask);
iDevsHeight = rcCredits.bottom - rcCredits.top;
- hCreditsBitmap = CreateBitmap(pImgInfo->cxSource, (2 * pImgInfo->cySource) + iDevsHeight + 1, pImgInfo->iPLanes, pImgInfo->iBits, NULL);
+ hCreditsBitmap = CreateBitmap(pImgInfo->cxSource, (2 * pImgInfo->cySource) + iDevsHeight + 1, pImgInfo->iPlanes, pImgInfo->iBits, NULL);
if(!hCreditsBitmap)
break;