mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 05:59:30 +02:00
fix gtk LoadBitmapData for images with Width not divided by 8
git-svn-id: trunk@12561 -
This commit is contained in:
parent
7d152dfb5b
commit
8649f4eda1
@ -865,7 +865,7 @@ var
|
|||||||
BitsPtr: Pointer;
|
BitsPtr: Pointer;
|
||||||
Src, Dst: PByte;
|
Src, Dst: PByte;
|
||||||
begin
|
begin
|
||||||
LineSize := Width shr 3;
|
LineSize := (Width + 7) shr 3;
|
||||||
if (LineSize and 1) <> 0
|
if (LineSize and 1) <> 0
|
||||||
then begin
|
then begin
|
||||||
// the gdk_bitmap_create_from_data expects data byte aligned while
|
// the gdk_bitmap_create_from_data expects data byte aligned while
|
||||||
|
Loading…
Reference in New Issue
Block a user