From a5d219e10bd94df350ce624feaf76579dfff500b Mon Sep 17 00:00:00 2001 From: marc Date: Mon, 11 Aug 2008 23:22:56 +0000 Subject: [PATCH] * Fixed pixelsize of CarbonCursors git-svn-id: trunk@16025 - --- lcl/interfaces/carbon/carbongdiobjects.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lcl/interfaces/carbon/carbongdiobjects.pp b/lcl/interfaces/carbon/carbongdiobjects.pp index b343ec5141..5c2b12f762 100644 --- a/lcl/interfaces/carbon/carbongdiobjects.pp +++ b/lcl/interfaces/carbon/carbongdiobjects.pp @@ -1739,7 +1739,7 @@ begin FPixmapHandle^^.pixelType := RGBDirect; FPixmapHandle^^.cmpSize := ABitmap.BitsPerComponent; FPixmapHandle^^.cmpCount := ABitmap.Depth div FPixmapHandle^^.cmpSize; // $AARRGGBB - FPixmapHandle^^.pixelSize := ABitmap.Depth; // depth + FPixmapHandle^^.pixelSize := ABitmap.FBitsPerPixel; // depth FPixmapHandle^^.pmTable := nil; FPixmapHandle^^.baseAddr := Ptr(ABitmap.Data); @@ -1781,7 +1781,7 @@ begin FPixmapHandle^^.pixelType := RGBDirect; FPixmapHandle^^.cmpSize := ABitmap.BitsPerComponent; FPixmapHandle^^.cmpCount := ABitmap.Depth div FPixmapHandle^^.cmpSize; // $AARRGGBB - FPixmapHandle^^.pixelSize := ABitmap.Depth; // depth + FPixmapHandle^^.pixelSize := ABitmap.FBitsPerPixel; // depth rowBytes := FPixmapHandle^^.Bounds.right * (FPixmapHandle^^.pixelSize shr 3); FPixmapHandle^^.rowBytes := rowBytes or $8000; FPixmapHandle^^.pmTable := nil;