Changeset 475
- Timestamp:
- Dec 4, 2023, 9:42:30 PM (12 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Integrated.lpi
r473 r475 17 17 <ResourceType Value="res"/> 18 18 <UseXPManifest Value="True"/> 19 <XPManifest> 20 <DpiAware Value="True"/> 21 </XPManifest> 19 22 <Icon Value="0"/> 20 23 <Resources Count="2"> … … 70 73 <IgnoredMessages idx5024="True"/> 71 74 </CompilerMessages> 72 <OtherDefines Count="1"> 73 <Define0 Value="DPI"/> 74 </OtherDefines> 75 <CustomOptions Value="-dDPI"/> 75 76 </Other> 76 77 </CompilerOptions> … … 78 79 <SharedMatrixOptions Count="2"> 79 80 <Item1 ID="151739052537" Targets="CevoComponents,Common,DpiControls" Modes="Debug" Value="-g -gl -gh -O1 -dDPI"/> 80 <Item2 ID="186701832267" Targets="CevoComponents,Common,DpiControls" Modes="Release" Value="-CX -XX -O3 "/>81 <Item2 ID="186701832267" Targets="CevoComponents,Common,DpiControls" Modes="Release" Value="-CX -XX -O3 -dDPI"/> 81 82 </SharedMatrixOptions> 82 83 </BuildModes> -
trunk/LocalPlayer/Term.pas
r471 r475 7168 7168 WindowState := CurrentWindowState; 7169 7169 {$IFDEF WINDOWS} 7170 BorderStyle := bsNone;7170 BorderStyle := TBorderStyle.bsNone; 7171 7171 {$ENDIF} 7172 7172 BorderIcons := []; … … 7183 7183 end; 7184 7184 {$IFDEF WINDOWS} 7185 BorderStyle := bsSizeable;7185 BorderStyle := TBorderStyle.bsSizeable; 7186 7186 {$ENDIF} 7187 7187 BorderIcons := [TBorderIcon.biSystemMenu, TBorderIcon.biMinimize, -
trunk/Packages/DpiControls/Dpi.Common.pas
r473 r475 4 4 5 5 uses 6 {$IFDEF WINDOWS}Windows,{$ENDIF} 6 7 Classes, SysUtils, LCLType, Types, LCLIntf, Graphics, Dpi.Graphics; 7 8 … … 9 10 DpiControlsComponentPaletteName = 'DpiControls'; 10 11 11 function BitBlt(DestDC: HDC; X, Y, Width, Height: Integer; SrcDC: HDC; XSrc, YSrc: Integer; Rop: DWORD = SRCCOPY): Boolean; 12 function BitBltCanvas(Dest: TCanvas; X, Y, Width, Height: Integer; Src: TCanvas; XSrc, YSrc: Integer; Rop: DWORD = SRCCOPY): Boolean; 12 function BitBlt(DestDC: HDC; X, Y, Width, Height: Integer; SrcDC: HDC; XSrc, 13 YSrc: Integer; Rop: DWORD = SRCCOPY): Boolean; 14 function BitBltCanvas(Dest: TCanvas; X, Y, Width, Height: Integer; Src: TCanvas; 15 XSrc, YSrc: Integer; Rop: DWORD = SRCCOPY): Boolean; 13 16 function CreateRectRgn(X1, Y1, X2, Y2: Integer): HRGN; 17 function ScrollDC(hDC: HDC; dx: longint; dy: longint; const lprcScroll: RECT; 18 const lprcClip:RECT;hrgnUpdate:HRGN; lprcUpdate: LPRECT): WINBOOL; overload; 14 19 function ScrollDC(Canvas: TCanvas; dx: Longint; dy: Longint; const lprcScroll: TRect; 15 const lprcClip:TRect; hrgnUpdate: Handle; lprcUpdate: PRect): Boolean; 20 const lprcClip:TRect; hrgnUpdate: Handle; lprcUpdate: PRect): Boolean; overload; 16 21 function ScaleToNative(Value: Integer): Integer; 17 22 function ScaleToNativeDist(Base, Value: Integer): Integer; … … 44 49 Result := LCLIntf.CreateRectRgn(ScaleToNative(X1), ScaleToNative(Y1), ScaleToNative(X2), 45 50 ScaleToNative(Y2)); 51 end; 52 53 function ScrollDC(hDC: HDC; dx: longint; dy: longint; const lprcScroll: RECT; 54 const lprcClip: RECT; hrgnUpdate: HRGN; lprcUpdate: LPRECT): WINBOOL; 55 var 56 R: RECT; 57 begin 58 if Assigned(lprcUpdate) then begin 59 R := ScaleRectToNative(lprcUpdate^); 60 lprcUpdate := @R; 61 end; 62 Result := Windows.ScrollDC(hDC, ScaleToNative(dx), ScaleToNative(dY), 63 ScaleRectToNative(lprcScroll), ScaleRectToNative(lprcClip), hrgnUpdate, lprcUpdate); 46 64 end; 47 65
Note:
See TracChangeset
for help on using the changeset viewer.