mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-05 03:58:38 +02:00
* Fixed pixelsize of CarbonCursors
git-svn-id: trunk@16025 -
This commit is contained in:
parent
db3eeab4f1
commit
a5d219e10b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user