Screenshot program bugfix

This commit is contained in:
Владислав Джавадов 2020-05-22 23:25:07 +03:00
parent d72a460d22
commit 238356dff9

View File

@ -47,12 +47,12 @@ begin
while B < Screen.Height do
begin
I := ((Screen.Width div 2) * B + A) div 2;
Preview[i].Red := (Red(A, B) + Red(B + 1, B) + Red(A, B + 1) + Red(A + 1, B + 1)) div 4;
Preview[i].Red := (Red(A, B) + Red(A+ 1, B) + Red(A, B + 1) + Red(A + 1, B + 1)) div 4;
Preview[i].Green := (Green(A, B) + Green(A + 1, B) + Green(A, B + 1) + Green(A + 1, B + 1)) div 4;
Preview[i].Blue := (Blue(A, B) + Blue(A + 1, B) + Blue(A, B + 1) + Blue(A + 1, B + 1)) div 4;
Inc(B, 2);
end;
Inc(B, 2);
Inc(A, 2);
end;
end;