Changeset 548 for trunk/Packages
- Timestamp:
- Apr 21, 2024, 10:57:18 AM (7 months ago)
- Location:
- trunk/Packages
- Files:
-
- 5 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; -
trunk/Packages/DpiControls/Dpi.Graphics.pas
r546 r548 290 290 public 291 291 NativeBitmap: Graphics.TBitmap; 292 procedure BeginUpdate;293 procedure EndUpdate;294 292 constructor Create; override; 295 293 destructor Destroy; override; … … 337 335 published 338 336 procedure LoadFromFile(FileName: string); 339 property Bitm pa: TBitmap read FBitmap write SetBitmap;337 property Bitmap: TBitmap read FBitmap write SetBitmap; 340 338 end; 341 339 … … 713 711 DstPixelWidth := ScaleToNative(XX + 1) - ScaleToNative(XX); 714 712 for DstPixelX := 0 to DstPixelWidth - 1 do begin 715 DstPtr.PixelB := SrcPtr.PixelB; 716 DstPtr.PixelG := SrcPtr.PixelG; 717 DstPtr.PixelR := SrcPtr.PixelR; 713 DstPtr.PixelRGB := SrcPtr.PixelRGB; 718 714 DstPtr.NextPixel; 719 715 end; … … 819 815 end; 820 816 821 procedure TBitmap.BeginUpdate;822 begin823 GetNativeBitmap.BeginUpdate;824 end;825 826 procedure TBitmap.EndUpdate;827 begin828 GetNativeBitmap.EndUpdate;829 end;830 831 817 constructor TBitmap.Create; 832 818 begin -
trunk/Packages/DpiControls/DpiControls.lpk
r482 r548 30 30 <Other> 31 31 <CompilerMessages> 32 <IgnoredMessages idx 3123="True"/>32 <IgnoredMessages idx6058="True" idx3123="True"/> 33 33 </CompilerMessages> 34 34 </Other>
Note:
See TracChangeset
for help on using the changeset viewer.