Changeset 349 for branches/highdpi/LocalPlayer/Draft.pas
- Timestamp:
- Apr 6, 2021, 8:11:02 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/LocalPlayer/Draft.pas
r303 r349 233 233 begin 234 234 inherited; 235 // TODO: Explicitly clear background to black but in fact BitBlt SRCCOPY should do it 236 Back.Canvas.FillRect(0, 0, Back.Width, Back.Height); 235 UnshareBitmap(Back); 237 236 238 237 ClientHeight := Template.Height - Cut; … … 275 274 x := xDomain + d * DomainPitch; 276 275 if d = Domain then 277 ImageOp_BCC(offscreen, Templates , x, yDomain, 142, 246 + 37 * d, 36,276 ImageOp_BCC(offscreen, Templates.Data, x, yDomain, 142, 246 + 37 * d, 36, 278 277 36, 0, $00C0FF) 279 278 else 280 ImageOp_BCC(offscreen, Templates , x, yDomain, 142, 246 + 37 * d, 36,279 ImageOp_BCC(offscreen, Templates.Data, x, yDomain, 142, 246 + 37 * d, 36, 281 280 36, 0, $606060); 282 281 end; … … 300 299 for i := 0 to MaxWeight - 1 do 301 300 if i < Weight then 302 ImageOp_BCC(offscreen, Templates , xWeight + 20 * i, yWeight, 123, 400,303 18, 20, 0, $949494)301 ImageOp_BCC(offscreen, Templates.Data, Point(xWeight + 20 * i, yWeight), 302 WeightOn.BoundsRect, 0, $949494) 304 303 else 305 ImageOp_BCC(offscreen, Templates , xWeight + 20 * i, yWeight, 105, 400,306 18, 20, 0, $949494);304 ImageOp_BCC(offscreen, Templates.Data, Point(xWeight + 20 * i, yWeight), 305 WeightOff.BoundsRect, 0, $949494); 307 306 end; 308 307 … … 336 335 // paint cost 337 336 LightGradient(offscreen.Canvas, xFeature + 34, 338 yFeature + LinePitch * i, 50, GrExt[HGrSystem].Data.Canvas.Pixels337 yFeature + LinePitch * i, 50, HGrSystem.Data.Canvas.Pixels 339 338 [187, 137]); 340 339 if (Domain = dGround) and (code[i] = mcDefense) then
Note:
See TracChangeset
for help on using the changeset viewer.