Changeset 548 for trunk/Packages/CevoComponents
- Timestamp:
- Apr 21, 2024, 10:57:18 AM (7 months ago)
- Location:
- trunk/Packages/CevoComponents
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/ButtonA.pas
r531 r548 12 12 private 13 13 FCaption: string; 14 procedure SetCaption(Text: string); 14 procedure SetCaption(Text: string); override; 15 15 procedure SetFont(const Font: TFont); 16 16 protected -
trunk/Packages/CevoComponents/CevoComponents.lpk
r468 r548 31 31 <Other> 32 32 <CompilerMessages> 33 <IgnoredMessages idx 5024="True"/>33 <IgnoredMessages idx6058="True" idx5024="True"/> 34 34 </CompilerMessages> 35 35 </Other> -
trunk/Packages/CevoComponents/ScreenTools.pas
r538 r548 542 542 OriginalColor := DataPixel.PixelARGB and $FFFFFF; 543 543 if (OriginalColor = TransparentColor1) or (OriginalColor = TransparentColor2) then begin 544 MaskPixel.PixelR := $FF; 545 MaskPixel.PixelG := $FF; 546 MaskPixel.PixelB := $FF; 547 DataPixel.PixelR := 0; 548 DataPixel.PixelG := 0; 549 DataPixel.PixelB := 0; 544 MaskPixel.PixelRGB := $ffffff; 545 DataPixel.PixelRGB := 0; 550 546 end else begin 551 MaskPixel.PixelR := 0; 552 MaskPixel.PixelG := 0; 553 MaskPixel.PixelB := 0; 547 MaskPixel.PixelRGB := 0; 554 548 end; 555 549 DataPixel.NextPixel; … … 1023 1017 if X < 0 then 1024 1018 if Y < 0 then 1025 R := round(sqrt(sqr(X) + sqr(Y)))1019 R := Round(Sqrt(Sqr(X) + Sqr(Y))) 1026 1020 else if Y >= Height then 1027 R := round(sqrt(sqr(X) + sqr(Y - (Height - 1))))1021 R := Round(Sqrt(Sqr(X) + Sqr(Y - (Height - 1)))) 1028 1022 else 1029 1023 R := -X 1030 1024 else if X >= Width then 1031 1025 if Y < 0 then 1032 R := round(sqrt(sqr(X - (Width - 1)) + sqr(Y)))1026 R := Round(sqrt(Sqr(X - (Width - 1)) + Sqr(Y))) 1033 1027 else if Y >= Height then 1034 R := round(sqrt(sqr(X - (Width - 1)) + sqr(Y - (Height - 1))))1028 R := Round(Sqrt(Sqr(X - (Width - 1)) + Sqr(Y - (Height - 1)))) 1035 1029 else 1036 1030 R := X - (Width - 1) … … 1631 1625 TexWidth, TexHeight: Integer; 1632 1626 begin 1633 // texturize background1627 // Texturize background 1634 1628 Dest.BeginUpdate; 1635 1629 TexWidth := Texture.Width; … … 1639 1633 for Y := 0 to ScaleToNative(Dest.Height) - 1 do begin 1640 1634 for X := 0 to ScaleToNative(Dest.Width) - 1 do begin 1641 if (DstPixel.PixelARGB and $FFFFFF)= TransparentColor then begin1635 if DstPixel.PixelRGB = TransparentColor then begin 1642 1636 SrcPixel.SetXY(X mod TexWidth, Y mod TexHeight); 1643 DstPixel.PixelB := SrcPixel.PixelB; 1644 DstPixel.PixelG := SrcPixel.PixelG; 1645 DstPixel.PixelR := SrcPixel.PixelR; 1637 DstPixel.PixelRGB := SrcPixel.PixelRGB; 1646 1638 end; 1647 1639 DstPixel.NextPixel;
Note:
See TracChangeset
for help on using the changeset viewer.