mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-15 14:29:31 +02:00
LCL,Qt, fix some solid black mouse cursors
git-svn-id: trunk@40775 -
This commit is contained in:
parent
4a27c43792
commit
08ee2fff02
@ -1315,8 +1315,12 @@ begin
|
||||
else
|
||||
begin
|
||||
FHandle := QImage_create(FData, width, height, format);
|
||||
if format=QImageFormat_Mono then
|
||||
if format = QImageFormat_Mono then
|
||||
begin
|
||||
QImage_setNumColors(FHandle, 2);
|
||||
QImage_SetColor(FHandle, 0, $FF000000);
|
||||
QImage_SetColor(FHandle, 1, $FFFFFFFF);
|
||||
end;
|
||||
end;
|
||||
QtGDIObjects.AddGDIObject(Self);
|
||||
end;
|
||||
@ -1332,8 +1336,12 @@ begin
|
||||
else
|
||||
begin
|
||||
FHandle := QImage_create(FData, width, height, bytesPerLine, format);
|
||||
if format=QImageFormat_Mono then
|
||||
if format = QImageFormat_Mono then
|
||||
begin
|
||||
QImage_setNumColors(FHandle, 2);
|
||||
QImage_SetColor(FHandle, 0, $FF000000);
|
||||
QImage_SetColor(FHandle, 1, $FFFFFFFF);
|
||||
end;
|
||||
end;
|
||||
QtGDIObjects.AddGDIObject(Self);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user