[SYSDM] general.c: Make 2 global variables 'static' (#2060)
[reactos.git] / dll / cpl / sysdm / general.c
index 555db44..6843663 100644 (file)
@@ -24,12 +24,12 @@ typedef struct _IMGINFO
     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)
 {
@@ -123,7 +123,7 @@ static VOID InitLogo(HWND hwndDlg)
     pImgInfo->cxSource = logoBitmap.bmWidth;
     pImgInfo->cySource = logoBitmap.bmHeight;
     pImgInfo->iBits = logoBitmap.bmBitsPixel;
-    pImgInfo->iPLanes = logoBitmap.bmPlanes;
+    pImgInfo->iPlanes = logoBitmap.bmPlanes;
 
     DeleteObject(hLogo);
     DeleteObject(hMask);
@@ -172,7 +172,7 @@ LRESULT CALLBACK RosImageProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam
 
                     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;