Changeset 505 for trunk/LocalPlayer/MessgEx.pas
- Timestamp:
- Dec 24, 2023, 11:24:57 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/MessgEx.pas
r484 r505 195 195 if GameMode = cMovie then 196 196 begin 197 if not ((GameMode = cMovie) and (MovieSpeed = 4)) then197 if not ((GameMode = cMovie) and (MovieSpeed = 4)) then 198 198 begin 199 199 MovieCancelled := False; … … 230 230 ix, iy, xDst, yDst, dx, dy, xIcon, yIcon: Integer; 231 231 BookRect: TRect; 232 x1, xR, yR, share: Single;232 x1, xR, yR, Share: Single; 233 233 Screwed: TScrewed; 234 234 SrcPtr: TPixelPointer; … … 257 257 for dy := 0 to 1 do begin 258 258 if dx = 0 then 259 share := 1 - xR259 Share := 1 - xR 260 260 else 261 share := xR;261 Share := xR; 262 262 if dy = 0 then 263 share := share * (1 - yR)263 Share := Share * (1 - yR) 264 264 else 265 share := share * yR;265 Share := Share * yR; 266 266 if (xDst + dx < wScrewed) and 267 267 (yDst + dy < hScrewed) then begin 268 268 Screwed[xDst + dx, yDst + dy, 0] := Screwed[xDst + dx, yDst + dy, 0] 269 + share * SrcPtr.Pixel^.B;269 + Share * SrcPtr.Pixel^.B; 270 270 Screwed[xDst + dx, yDst + dy, 1] := Screwed[xDst + dx, yDst + dy, 1] 271 + share * SrcPtr.Pixel^.G;271 + Share * SrcPtr.Pixel^.G; 272 272 Screwed[xDst + dx, yDst + dy, 2] := Screwed[xDst + dx, yDst + dy, 2] 273 + share * SrcPtr.Pixel^.R;273 + Share * SrcPtr.Pixel^.R; 274 274 Screwed[xDst + dx, yDst + dy, 3] := Screwed[xDst + dx, yDst + dy, 275 3] + share;275 3] + Share; 276 276 end; 277 277 end; … … 313 313 procedure TMessgExDlg.PaintEnemyArmy; 314 314 var 315 emix, ix, iy, X, Y, count, UnitsInLine: Integer;315 emix, ix, iy, X, Y, Count, UnitsInLine: Integer; 316 316 begin 317 317 ix := 0; … … 322 322 UnitsInLine := nLostArmy; 323 323 for emix := 0 to MyRO.nEnemyModel - 1 do 324 for count := 0 to LostArmy[emix] - 1 do324 for Count := 0 to LostArmy[emix] - 1 do 325 325 begin 326 326 X := Width div 2 + ix * 64 - UnitsInLine * 32; … … 328 328 with MyRO.EnemyModel[emix], Tribe[Owner].ModelPicture[mix] do 329 329 begin 330 BitBltCanvas(Canvas, X, Y, 64, 48, HGr.Mask.Canvas, 331 pix mod 10 * 65 + 1, pix div 10 * 49 + 1, SRCAND); 332 BitBltCanvas(Canvas, X, Y, 64, 48, HGr.Data.Canvas, 333 pix mod 10 * 65 + 1, pix div 10 * 49 + 1, SRCPAINT); 330 Sprite(Canvas, HGr, X, Y, 64, 48, pix mod 10 * 65 + 1, pix div 10 * 49 + 1); 334 331 end; 335 332 … … 401 398 FrameImage(Canvas, BigImp, Width div 2 - 28, 24, xSizeBig, 402 399 ySizeBig, 0, 0); 403 BitBltCanvas(Canvas, Width div 2 - 32, 20, 64, 44, 404 HGr.Mask.Canvas, pix mod 10 * 65 + 1, 405 pix div 10 * 49 + 1, SRCAND); 406 BitBltCanvas(Canvas, Width div 2 - 32, 20, 64, 44, 407 HGr.Data.Canvas, pix mod 10 * 65 + 1, 408 pix div 10 * 49 + 1, SRCPAINT); 400 Sprite(Canvas, HGr, Width div 2 - 32, 20, 64, 44, pix mod 10 * 65 + 1, 401 pix div 10 * 49 + 1); 409 402 end; 410 403 mikBook:
Note:
See TracChangeset
for help on using the changeset viewer.