LCL,Qt, fix some solid black mouse cursors

git-svn-id: trunk@40775 -
This commit is contained in:
jesus 2013-04-09 20:26:28 +00:00
parent 4a27c43792
commit 08ee2fff02

View File

@ -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;