Ignore:
Timestamp:
Apr 17, 2019, 10:42:18 AM (5 years ago)
Author:
chronos
Message:
  • Modified: Updated Graphics32 library.
Location:
GraphicTest/Packages/Graphics32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GraphicTest/Packages/Graphics32

    • Property svn:ignore set to
      lib
  • GraphicTest/Packages/Graphics32/GR32_Filters.pas

    r450 r522  
    5050  Windows,
    5151{$ENDIF}
    52   Classes, SysUtils, GR32, GR32_Blend, GR32_System, GR32_Bindings;
     52  Classes, SysUtils, GR32;
    5353
    5454{ Basic processing }
     
    8383
    8484uses
     85  {$IFDEF COMPILERXE2_UP}Types, {$ENDIF} GR32_System, GR32_Bindings,
    8586  GR32_Lowlevel;
    8687
     
    8990  SEmptySource = 'The source is nil';
    9091  SEmptyDestination = 'Destination is nil';
    91   SNoInPlace = 'In-place operation is not supported here';
    9292
    9393type
     
    115115    (@@LogicalMaskLineOr)
    116116  );
    117  
     117
    118118  LOGICAL_MASK_LINE_EX: array[TLogicalOperator] of ^TLogicalMaskLineEx = (
    119119    (@@LogicalMaskLineXorEx),
     
    181181  with Dst do
    182182  begin
    183     IntersectRect(SrcRect, SrcRect, Src.BoundsRect);
     183    GR32.IntersectRect(SrcRect, SrcRect, Src.BoundsRect);
    184184    if (SrcRect.Right < SrcRect.Left) or (SrcRect.Bottom < SrcRect.Top) then Exit;
    185185
     
    187187    DstY := Clamp(DstY, 0, Height);
    188188
    189     DstRect.TopLeft := Point(DstX, DstY);
     189    DstRect.TopLeft := GR32.Point(DstX, DstY);
    190190    DstRect.Right := DstX + SrcRect.Right - SrcRect.Left;
    191191    DstRect.Bottom := DstY + SrcRect.Bottom - SrcRect.Top;
    192192
    193     IntersectRect(DstRect, DstRect, BoundsRect);
    194     IntersectRect(DstRect, DstRect, ClipRect);
     193    GR32.IntersectRect(DstRect, DstRect, BoundsRect);
     194    GR32.IntersectRect(DstRect, DstRect, ClipRect);
    195195    if (DstRect.Right < DstRect.Left) or (DstRect.Bottom < DstRect.Top) then Exit;
    196196
     
    480480  with Dst do
    481481  begin
    482     IntersectRect(SrcRect, SrcRect, Src.BoundsRect);
     482    GR32.IntersectRect(SrcRect, SrcRect, Src.BoundsRect);
    483483    if (SrcRect.Right < SrcRect.Left) or (SrcRect.Bottom < SrcRect.Top) then Exit;
    484484
     
    486486    DstY := Clamp(DstY, 0, Height);
    487487
    488     DstRect.TopLeft := Point(DstX, DstY);
     488    DstRect.TopLeft := GR32.Point(DstX, DstY);
    489489    DstRect.Right := DstX + SrcRect.Right - SrcRect.Left;
    490490    DstRect.Bottom := DstY + SrcRect.Bottom - SrcRect.Top;
    491491
    492     IntersectRect(DstRect, DstRect, Dst.BoundsRect);
    493     IntersectRect(DstRect, DstRect, Dst.ClipRect);
    494     if (DstRect.Right < DstRect.Left) or (DstRect.Bottom < DstRect.Top) then Exit;
    495 
     492    GR32.IntersectRect(DstRect, DstRect, Dst.BoundsRect);
     493    GR32.IntersectRect(DstRect, DstRect, Dst.ClipRect);
     494    if (DstRect.Right < DstRect.Left) or (DstRect.Bottom < DstRect.Top) then
     495      Exit;
    496496
    497497    if not MeasuringMode then
     
    530530  with ABitmap do
    531531  begin
    532     IntersectRect(ARect, ARect, BoundsRect);
    533     IntersectRect(ARect, ARect, ClipRect);
     532    GR32.IntersectRect(ARect, ARect, BoundsRect);
     533    GR32.IntersectRect(ARect, ARect, ClipRect);
    534534    if (ARect.Right < ARect.Left) or (ARect.Bottom < ARect.Top) then Exit;
    535535
Note: See TracChangeset for help on using the changeset viewer.