Changeset 210 for branches/highdpi/LocalPlayer/Draft.pas
- Timestamp:
- May 9, 2020, 4:02:07 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/LocalPlayer/Draft.pas
r193 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, ExtCtrls, 9 10 ButtonA, … … 91 92 Template := TDpiBitmap.Create; 92 93 Template.PixelFormat := pf24bit; 93 LoadGraphicFile(Template, HomeDir + 'Graphics'+ DirectorySeparator + 'MiliRes.png', gfNoGamma);94 LoadGraphicFile(Template, GetGraphicsDir + DirectorySeparator + 'MiliRes.png', gfNoGamma); 94 95 end; 95 96 … … 238 239 // assemble background from 2 texture tiles 239 240 begin 240 Dpi bitblt(Back.Canvas.Handle, 0, 0, ClientWidth, 64,241 MainTexture.Image.Canvas .Handle, (wMainTexture - ClientWidth) div 2,242 hMainTexture - 64 , SRCCOPY);243 Dpi bitblt(Back.Canvas.Handle, 0, 64, ClientWidth, ClientHeight - 64,244 MainTexture.Image.Canvas .Handle, (wMainTexture - ClientWidth) div 2,245 0 , SRCCOPY);241 DpiBitCanvas(Back.Canvas, 0, 0, ClientWidth, 64, 242 MainTexture.Image.Canvas, (wMainTexture - ClientWidth) div 2, 243 hMainTexture - 64); 244 DpiBitCanvas(Back.Canvas, 0, 64, ClientWidth, ClientHeight - 64, 245 MainTexture.Image.Canvas, (wMainTexture - ClientWidth) div 2, 246 0); 246 247 end 247 248 else 248 Dpi bitblt(Back.Canvas.Handle, 0, 0, ClientWidth, ClientHeight,249 MainTexture.Image.Canvas .Handle, (wMainTexture - ClientWidth) div 2,250 (hMainTexture - ClientHeight) div 2 , SRCCOPY);249 DpiBitCanvas(Back.Canvas, 0, 0, ClientWidth, ClientHeight, 250 MainTexture.Image.Canvas, (wMainTexture - ClientWidth) div 2, 251 (hMainTexture - ClientHeight) div 2); 251 252 ImageOp_B(Back, Template, 0, 0, 0, 0, Template.Width, 64); 252 253 ImageOp_B(Back, Template, 0, 64, 0, 64 + Cut, Template.Width, 253 254 Template.Height - 64 - Cut); 254 255 255 Dpi bitblt(offscreen.Canvas.Handle, 0, 0, ClientWidth, ClientHeight,256 Back.Canvas .Handle, 0, 0, SRCCOPY);256 DpiBitCanvas(offscreen.Canvas, 0, 0, ClientWidth, ClientHeight, 257 Back.Canvas, 0, 0); 257 258 258 259 offscreen.Canvas.Font.Assign(UniFont[ftCaption]);
Note:
See TracChangeset
for help on using the changeset viewer.