mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-11 22:59:21 +02:00
* improved colormask for cursors
git-svn-id: trunk@10564 -
This commit is contained in:
parent
ef505e76e2
commit
493364664f
@ -1272,7 +1272,7 @@ function TGtkWidgetSet.CreateCursor(ACursorInfo: PIconInfo): hCursor;
|
||||
var
|
||||
c_bit, m_bit: byte;
|
||||
begin
|
||||
c_bit := ord(c.pixel = $FFFFFF);
|
||||
c_bit := Ord(0.222 * c.red + 0.707 * c.green + 0.071 * c.blue >= $8000);
|
||||
m_bit := ord(MaskPixel = 0);
|
||||
|
||||
AImgBits^ := AImgBits^ or (c_bit shl offset);
|
||||
|
Loading…
Reference in New Issue
Block a user