Changeset 193 for branches/highdpi/LocalPlayer/Help.pas
- Timestamp:
- May 7, 2020, 7:05:57 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/LocalPlayer/Help.pas
r179 r193 367 367 ImpPtr: array [-1 .. 1] of TPixelPointer; 368 368 begin 369 { TODO 369 370 // assume eiffel tower has free common heaven 370 371 for dy := 0 to nHeaven - 1 do … … 376 377 xSrc := iix mod 7 * xSizeBig; 377 378 ySrc := (iix div 7 + 1) * ySizeBig; 378 for y := 0 to ySizeBig * 2- 1 do379 for y := 0 to ScaleToVcl(ySizeBig * 2) - 1 do 379 380 if ((y0 + y) >= 0) and ((y0 + y) < InnerHeight) then begin 380 PaintPtr.Init(OffScreen, 0, y0 + y);381 CoalPtr.Init(Templates, 0, yCoal + y);381 PaintPtr.Init(OffScreen, 0, ScaleToVcl(y0 + y)); 382 CoalPtr.Init(Templates, 0, ScaleToVcl(yCoal + y)); 382 383 for dy := -1 to 1 do 383 384 if ((Max(y + dy, 0) shr 1) >= 0) and ((Max(y + dy, 0) shr 1) < ySizeBig) then 384 ImpPtr[dy].Init(BigImp, 0, ySrc + (Max(y + dy, 0) shr 1));385 for x := 0 to xSizeBig * 2- 1 do begin385 ImpPtr[dy].Init(BigImp, 0, ScaleToVcl(ySrc + (Max(y + dy, 0) shr 1))); 386 for x := 0 to ScaleToVcl(xSizeBig * 2) - 1 do begin 386 387 sum := 0; 387 388 for dx := -1 to 1 do begin … … 412 413 Offscreen.EndUpdate; 413 414 BigImp.EndUpdate; 415 } 414 416 end; 415 417
Note:
See TracChangeset
for help on using the changeset viewer.