mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-24 09:53:41 +02:00
Adds a filter for the special alphablending routine to filter out white pixels and makes the Android look the default in the Android example
git-svn-id: trunk@36391 -
This commit is contained in:
parent
89e3e0fba4
commit
6edfeb2724
@ -6,7 +6,7 @@ uses
|
|||||||
customdrawnint,
|
customdrawnint,
|
||||||
Interfaces,
|
Interfaces,
|
||||||
Forms,
|
Forms,
|
||||||
mainform, secondform;
|
mainform, secondform, customdrawn_android, customdrawndrawers;
|
||||||
|
|
||||||
exports
|
exports
|
||||||
Java_com_pascal_lclproject_LCLActivity_LCLOnTouch name 'Java_com_pascal_lcltest_LCLActivity_LCLOnTouch',
|
Java_com_pascal_lclproject_LCLActivity_LCLOnTouch name 'Java_com_pascal_lcltest_LCLActivity_LCLOnTouch',
|
||||||
@ -22,6 +22,7 @@ exports
|
|||||||
|
|
||||||
procedure MyActivityOnCreate;
|
procedure MyActivityOnCreate;
|
||||||
begin
|
begin
|
||||||
|
DefaultStyle := dsAndroid;
|
||||||
Application.Initialize;
|
Application.Initialize;
|
||||||
Application.CreateForm(TForm1, Form1);
|
Application.CreateForm(TForm1, Form1);
|
||||||
Application.CreateForm(TForm2, Form2);
|
Application.CreateForm(TForm2, Form2);
|
||||||
|
|||||||
@ -574,7 +574,9 @@ begin
|
|||||||
begin
|
begin
|
||||||
Self.Colors[CurDestX, CurDestY] := ASource.Colors[CurSrcX, CurSrcY];
|
Self.Colors[CurDestX, CurDestY] := ASource.Colors[CurSrcX, CurSrcY];
|
||||||
end
|
end
|
||||||
else if MaskValue > $00 then
|
// Theorically it should be > 0 but we make a filter here to exclude low-alpha pixels
|
||||||
|
// because those cause small white pixels in the image
|
||||||
|
else if MaskValue > $4000 then
|
||||||
begin
|
begin
|
||||||
SrcColor := ASource.Colors[CurSrcX, CurSrcY];
|
SrcColor := ASource.Colors[CurSrcX, CurSrcY];
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user