[CMAKE]
[reactos.git] / subsystems / win32 / win32k / eng / engbrush.c
index 9418ffc..c52d848 100644 (file)
@@ -37,7 +37,7 @@ EBRUSHOBJ_vInit(EBRUSHOBJ *pebo, PBRUSH pbrush, PDC pdc)
     ASSERT(pebo->psurfTrg->ppal);
 
     pebo->ppalSurf = pebo->psurfTrg->ppal;
-    GDIOBJ_IncrementShareCount(&pebo->ppalSurf->BaseObject);
+    GDIOBJ_vReferenceObjectByPointer(&pebo->ppalSurf->BaseObject);
 
     if (pbrush->flAttrs & GDIBRUSH_IS_NULL)
     {
@@ -144,7 +144,7 @@ EngRealizeBrush(
     ULONG lWidth;
 
     /* Calculate width in bytes of the realized brush */
-    lWidth = DIB_GetDIBWidthBytes(psoPattern->sizlBitmap.cx,
+    lWidth = WIDTH_BYTES_ALIGN32(psoPattern->sizlBitmap.cx,
                                   BitsPerFormat(psoDst->iBitmapFormat));
 
     /* Allocate a bitmap */