Changeset 608 for trunk/Packages


Ignore:
Timestamp:
Aug 26, 2024, 6:30:43 PM (3 months ago)
Author:
chronos
Message:
  • Fixed: Build without DPI define.
Location:
trunk/Packages
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/CevoComponents/ScreenTools.pas

    r589 r608  
    106106function ScaleToNativeDist(Base, Value: Integer): Integer;
    107107function ScaleFromNative(Value: Integer): Integer;
     108function BitBltBitmapPrecise(Dest: TBitmap; X, Y, Width, Height: Integer; Src: TBitmap;
     109  XSrc, YSrc: Integer; Rop: DWORD = SRCCOPY; Precise: Boolean = False): Boolean;
    108110{$ENDIF}
    109111procedure UnshareBitmap(Bitmap: TBitmap);
     
    16831685  Result := Value;
    16841686end;
     1687
     1688function BitBltBitmapPrecise(Dest: TBitmap; X, Y, Width, Height: Integer; Src: TBitmap;
     1689  XSrc, YSrc: Integer; Rop: DWORD = SRCCOPY; Precise: Boolean = False): Boolean;
     1690begin
     1691  Result := BitBltBitmap(Dest, X, Y, Width, Height, Src, XSrc, YSrc, Rop);
     1692end;
    16851693{$ENDIF}
    16861694
  • trunk/Packages/DpiControls/Dpi.Common.pas

    r568 r608  
    1414function BitBltCanvas(Dest: TCanvas; X, Y, Width, Height: Integer; Src: TCanvas;
    1515  XSrc, YSrc: Integer; Rop: DWORD = SRCCOPY): Boolean;
    16 function BitBltBitmap(Dest: TBitmap; X, Y, Width, Height: Integer; Src: TBitmap;
     16function BitBltBitmapPrecise(Dest: TBitmap; X, Y, Width, Height: Integer; Src: TBitmap;
    1717  XSrc, YSrc: Integer; Rop: DWORD = SRCCOPY; Precise: Boolean = False): Boolean;
    1818function CreateRectRgn(X1, Y1, X2, Y2: Integer): HRGN;
     
    5555end;
    5656
    57 function BitBltBitmap(Dest: TBitmap; X, Y, Width, Height: Integer;
     57function BitBltBitmapPrecise(Dest: TBitmap; X, Y, Width, Height: Integer;
    5858  Src: TBitmap; XSrc, YSrc: Integer; Rop: DWORD = SRCCOPY;
    5959  Precise: Boolean = False): Boolean;
     
    6464  DstPixelX, DstPixelY: Integer;
    6565  DstPixelWidth, DstPixelHeight: Integer;
    66   NewY: Integer;
    6766begin
    6867  if not Precise or (Frac(ScreenInfo.Dpi / 96) = 0) then begin
Note: See TracChangeset for help on using the changeset viewer.