mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 10:19:23 +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
|
else
|
||||||
begin
|
begin
|
||||||
FHandle := QImage_create(FData, width, height, format);
|
FHandle := QImage_create(FData, width, height, format);
|
||||||
if format=QImageFormat_Mono then
|
if format = QImageFormat_Mono then
|
||||||
|
begin
|
||||||
QImage_setNumColors(FHandle, 2);
|
QImage_setNumColors(FHandle, 2);
|
||||||
|
QImage_SetColor(FHandle, 0, $FF000000);
|
||||||
|
QImage_SetColor(FHandle, 1, $FFFFFFFF);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
QtGDIObjects.AddGDIObject(Self);
|
QtGDIObjects.AddGDIObject(Self);
|
||||||
end;
|
end;
|
||||||
@ -1332,8 +1336,12 @@ begin
|
|||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
FHandle := QImage_create(FData, width, height, bytesPerLine, format);
|
FHandle := QImage_create(FData, width, height, bytesPerLine, format);
|
||||||
if format=QImageFormat_Mono then
|
if format = QImageFormat_Mono then
|
||||||
|
begin
|
||||||
QImage_setNumColors(FHandle, 2);
|
QImage_setNumColors(FHandle, 2);
|
||||||
|
QImage_SetColor(FHandle, 0, $FF000000);
|
||||||
|
QImage_SetColor(FHandle, 1, $FFFFFFFF);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
QtGDIObjects.AddGDIObject(Self);
|
QtGDIObjects.AddGDIObject(Self);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user