Changeset 608 for trunk/Packages
- Timestamp:
- Aug 26, 2024, 6:30:43 PM (3 months ago)
- Location:
- trunk/Packages
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/ScreenTools.pas
r589 r608 106 106 function ScaleToNativeDist(Base, Value: Integer): Integer; 107 107 function ScaleFromNative(Value: Integer): Integer; 108 function BitBltBitmapPrecise(Dest: TBitmap; X, Y, Width, Height: Integer; Src: TBitmap; 109 XSrc, YSrc: Integer; Rop: DWORD = SRCCOPY; Precise: Boolean = False): Boolean; 108 110 {$ENDIF} 109 111 procedure UnshareBitmap(Bitmap: TBitmap); … … 1683 1685 Result := Value; 1684 1686 end; 1687 1688 function BitBltBitmapPrecise(Dest: TBitmap; X, Y, Width, Height: Integer; Src: TBitmap; 1689 XSrc, YSrc: Integer; Rop: DWORD = SRCCOPY; Precise: Boolean = False): Boolean; 1690 begin 1691 Result := BitBltBitmap(Dest, X, Y, Width, Height, Src, XSrc, YSrc, Rop); 1692 end; 1685 1693 {$ENDIF} 1686 1694 -
trunk/Packages/DpiControls/Dpi.Common.pas
r568 r608 14 14 function BitBltCanvas(Dest: TCanvas; X, Y, Width, Height: Integer; Src: TCanvas; 15 15 XSrc, YSrc: Integer; Rop: DWORD = SRCCOPY): Boolean; 16 function BitBltBitmap (Dest: TBitmap; X, Y, Width, Height: Integer; Src: TBitmap;16 function BitBltBitmapPrecise(Dest: TBitmap; X, Y, Width, Height: Integer; Src: TBitmap; 17 17 XSrc, YSrc: Integer; Rop: DWORD = SRCCOPY; Precise: Boolean = False): Boolean; 18 18 function CreateRectRgn(X1, Y1, X2, Y2: Integer): HRGN; … … 55 55 end; 56 56 57 function BitBltBitmap (Dest: TBitmap; X, Y, Width, Height: Integer;57 function BitBltBitmapPrecise(Dest: TBitmap; X, Y, Width, Height: Integer; 58 58 Src: TBitmap; XSrc, YSrc: Integer; Rop: DWORD = SRCCOPY; 59 59 Precise: Boolean = False): Boolean; … … 64 64 DstPixelX, DstPixelY: Integer; 65 65 DstPixelWidth, DstPixelHeight: Integer; 66 NewY: Integer;67 66 begin 68 67 if not Precise or (Frac(ScreenInfo.Dpi / 96) = 0) then begin
Note:
See TracChangeset
for help on using the changeset viewer.