mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 09:19:32 +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;
|
||||
Src, Dst: PByte;
|
||||
begin
|
||||
LineSize := Width shr 3;
|
||||
LineSize := (Width + 7) shr 3;
|
||||
if (LineSize and 1) <> 0
|
||||
then begin
|
||||
// the gdk_bitmap_create_from_data expects data byte aligned while
|
||||
|
Loading…
Reference in New Issue
Block a user