Changeset 210 for branches/highdpi/LocalPlayer/NatStat.pas
- Timestamp:
- May 9, 2020, 4:02:07 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/LocalPlayer/NatStat.pas
r179 r210 5 5 6 6 uses 7 Protocol, ClientTools, Term, ScreenTools, BaseWin, UDpiControls, 7 UDpiControls, Protocol, ClientTools, Term, ScreenTools, BaseWin, 8 8 9 LCLIntf, LCLType, SysUtils, Classes, Graphics, Controls, Forms, 9 10 ButtonB, ButtonC, Menus, EOTButton; … … 92 93 Template := TDpiBitmap.Create; 93 94 Template.PixelFormat := pf24bit; 94 LoadGraphicFile(Template, HomeDir + 'Graphics'+ DirectorySeparator + 'Nation.png', gfNoGamma);95 LoadGraphicFile(Template, GetGraphicsDir + DirectorySeparator + 'Nation.png', gfNoGamma); 95 96 end; 96 97 … … 108 109 begin 109 110 AgePrepared := MainTextureAge; 110 Dpi bitblt(Back.Canvas.Handle, 0, 0, ClientWidth, ClientHeight,111 MainTexture.Image.Canvas .Handle, (wMainTexture - ClientWidth) div 2,112 (hMainTexture - ClientHeight) div 2 , SRCCOPY);111 DpiBitCanvas(Back.Canvas, 0, 0, ClientWidth, ClientHeight, 112 MainTexture.Image.Canvas, (wMainTexture - ClientWidth) div 2, 113 (hMainTexture - ClientHeight) div 2); 113 114 ImageOp_B(Back, Template, 0, 0, 0, 0, ClientWidth, ClientHeight); 114 115 end … … 263 264 Extinct := 1 shl pView and MyRO.Alive = 0; 264 265 265 Dpi bitblt(offscreen.Canvas.Handle, 0, 0, ClientWidth, ClientHeight,266 Back.Canvas .Handle, 0, 0, SRCCOPY);266 DpiBitCanvas(offscreen.Canvas, 0, 0, ClientWidth, ClientHeight, 267 Back.Canvas, 0, 0); 267 268 268 269 offscreen.Canvas.Font.Assign(UniFont[ftCaption]);
Note:
See TracChangeset
for help on using the changeset viewer.