Changeset 265 for branches/highdpi/Packages/CevoComponents/ScreenTools.pas
- Timestamp:
- Jun 25, 2020, 10:24:44 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/Packages/CevoComponents/ScreenTools.pas
r251 r265 589 589 PixelDst: TPixelPointer; 590 590 begin 591 Width := ScaleToNativeDist(xSrc, Width); 592 Height := ScaleToNativeDist(ySrc, Height); 591 593 xDst := ScaleToNative(xDst); 592 594 yDst := ScaleToNative(yDst); 593 595 xSrc := ScaleToNative(xSrc); 594 596 ySrc := ScaleToNative(ySrc); 595 Width := ScaleToNative(Width);596 Height := ScaleToNative(Height);597 597 //Assert(Src.PixelFormat = pf8bit); 598 598 Assert(dst.PixelFormat = pf24bit); … … 657 657 DstPixel: TPixelPointer; 658 658 begin 659 Width := ScaleToNativeDist(xSrc, Width); 660 Height := ScaleToNativeDist(ySrc, Height); 659 661 xDst := ScaleToNative(xDst); 660 662 yDst := ScaleToNative(yDst); 661 663 xSrc := ScaleToNative(xSrc); 662 664 ySrc := ScaleToNative(ySrc); 663 Width := ScaleToNative(Width);664 Height := ScaleToNative(Height);665 665 if xDst < 0 then begin 666 666 Width := Width + xDst; … … 724 724 DstPixel: TPixelPointer; 725 725 begin 726 Width := ScaleToNativeDist(xSrc, Width); 727 Height := ScaleToNativeDist(ySrc, Height); 726 728 xDst := ScaleToNative(xDst); 727 729 yDst := ScaleToNative(yDst); 728 730 xSrc := ScaleToNative(xSrc); 729 731 ySrc := ScaleToNative(ySrc); 730 Width := ScaleToNative(Width);731 Height := ScaleToNative(Height);732 732 Src.BeginUpdate; 733 733 Dst.BeginUpdate; … … 771 771 PixelPtr: TPixelPointer; 772 772 begin 773 Width := ScaleToNativeDist(X, Width); 774 Height := ScaleToNativeDist(Y, Height); 773 775 X := ScaleToNative(X); 774 776 Y := ScaleToNative(Y); 775 Width := ScaleToNative(Width);776 Height := ScaleToNative(Height);777 777 bmp.BeginUpdate; 778 778 assert(bmp.PixelFormat = pf24bit);
Note:
See TracChangeset
for help on using the changeset viewer.