Changeset 521 for GraphicTest/Packages/bgrabitmap/multishapeline.inc
- Timestamp:
- Apr 17, 2019, 12:58:41 AM (5 years ago)
- Location:
- GraphicTest
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GraphicTest
- Property svn:ignore
-
old new 8 8 GraphicTest.lps 9 9 GraphicTest.dbg 10 heaptrclog.trc
-
- Property svn:ignore
-
GraphicTest/Packages/bgrabitmap/multishapeline.inc
r494 r521 2 2 for k := 0 to NbShapeRows-1 do 3 3 with shapeRow[shapeRowsList[k]],shapes[shapeRowsList[k]] do 4 if densMinx <= densMaxx then 4 5 begin 6 if densMinx < minx then densMinx := minx; 7 if densMaxx > maxx then densMaxx := maxx; 8 5 9 if texture <> nil then 6 10 begin … … 11 15 with sums[xb-minx] do 12 16 begin 13 j := pdens^; inc(pdens); 14 if j <> 0 then 17 if pdens^ <> 0 then 15 18 begin 16 19 ec := GammaExpansion(ScanNextFunc()); 17 20 {$ifdef PARAM_ANTIALIASINGFACTOR} 18 w := DivByAntialiasPrecision65536( j*ec.alpha);21 w := DivByAntialiasPrecision65536(pdens^ * ec.alpha); 19 22 {$else} 20 w := ( j*ec.alpha) shr 16;23 w := (pdens^ * ec.alpha) shr 16; 21 24 {$endif} 22 25 if w <> 0 then … … 29 32 end else 30 33 ScanNextFunc(); 34 inc(pdens); 31 35 end; 32 36 end else … … 37 41 with sums[xb-minx] do 38 42 begin 39 j := pdens^; inc(pdens); 40 if j <> 0 then 43 if pdens^ <> 0 then 41 44 begin 42 45 {$ifdef PARAM_ANTIALIASINGFACTOR} 43 w := DivByAntialiasPrecision65536( j*ec.alpha);46 w := DivByAntialiasPrecision65536(pdens^ * ec.alpha); 44 47 {$else} 45 w := ( j*ec.alpha) shr 16;48 w := (pdens^ * ec.alpha) shr 16; 46 49 {$endif} 47 50 if w <> 0 then … … 53 56 end; 54 57 end; 58 inc(pdens); 55 59 end; 56 60 end;
Note:
See TracChangeset
for help on using the changeset viewer.