aggpas: Prevent potential overflow error. Issue #40765.

This commit is contained in:
wp_xyz 2024-02-13 00:47:00 +01:00
parent 8f1c337b19
commit 7b6e360bce

View File

@ -1752,7 +1752,7 @@ end;
{ CALCULATE_ALPHA }
function rasterizer_scanline_aa.calculate_alpha(area: int): unsigned;
var
cover : system.integer;
cover : int;
begin
// 1: cover:=area shr (poly_base_shift * 2 + 1 - aa_shift );