Changeset 530 for trunk/LocalPlayer
- Timestamp:
- Feb 24, 2024, 8:04:26 PM (10 months ago)
- Location:
- trunk/LocalPlayer
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/CityScreen.pas
r471 r530 275 275 276 276 UnshareBitmap(Back); 277 BitBltCanvas(Back.Canvas, 0, 0, Width, Height, 278 MainTexture.Image.Canvas, 0, 0); 277 BitBltBitmap(Back, 0, 0, Width, Height, MainTexture.Image, 0, 0); 279 278 ImageOp_B(Back, Template, 0, 0, 0, 0, Width, Height); 280 279 end; … … 303 302 Color2 := Colors.Canvas.Pixels[clkAge0 + Age, cliHouse]; 304 303 SmallCityMap.Canvas.FillRect(0, 0, SmallCityMap.Width, SmallCityMap.Height); 305 BitBlt Canvas(SmallCityMap.Canvas, 0, 0, 83, hSmallMap,306 SmallCityMapTemplate .Canvas, 83 * SizeClass, 0);304 BitBltBitmap(SmallCityMap, 0, 0, 83, hSmallMap, 305 SmallCityMapTemplate, 83 * SizeClass, 0); 307 306 if IsPort then 308 307 begin 309 BitBlt Canvas(SmallCityMap.Canvas, 83, 0, 15, hSmallMap,310 SmallCityMapTemplate .Canvas, 332 + 15, 0);308 BitBltBitmap(SmallCityMap, 83, 0, 15, hSmallMap, 309 SmallCityMapTemplate, 332 + 15, 0); 311 310 ImageOp_CCC(SmallCityMap, 0, 0, 83, hSmallMap, Color0, Color1, Color2); 312 311 Color2 := Colors.Canvas.Pixels[clkCity, cliWater]; … … 315 314 else 316 315 begin 317 BitBlt Canvas(SmallCityMap.Canvas, 83, 0, 15, hSmallMap,318 SmallCityMapTemplate .Canvas, 332, 0);316 BitBltBitmap(SmallCityMap, 83, 0, 15, hSmallMap, 317 SmallCityMapTemplate, 332, 0); 319 318 ImageOp_CCC(SmallCityMap, 0, 0, wSmallMap, hSmallMap, Color0, 320 319 Color1, Color2); … … 369 368 begin 370 369 UnshareBitmap(ZoomCityMap); 371 BitBlt Canvas(ZoomCityMap.Canvas, 0, 0, wZoomMap, hZoomMap,372 Back .Canvas, xZoomMap, yZoomMap);370 BitBltBitmap(ZoomCityMap, 0, 0, wZoomMap, hZoomMap, 371 Back, xZoomMap, yZoomMap); 373 372 if SmallMapMode = smImprovements then begin 374 373 if ZoomArea < 3 then begin … … 527 526 RedTex.ColorTextShade := $0000FF; 528 527 529 BitBlt Canvas(Offscreen.Canvas, 0, 0, 640, 480, Back.Canvas, 0, 0);528 BitBltBitmap(Offscreen, 0, 0, 640, 480, Back, 0, 0); 530 529 531 530 Offscreen.Canvas.Font.Assign(UniFont[ftCaption]); … … 599 598 False, AllowChange and IsCityAlive and 600 599 (C.Status and csResourceWeightsMask = 0)); 601 BitBltCanvas(Offscreen.Canvas, xmArea + 102, 42, 90, 33, Back.Canvas, 602 xmArea + 102, 42); 600 BitBltBitmap(Offscreen, xmArea + 102, 42, 90, 33, Back, xmArea + 102, 42); 603 601 604 602 if IsCityAlive then … … 630 628 else 631 629 xGr := 141; 632 BitBlt Canvas(Offscreen.Canvas, xmArea - 192 + 5 + I * D, ymArea - 96 - 29,633 27, 30, HGrSystem.Mask .Canvas, xGr, 171, SRCAND); { shadow }630 BitBltBitmap(Offscreen, xmArea - 192 + 5 + I * D, ymArea - 96 - 29, 631 27, 30, HGrSystem.Mask, xGr, 171, SRCAND); { shadow } 634 632 Sprite(Offscreen, HGrSystem, xmArea - 192 + 4 + I * D, ymArea - 96 - 30, 27, 635 633 30, xGr, 171); … … 642 640 begin 643 641 xGr := 1 + 112; 644 BitBlt Canvas(Offscreen.Canvas, xmArea + 192 - 27 + 1 - I * D, 29 + 1, 27,645 30, HGrSystem.Mask .Canvas, xGr, 171, SRCAND); { shadow }642 BitBltBitmap(Offscreen, xmArea + 192 - 27 + 1 - I * D, 29 + 1, 27, 643 30, HGrSystem.Mask, xGr, 171, SRCAND); { shadow } 646 644 Sprite(Offscreen, HGrSystem, xmArea + 192 - 27 - I * D, 29, 27, 30, 647 645 xGr, 171); … … 788 786 789 787 // small map 790 BitBlt Canvas(Offscreen.Canvas, xSmallMap, ySmallMap, wSmallMap, hSmallMap,791 SmallCityMap .Canvas, 0, 0);788 BitBltBitmap(Offscreen, xSmallMap, ySmallMap, wSmallMap, hSmallMap, 789 SmallCityMap, 0, 0); 792 790 if SmallMapMode = smImprovements then 793 791 Frame(Offscreen.Canvas, xSmallMap + 48 * (ZoomArea div 3), … … 816 814 Sprite(Offscreen, HGrSystem, X + 6, Y - 5, 10, 10, 154, 126); 817 815 818 BitBltCanvas(Offscreen.Canvas, xZoomMap, yZoomMap, wZoomMap, hZoomMap, 819 ZoomCityMap.Canvas, 0, 0); 816 BitBltBitmap(Offscreen, xZoomMap, yZoomMap, wZoomMap, hZoomMap, ZoomCityMap, 0, 0); 820 817 821 818 for I := 0 to 5 do -
trunk/LocalPlayer/CityType.pas
r468 r530 113 113 xSwitch + 38 + I * 42, ySwitch + 22, MainTexture.ColorBevelLight, 114 114 MainTexture.ColorBevelShade); 115 BitBlt Canvas(Offscreen.Canvas, xSwitch + 2 + I * 42, ySwitch + 2,116 xSizeSmall, ySizeSmall, SmallImp .Canvas, (I + 3) * xSizeSmall, 0);115 BitBltBitmap(Offscreen, xSwitch + 2 + I * 42, ySwitch + 2, 116 xSizeSmall, ySizeSmall, SmallImp, (I + 3) * xSizeSmall, 0); 117 117 end; 118 118 RisedTextOut(Offscreen.Canvas, 8, yList + 32 * nListRow + 2, … … 147 147 yList + 16 + ySizeSmall div 2 + I div nListCol * 32, 148 148 MainTexture.ColorBevelLight, MainTexture.ColorBevelShade); 149 BitBlt Canvas(Offscreen.Canvas, xList + 21 - xSizeSmall div 2 +149 BitBltBitmap(Offscreen, xList + 21 - xSizeSmall div 2 + 150 150 I mod nListCol * 42, yList + 16 - ySizeSmall div 2 + I div nListCol * 32, 151 xSizeSmall, ySizeSmall, SmallImp .Canvas,151 xSizeSmall, ySizeSmall, SmallImp, 152 152 MyData.ImpOrder[ctype, I] mod 7 * xSizeSmall, 153 153 (MyData.ImpOrder[ctype, I] + SystemIconLines * 7) div 7 * … … 170 170 nPool div nPoolCol * 32, MainTexture.ColorBevelLight, 171 171 MainTexture.ColorBevelShade); 172 BitBlt Canvas(Offscreen.Canvas, xPool + 21 - xSizeSmall div 2 +172 BitBltBitmap(Offscreen, xPool + 21 - xSizeSmall div 2 + 173 173 nPool mod nPoolCol * 42, yPool + 16 - ySizeSmall div 2 + 174 nPool div nPoolCol * 32, xSizeSmall, ySizeSmall, SmallImp .Canvas,174 nPool div nPoolCol * 32, xSizeSmall, ySizeSmall, SmallImp, 175 175 iix mod 7 * xSizeSmall, (iix + SystemIconLines * 7) div 7 * 176 176 ySizeSmall); -
trunk/LocalPlayer/Draft.pas
r471 r530 238 238 // assemble background from 2 texture tiles 239 239 begin 240 BitBlt Canvas(Back.Canvas, 0, 0, ClientWidth, 64,241 MainTexture.Image .Canvas, (MainTexture.Width - ClientWidth) div 2,240 BitBltBitmap(Back, 0, 0, ClientWidth, 64, 241 MainTexture.Image, (MainTexture.Width - ClientWidth) div 2, 242 242 MainTexture.Height - 64); 243 BitBlt Canvas(Back.Canvas, 0, 64, ClientWidth, ClientHeight - 64,244 MainTexture.Image .Canvas, (MainTexture.Width - ClientWidth) div 2,243 BitBltBitmap(Back, 0, 64, ClientWidth, ClientHeight - 64, 244 MainTexture.Image, (MainTexture.Width - ClientWidth) div 2, 245 245 0); 246 246 end 247 247 else 248 BitBlt Canvas(Back.Canvas, 0, 0, ClientWidth, ClientHeight,249 MainTexture.Image .Canvas, (MainTexture.Width - ClientWidth) div 2,248 BitBltBitmap(Back, 0, 0, ClientWidth, ClientHeight, 249 MainTexture.Image, (MainTexture.Width - ClientWidth) div 2, 250 250 (MainTexture.Height - ClientHeight) div 2); 251 251 ImageOp_B(Back, Template, 0, 0, 0, 0, Template.Width, 64); … … 253 253 Template.Height - 64 - Cut); 254 254 255 BitBltCanvas(Offscreen.Canvas, 0, 0, ClientWidth, ClientHeight, 256 Back.Canvas, 0, 0); 255 BitBltBitmap(Offscreen, 0, 0, ClientWidth, ClientHeight, Back, 0, 0); 257 256 258 257 Offscreen.Canvas.Font.Assign(UniFont[ftCaption]); -
trunk/LocalPlayer/Help.pas
r529 r530 551 551 if 4 + I * 24 + yl > InnerHeight then 552 552 yl := InnerHeight - (4 + I * 24); 553 BitBltCanvas(OffScreen.Canvas, 8, 4 + I * 24, ExtPic.Width, yl, ExtPic.Canvas, 554 0, 0); 553 BitBltBitmap(OffScreen, 8, 4 + I * 24, ExtPic.Width, yl, ExtPic, 0, 0); 555 554 end; 556 555 end; … … 592 591 8 + xSizeSmall + x0[I], 2 + 20 + I * 24, $000000, $000000); 593 592 if HelpLineInfo.Picpix = imPalace then 594 BitBlt Canvas(OffScreen.Canvas, 8 + x0[I], 2 + I * 24,595 xSizeSmall, ySizeSmall, SmallImp .Canvas,593 BitBltBitmap(OffScreen, 8 + x0[I], 2 + I * 24, 594 xSizeSmall, ySizeSmall, SmallImp, 596 595 0 * xSizeSmall, 1 * ySizeSmall) 597 596 else 598 BitBlt Canvas(OffScreen.Canvas, 8 + x0[I], 2 + I * 24,599 xSizeSmall, ySizeSmall, SmallImp .Canvas,597 BitBltBitmap(OffScreen, 8 + x0[I], 2 + I * 24, 598 xSizeSmall, ySizeSmall, SmallImp, 600 599 HelpLineInfo.Picpix mod 7 * xSizeSmall, 601 600 (HelpLineInfo.Picpix + SystemIconLines * 7) div 7 * … … 659 658 $000000, $000000); 660 659 if AdvIcon[HelpLineInfo.Picpix] < 84 then 661 BitBlt Canvas(OffScreen.Canvas, 8 + x0[I], 2 + I * 24,662 xSizeSmall, ySizeSmall, SmallImp .Canvas,660 BitBltBitmap(OffScreen, 8 + x0[I], 2 + I * 24, 661 xSizeSmall, ySizeSmall, SmallImp, 663 662 (AdvIcon[HelpLineInfo.Picpix] + SystemIconLines * 7) mod 7 * 664 663 xSizeSmall, (AdvIcon[HelpLineInfo.Picpix] + SystemIconLines * … … 669 668 295 + (AdvIcon[HelpLineInfo.Picpix] - 84) div 8 * 21); 670 669 J := AdvValue[HelpLineInfo.Picpix] div 1000; 671 BitBlt Canvas(OffScreen.Canvas, x0[I] + 4, 4 + I * 24, 14, 14,672 HGrSystem.Mask .Canvas, 127 + J * 15, 85, SRCAND);670 BitBltBitmap(OffScreen, x0[I] + 4, 4 + I * 24, 14, 14, 671 HGrSystem.Mask, 127 + J * 15, 85, SRCAND); 673 672 Sprite(OffScreen, HGrSystem, x0[I] + 3, 3 + I * 24, 14, 14, 674 673 127 + J * 15, 85); … … 846 845 ScreenTools.Frame(OffScreen.Canvas, 8 - 1 + x0[I], 2 - 1 + I * 24, 847 846 8 + xSizeSmall + x0[I], 2 + 20 + I * 24, $000000, $000000); 848 BitBlt Canvas(OffScreen.Canvas, 8 + x0[I], 2 + I * 24, xSizeSmall,849 ySizeSmall, SmallImp .Canvas, (HelpLineInfo.Picpix - 1) *847 BitBltBitmap(OffScreen, 8 + x0[I], 2 + I * 24, xSizeSmall, 848 ySizeSmall, SmallImp, (HelpLineInfo.Picpix - 1) * 850 849 xSizeSmall, ySizeSmall); 851 850 x0[I] := x0[I] + (8 + 8 + 36); -
trunk/LocalPlayer/IsoEngine.pas
r522 r530 83 83 xxt: Integer; // half of tile size x/y 84 84 yyt: Integer; // half of tile size x/y 85 T SpriteSize: TTerrainSpriteSize;85 TerrainSpriteSize: TTerrainSpriteSize; 86 86 HGrTerrain: TGraphicSet; 87 87 HGrCities: TGraphicSet; … … 98 98 procedure PaintCity(X, Y: Integer; const CityInfo: TCityInfo; 99 99 Accessory: Boolean = True); 100 procedure BitBltBitmap (Src: TBitmap; X, Y, Width, Height, xSrc, ySrc,100 procedure BitBltBitmapOutput(Src: TBitmap; X, Y, Width, Height, xSrc, ySrc, 101 101 Rop: Integer); 102 102 procedure AttackBegin(const ShowMove: TShowMove); … … 210 210 IsoMap.LandPatch := LandPatch; 211 211 IsoMap.OceanPatch := OceanPatch; 212 IsoMap.T SpriteSize := TSpriteSize;212 IsoMap.TerrainSpriteSize := TSpriteSize; 213 213 IsoMap.CitiesPictures := CitiesPictures; 214 214 end; … … 261 261 for xSrc := 0 to TerrainIconCols - 1 do begin 262 262 I := ySrc * 9 + xSrc; 263 T SpriteSize[I].Left := 0;263 TerrainSpriteSize[I].Left := 0; 264 264 repeat 265 265 Border := True; 266 266 for Y := 0 to yyt * 3 - 1 do begin 267 MaskLine[Y].SetX(ScaleToNative(1 + xSrc * (xxt * 2 + 1) + T SpriteSize[I].Left));267 MaskLine[Y].SetX(ScaleToNative(1 + xSrc * (xxt * 2 + 1) + TerrainSpriteSize[I].Left)); 268 268 if MaskLine[Y].PixelB = 0 then Border := False; 269 269 end; 270 if Border then Inc(T SpriteSize[I].Left);271 until not Border or (T SpriteSize[I].Left = xxt * 2 - 1);272 T SpriteSize[I].Top := 0;270 if Border then Inc(TerrainSpriteSize[I].Left); 271 until not Border or (TerrainSpriteSize[I].Left = xxt * 2 - 1); 272 TerrainSpriteSize[I].Top := 0; 273 273 repeat 274 274 Border := True; 275 275 for X := 0 to xxt * 2 - 1 do begin 276 MaskLine[T SpriteSize[I].Top].SetX(ScaleToNative(1 + xSrc * (xxt * 2 + 1) + X));277 if MaskLine[T SpriteSize[I].Top].PixelB = 0 then Border := False;276 MaskLine[TerrainSpriteSize[I].Top].SetX(ScaleToNative(1 + xSrc * (xxt * 2 + 1) + X)); 277 if MaskLine[TerrainSpriteSize[I].Top].PixelB = 0 then Border := False; 278 278 end; 279 if Border then Inc(T SpriteSize[I].Top);280 until not Border or (T SpriteSize[I].Top = yyt * 3 - 1);281 T SpriteSize[I].Right := xxt * 2;279 if Border then Inc(TerrainSpriteSize[I].Top); 280 until not Border or (TerrainSpriteSize[I].Top = yyt * 3 - 1); 281 TerrainSpriteSize[I].Right := xxt * 2; 282 282 repeat 283 283 Border := True; 284 284 for Y := 0 to yyt * 3 - 1 do begin 285 MaskLine[Y].SetX(ScaleToNative(xSrc * (xxt * 2 + 1) + T SpriteSize[I].Right));285 MaskLine[Y].SetX(ScaleToNative(xSrc * (xxt * 2 + 1) + TerrainSpriteSize[I].Right)); 286 286 if MaskLine[Y].PixelB = 0 then Border := False; 287 287 end; 288 if Border then Dec(T SpriteSize[I].Right);289 until not Border or (T SpriteSize[I].Right = TSpriteSize[I].Left);290 T SpriteSize[I].Bottom := yyt * 3;288 if Border then Dec(TerrainSpriteSize[I].Right); 289 until not Border or (TerrainSpriteSize[I].Right = TerrainSpriteSize[I].Left); 290 TerrainSpriteSize[I].Bottom := yyt * 3; 291 291 repeat 292 292 Border := True; 293 293 for X := 0 to xxt * 2 - 1 do begin 294 MaskLine[T SpriteSize[I].Bottom - 1].SetX(ScaleToNative(1 + xSrc * (xxt * 2 + 1) + X));295 if MaskLine[T SpriteSize[I].Bottom - 1].PixelB = 0 then Border := False;294 MaskLine[TerrainSpriteSize[I].Bottom - 1].SetX(ScaleToNative(1 + xSrc * (xxt * 2 + 1) + X)); 295 if MaskLine[TerrainSpriteSize[I].Bottom - 1].PixelB = 0 then Border := False; 296 296 end; 297 if Border then Dec(T SpriteSize[I].Bottom);298 until not Border or (T SpriteSize[I].Bottom = TSpriteSize[I].Top);297 if Border then Dec(TerrainSpriteSize[I].Bottom); 298 until not Border or (TerrainSpriteSize[I].Bottom = TerrainSpriteSize[I].Top); 299 299 end; 300 300 end; … … 359 359 DitherMask.SetSize(xxt * 2, yyt * 2); 360 360 DitherMask.Canvas.FillRect(0, 0, DitherMask.Width, DitherMask.Height); 361 BitBlt Canvas(DitherMask.Canvas, 0, 0, xxt * 2, yyt * 2,362 HGrTerrain.Mask .Canvas, 1 + 7 * (xxt * 2 + 1),361 BitBltBitmap(DitherMask, 0, 0, xxt * 2, yyt * 2, 362 HGrTerrain.Mask, 1 + 7 * (xxt * 2 + 1), 363 363 1 + yyt + 15 * (yyt * 3 + 1), SRCAND); 364 364 … … 376 376 end; 377 377 for Y := -1 to 6 do 378 BitBlt Canvas(LandPatch.Canvas, (X + 2) * (xxt * 2), (Y + 2) * yyt,379 xxt * 2, yyt, HGrTerrain.Data .Canvas, xSrc, ySrc);378 BitBltBitmap(LandPatch, (X + 2) * (xxt * 2), (Y + 2) * yyt, 379 xxt * 2, yyt, HGrTerrain.Data, xSrc, ySrc); 380 380 for Y := -2 to 6 do 381 BitBlt Canvas(LandPatch.Canvas, (X + 2) * (xxt * 2), (Y + 2) * yyt, xxt,382 yyt, HGrTerrain.Data .Canvas, xSrc + xxt, ySrc + yyt,381 BitBltBitmap(LandPatch, (X + 2) * (xxt * 2), (Y + 2) * yyt, xxt, 382 yyt, HGrTerrain.Data, xSrc + xxt, ySrc + yyt, 383 383 SRCPAINT); 384 384 for Y := -2 to 6 do 385 BitBlt Canvas(LandPatch.Canvas, (X + 2) * (xxt * 2) + xxt, (Y + 2) * yyt,386 xxt, yyt, HGrTerrain.Data .Canvas, xSrc, ySrc + yyt,385 BitBltBitmap(LandPatch, (X + 2) * (xxt * 2) + xxt, (Y + 2) * yyt, 386 xxt, yyt, HGrTerrain.Data, xSrc, ySrc + yyt, 387 387 SRCPAINT); 388 388 for Y := -2 to 6 do 389 BitBlt Canvas(LandPatch.Canvas, (X + 2) * (xxt * 2), (Y + 2) * yyt, xxt,390 yyt, DitherMask .Canvas, xxt, yyt, SRCAND);389 BitBltBitmap(LandPatch, (X + 2) * (xxt * 2), (Y + 2) * yyt, xxt, 390 yyt, DitherMask, xxt, yyt, SRCAND); 391 391 for Y := -2 to 6 do 392 BitBlt Canvas(LandPatch.Canvas, (X + 2) * (xxt * 2) + xxt, (Y + 2) * yyt,393 xxt, yyt, DitherMask .Canvas, 0, yyt, SRCAND);392 BitBltBitmap(LandPatch, (X + 2) * (xxt * 2) + xxt, (Y + 2) * yyt, 393 xxt, yyt, DitherMask, 0, yyt, SRCAND); 394 394 end; 395 395 … … 407 407 end; 408 408 for X := -2 to 6 do 409 BitBlt Canvas(LandMore.Canvas, (X + 2) * (xxt * 2), (Y + 2) * yyt,410 xxt * 2, yyt, HGrTerrain.Data .Canvas, xSrc, ySrc);411 BitBlt Canvas(LandMore.Canvas, xxt * 2, (Y + 2) * yyt, xxt, yyt,412 HGrTerrain.Data .Canvas, xSrc + xxt, ySrc + yyt, SRCPAINT);409 BitBltBitmap(LandMore, (X + 2) * (xxt * 2), (Y + 2) * yyt, 410 xxt * 2, yyt, HGrTerrain.Data, xSrc, ySrc); 411 BitBltBitmap(LandMore, xxt * 2, (Y + 2) * yyt, xxt, yyt, 412 HGrTerrain.Data, xSrc + xxt, ySrc + yyt, SRCPAINT); 413 413 for X := 0 to 7 do 414 BitBlt Canvas(LandMore.Canvas, (X + 2) * (xxt * 2) - xxt, (Y + 2) * yyt,415 xxt * 2, yyt, HGrTerrain.Data .Canvas, xSrc, ySrc + yyt,414 BitBltBitmap(LandMore, (X + 2) * (xxt * 2) - xxt, (Y + 2) * yyt, 415 xxt * 2, yyt, HGrTerrain.Data, xSrc, ySrc + yyt, 416 416 SRCPAINT); 417 417 for X := -2 to 6 do 418 BitBlt Canvas(LandMore.Canvas, (X + 2) * (xxt * 2), (Y + 2) * yyt,419 xxt * 2, yyt, DitherMask .Canvas, 0, 0, SRCAND);418 BitBltBitmap(LandMore, (X + 2) * (xxt * 2), (Y + 2) * yyt, 419 xxt * 2, yyt, DitherMask, 0, 0, SRCAND); 420 420 end; 421 421 … … 427 427 ySrc := 1 + yyt; 428 428 if (X >= 1) = (Y >= 2) then 429 BitBlt Canvas(OceanPatch.Canvas, X * (xxt * 2), Y * yyt, xxt * 2, yyt,430 HGrTerrain.Data .Canvas, xSrc, ySrc);429 BitBltBitmap(OceanPatch, X * (xxt * 2), Y * yyt, xxt * 2, yyt, 430 HGrTerrain.Data, xSrc, ySrc); 431 431 if (X >= 1) and ((Y < 2) or (X >= 2)) then 432 432 begin 433 BitBlt Canvas(OceanPatch.Canvas, X * (xxt * 2), Y * yyt, xxt, yyt,434 HGrTerrain.Data .Canvas, xSrc + xxt, ySrc + yyt,433 BitBltBitmap(OceanPatch, X * (xxt * 2), Y * yyt, xxt, yyt, 434 HGrTerrain.Data, xSrc + xxt, ySrc + yyt, 435 435 SRCPAINT); 436 BitBlt Canvas(OceanPatch.Canvas, X * (xxt * 2) + xxt, Y * yyt, xxt, yyt,437 HGrTerrain.Data .Canvas, xSrc, ySrc + yyt, SRCPAINT);436 BitBltBitmap(OceanPatch, X * (xxt * 2) + xxt, Y * yyt, xxt, yyt, 437 HGrTerrain.Data, xSrc, ySrc + yyt, SRCPAINT); 438 438 end; 439 BitBlt Canvas(OceanPatch.Canvas, X * (xxt * 2), Y * yyt, xxt, yyt,440 DitherMask .Canvas, xxt, yyt, SRCAND);441 BitBlt Canvas(OceanPatch.Canvas, X * (xxt * 2) + xxt, Y * yyt, xxt, yyt,442 DitherMask .Canvas, 0, yyt, SRCAND);439 BitBltBitmap(OceanPatch, X * (xxt * 2), Y * yyt, xxt, yyt, 440 DitherMask, xxt, yyt, SRCAND); 441 BitBltBitmap(OceanPatch, X * (xxt * 2) + xxt, Y * yyt, xxt, yyt, 442 DitherMask, 0, yyt, SRCAND); 443 443 end; 444 444 end; … … 451 451 ySrc := 1 + yyt; 452 452 if (X < 1) or (Y >= 2) then 453 BitBlt Canvas(OceanMore.Canvas, X * (xxt * 2), Y * yyt, xxt * 2, yyt,454 HGrTerrain.Data .Canvas, xSrc, ySrc);453 BitBltBitmap(OceanMore, X * (xxt * 2), Y * yyt, xxt * 2, yyt, 454 HGrTerrain.Data, xSrc, ySrc); 455 455 if (X = 1) and (Y < 2) or (X >= 2) and (Y >= 1) then 456 456 begin 457 BitBlt Canvas(OceanMore.Canvas, X * (xxt * 2), Y * yyt, xxt, yyt,458 HGrTerrain.Data .Canvas, xSrc + xxt, ySrc + yyt,457 BitBltBitmap(OceanMore, X * (xxt * 2), Y * yyt, xxt, yyt, 458 HGrTerrain.Data, xSrc + xxt, ySrc + yyt, 459 459 SRCPAINT); 460 BitBlt Canvas(OceanMore.Canvas, X * (xxt * 2) + xxt, Y * yyt, xxt, yyt,461 HGrTerrain.Data .Canvas, xSrc, ySrc + yyt, SRCPAINT);460 BitBltBitmap(OceanMore, X * (xxt * 2) + xxt, Y * yyt, xxt, yyt, 461 HGrTerrain.Data, xSrc, ySrc + yyt, SRCPAINT); 462 462 end; 463 BitBlt Canvas(OceanMore.Canvas, X * (xxt * 2), Y * yyt, xxt * 2, yyt,464 DitherMask .Canvas, 0, 0, SRCAND);463 BitBltBitmap(OceanMore, X * (xxt * 2), Y * yyt, xxt * 2, yyt, 464 DitherMask, 0, 0, SRCAND); 465 465 end; 466 466 end; 467 467 468 BitBlt Canvas(DitherMask.Canvas, 0, 0, xxt * 2, yyt * 2,469 DitherMask .Canvas, 0, 0, DSTINVERT); { invert dither mask }470 BitBlt Canvas(DitherMask.Canvas, 0, 0, xxt * 2, yyt * 2,471 HGrTerrain.Mask .Canvas, 1, 1 + yyt, SRCPAINT);468 BitBltBitmap(DitherMask, 0, 0, xxt * 2, yyt * 2, 469 DitherMask, 0, 0, DSTINVERT); { invert dither mask } 470 BitBltBitmap(DitherMask, 0, 0, xxt * 2, yyt * 2, 471 HGrTerrain.Mask, 1, 1 + yyt, SRCPAINT); 472 472 473 473 for X := -1 to 6 do 474 474 for Y := -2 to 6 do 475 BitBlt Canvas(LandPatch.Canvas, (X + 2) * (xxt * 2), (Y + 2) * yyt,476 xxt * 2, yyt, DitherMask .Canvas, 0, 0, SRCAND);475 BitBltBitmap(LandPatch, (X + 2) * (xxt * 2), (Y + 2) * yyt, 476 xxt * 2, yyt, DitherMask, 0, 0, SRCAND); 477 477 478 478 for Y := -1 to 6 do 479 479 for X := -2 to 7 do 480 BitBlt Canvas(LandMore.Canvas, (X + 2) * (xxt * 2) - xxt, (Y + 2) * yyt,481 xxt * 2, yyt, DitherMask .Canvas, 0, yyt, SRCAND);482 483 BitBlt Canvas(LandPatch.Canvas, 0, 0, (xxt * 2) * 9, yyt * 9,484 LandMore .Canvas, 0, 0, SRCPAINT);480 BitBltBitmap(LandMore, (X + 2) * (xxt * 2) - xxt, (Y + 2) * yyt, 481 xxt * 2, yyt, DitherMask, 0, yyt, SRCAND); 482 483 BitBltBitmap(LandPatch, 0, 0, (xxt * 2) * 9, yyt * 9, 484 LandMore, 0, 0, SRCPAINT); 485 485 486 486 for X := 0 to 3 do 487 487 for Y := 0 to 3 do 488 BitBlt Canvas(OceanPatch.Canvas, X * (xxt * 2), Y * yyt, xxt * 2, yyt,489 DitherMask .Canvas, 0, 0, SRCAND);488 BitBltBitmap(OceanPatch, X * (xxt * 2), Y * yyt, xxt * 2, yyt, 489 DitherMask, 0, 0, SRCAND); 490 490 491 491 for Y := 0 to 3 do 492 492 for X := 0 to 4 do 493 BitBltCanvas(OceanMore.Canvas, X * (xxt * 2) - xxt, Y * yyt, xxt * 2, 494 yyt, DitherMask.Canvas, 0, yyt, SRCAND); 495 496 BitBltCanvas(OceanPatch.Canvas, 0, 0, (xxt * 2) * 4, yyt * 4, 497 OceanMore.Canvas, 0, 0, SRCPAINT); 493 BitBltBitmap(OceanMore, X * (xxt * 2) - xxt, Y * yyt, xxt * 2, 494 yyt, DitherMask, 0, yyt, SRCAND); 495 496 BitBltBitmap(OceanPatch, 0, 0, (xxt * 2) * 4, yyt * 4, OceanMore, 0, 0, SRCPAINT); 498 497 499 498 with DitherMask.Canvas do begin … … 501 500 FillRect(Rect(0, 0, xxt * 2, yyt)); 502 501 end; 503 BitBltCanvas(DitherMask.Canvas, 0, 0, xxt * 2, yyt, 504 HGrTerrain.Mask.Canvas, 1, 1 + yyt); 502 BitBltBitmap(DitherMask, 0, 0, xxt * 2, yyt, HGrTerrain.Mask, 1, 1 + yyt); 505 503 506 504 for X := 0 to 6 do 507 BitBltCanvas(LandPatch.Canvas, (X + 2) * (xxt * 2), yyt, xxt * 2, yyt, 508 DitherMask.Canvas, 0, 0, SRCAND); 509 BitBltCanvas(DitherMask.Canvas, 0, 0, xxt * 2, yyt, DitherMask.Canvas, 510 0, 0, DSTINVERT); 505 BitBltBitmap(LandPatch, (X + 2) * (xxt * 2), yyt, xxt * 2, yyt, 506 DitherMask, 0, 0, SRCAND); 507 BitBltBitmap(DitherMask, 0, 0, xxt * 2, yyt, DitherMask, 0, 0, DSTINVERT); 511 508 512 509 for Y := 0 to 6 do 513 BitBlt Canvas(LandPatch.Canvas, xxt * 2, (Y + 2) * yyt, xxt * 2, yyt,514 DitherMask .Canvas, 0, 0, SRCAND);510 BitBltBitmap(LandPatch, xxt * 2, (Y + 2) * yyt, xxt * 2, yyt, 511 DitherMask, 0, 0, SRCAND); 515 512 516 513 FreeAndNil(LandMore); … … 595 592 end; 596 593 597 procedure TIsoMap.BitBltBitmap (Src: TBitmap; X, Y, Width, Height, xSrc, ySrc,594 procedure TIsoMap.BitBltBitmapOutput(Src: TBitmap; X, Y, Width, Height, xSrc, ySrc, 598 595 Rop: Integer); 599 596 begin … … 617 614 Exit; 618 615 619 BitBlt Canvas(FOutput.Canvas, X, Y, Width, Height, Src.Canvas, xSrc, ySrc, Rop);616 BitBltBitmap(FOutput, X, Y, Width, Height, Src, xSrc, ySrc, Rop); 620 617 end; 621 618 622 619 procedure TIsoMap.Sprite(HGr: TGraphicSet; xDst, yDst, Width, Height, xGr, yGr: Integer); 623 620 begin 624 BitBltBitmap (HGr.Mask, xDst, yDst, Width, Height, xGr, yGr, SRCAND);625 BitBltBitmap (HGr.Data, xDst, yDst, Width, Height, xGr, yGr, SRCPAINT);621 BitBltBitmapOutput(HGr.Mask, xDst, yDst, Width, Height, xGr, yGr, SRCAND); 622 BitBltBitmapOutput(HGr.Data, xDst, yDst, Width, Height, xGr, yGr, SRCPAINT); 626 623 end; 627 624 … … 634 631 ySrc: Integer; 635 632 begin 636 Width := T SpriteSize[grix].Right - TSpriteSize[grix].Left;637 Height := T SpriteSize[grix].Bottom - TSpriteSize[grix].Top;638 xSrc := 1 + grix mod 9 * (xxt * 2 + 1) + T SpriteSize[grix].Left;639 ySrc := 1 + grix div 9 * (yyt * 3 + 1) + T SpriteSize[grix].Top;640 xDst := xDst + T SpriteSize[grix].Left;641 yDst := yDst - yyt + T SpriteSize[grix].Top;633 Width := TerrainSpriteSize[grix].Right - TerrainSpriteSize[grix].Left; 634 Height := TerrainSpriteSize[grix].Bottom - TerrainSpriteSize[grix].Top; 635 xSrc := 1 + grix mod 9 * (xxt * 2 + 1) + TerrainSpriteSize[grix].Left; 636 ySrc := 1 + grix div 9 * (yyt * 3 + 1) + TerrainSpriteSize[grix].Top; 637 xDst := xDst + TerrainSpriteSize[grix].Left; 638 yDst := yDst - yyt + TerrainSpriteSize[grix].Top; 642 639 if xDst < FLeft then begin 643 640 Width := Width - (FLeft - xDst); … … 707 704 xGr := 121 + J mod 7 * 9; 708 705 yGr := 1 + J div 7 * 9; 709 BitBltBitmap (HGrSystem.Mask, X + xsh + 3, Y + ysh + 9, 8, 8, xGr,706 BitBltBitmapOutput(HGrSystem.Mask, X + xsh + 3, Y + ysh + 9, 8, 8, xGr, 710 707 yGr, SRCAND); 711 708 Sprite(HGrSystem, X + xsh + 2, Y + ysh + 8, 8, 8, xGr, yGr); … … 921 918 Exit; 922 919 923 BitBltBitmap (HGrTerrain.Data, X + xxt div 2, Y, xxt, yyt,920 BitBltBitmapOutput(HGrTerrain.Data, X + xxt div 2, Y, xxt, yyt, 924 921 1 + (Conn shr 6 + Conn and 1 shl 2) * (xxt * 2 + 1), 925 922 1 + yyt + (16 + Tile and fTerrain) * (yyt * 3 + 1), SRCPAINT); 926 BitBltBitmap (HGrTerrain.Data, X + xxt, Y + yyt div 2, xxt, yyt,923 BitBltBitmapOutput(HGrTerrain.Data, X + xxt, Y + yyt div 2, xxt, yyt, 927 924 1 + (Conn and 7) * (xxt * 2 + 1) + xxt, 928 925 1 + yyt * 2 + (16 + Tile and fTerrain) * (yyt * 3 + 1), SRCPAINT); 929 BitBltBitmap (HGrTerrain.Data, X + xxt div 2, Y + yyt, xxt, yyt,926 BitBltBitmapOutput(HGrTerrain.Data, X + xxt div 2, Y + yyt, xxt, yyt, 930 927 1 + (Conn shr 2 and 7) * (xxt * 2 + 1) + xxt, 931 928 1 + yyt + (16 + Tile and fTerrain) * (yyt * 3 + 1), SRCPAINT); 932 BitBltBitmap (HGrTerrain.Data, X, Y + yyt div 2, xxt, yyt,929 BitBltBitmapOutput(HGrTerrain.Data, X, Y + yyt div 2, xxt, yyt, 933 930 1 + (Conn shr 4 and 7) * (xxt * 2 + 1), 934 931 1 + yyt * 2 + (16 + Tile and fTerrain) * (yyt * 3 + 1), SRCPAINT); 935 932 Conn := Connection4(Loc, fTerrain, fUNKNOWN); { dither to black } 936 933 if Conn and 1 <> 0 then 937 BitBltBitmap (HGrTerrain.Mask, X + xxt, Y, xxt, yyt, 1 + 7 * (xxt * 2 + 1) +934 BitBltBitmapOutput(HGrTerrain.Mask, X + xxt, Y, xxt, yyt, 1 + 7 * (xxt * 2 + 1) + 938 935 xxt, 1 + yyt + 15 * (yyt * 3 + 1), SRCAND); 939 936 if Conn and 2 <> 0 then 940 BitBltBitmap (HGrTerrain.Mask, X + xxt, Y + yyt, xxt, yyt,937 BitBltBitmapOutput(HGrTerrain.Mask, X + xxt, Y + yyt, xxt, yyt, 941 938 1 + 7 * (xxt * 2 + 1) + xxt, 1 + yyt * 2 + 15 * (yyt * 3 + 1), SRCAND); 942 939 if Conn and 4 <> 0 then 943 BitBltBitmap (HGrTerrain.Mask, X, Y + yyt, xxt, yyt, 1 + 7 * (xxt * 2 + 1),940 BitBltBitmapOutput(HGrTerrain.Mask, X, Y + yyt, xxt, yyt, 1 + 7 * (xxt * 2 + 1), 944 941 1 + yyt * 2 + 15 * (yyt * 3 + 1), SRCAND); 945 942 if Conn and 8 <> 0 then 946 BitBltBitmap (HGrTerrain.Mask, X, Y, xxt, yyt, 1 + 7 * (xxt * 2 + 1),943 BitBltBitmapOutput(HGrTerrain.Mask, X, Y, xxt, yyt, 1 + 7 * (xxt * 2 + 1), 947 944 1 + yyt + 15 * (yyt * 3 + 1), SRCAND); 948 945 end; … … 1108 1105 if BordersOK^ and (1 shl p1) = 0 then begin 1109 1106 UnshareBitmap(Borders); 1110 BitBlt Canvas(Borders.Canvas, 0, p1 * (yyt * 2), xxt * 2,1111 yyt * 2, HGrTerrain.Data .Canvas,1107 BitBltBitmap(Borders, 0, p1 * (yyt * 2), xxt * 2, 1108 yyt * 2, HGrTerrain.Data, 1112 1109 1 + 8 * (xxt * 2 + 1), 1 + yyt + 16 * (yyt * 3 + 1)); 1113 1110 BitmapReplaceColor(Borders, 0, p1 * (yyt * 2), xxt * 2, yyt * 2, $636363, Tribe[p1].Color); … … 1126 1123 if p2 <> p1 then 1127 1124 begin 1128 BitBltBitmap (HGrTerrain.Mask, X + dx * xxt, Y + dy * yyt, xxt,1125 BitBltBitmapOutput(HGrTerrain.Mask, X + dx * xxt, Y + dy * yyt, xxt, 1129 1126 yyt, 1 + 8 * (xxt * 2 + 1) + dx * xxt, 1130 1127 1 + yyt + 16 * (yyt * 3 + 1) + dy * yyt, SRCAND); 1131 BitBltBitmap (Borders, X + dx * xxt, Y + dy * yyt, xxt, yyt, dx * xxt,1128 BitBltBitmapOutput(Borders, X + dx * xxt, Y + dy * yyt, xxt, yyt, dx * xxt, 1132 1129 p1 * (yyt * 2) + dy * yyt, SRCPAINT); 1133 1130 end; … … 1576 1573 bix := 0; 1577 1574 end; 1578 BitBltBitmap (OceanPatch, X + dx * xxt, Y + dy * yyt, xxt, yyt,1575 BitBltBitmapOutput(OceanPatch, X + dx * xxt, Y + dy * yyt, xxt, yyt, 1579 1576 Aix * (xxt * 2) + (dx + dy + 1) and 1 * xxt, bix * yyt, SRCCOPY) 1580 1577 end … … 1624 1621 bix := Aix; 1625 1622 if Aix = -1 then 1626 BitBltBitmap (HGrTerrain.Data, X + dx * xxt, Y + dy * yyt, xxt,1623 BitBltBitmapOutput(HGrTerrain.Data, X + dx * xxt, Y + dy * yyt, xxt, 1627 1624 yyt, 1 + 6 * (xxt * 2 + 1) + (dx + dy + 1) and 1 * xxt, 1 + yyt, 1628 1625 SRCCOPY) // arctic <-> ocean 1629 1626 else if bix = -1 then 1630 BitBltBitmap (HGrTerrain.Data, X + dx * xxt, Y + dy * yyt, xxt,1627 BitBltBitmapOutput(HGrTerrain.Data, X + dx * xxt, Y + dy * yyt, xxt, 1631 1628 yyt, 1 + 6 * (xxt * 2 + 1) + xxt - (dx + dy + 1) and 1 * xxt, 1632 1629 1 + yyt * 2, SRCCOPY) // arctic <-> ocean 1633 1630 else 1634 BitBltBitmap (LandPatch, X + dx * xxt, Y + dy * yyt, xxt, yyt,1631 BitBltBitmapOutput(LandPatch, X + dx * xxt, Y + dy * yyt, xxt, yyt, 1635 1632 Aix * (xxt * 2) + (dx + dy + 1) and 1 * xxt, bix * yyt, SRCCOPY) 1636 1633 end; -
trunk/LocalPlayer/MessgEx.pas
r514 r530 375 375 ySizeBig + 2 * GlowRange, Canvas, 376 376 Width div 2 - (28 + GlowRange), 24 - GlowRange); 377 BitBlt Canvas(Buffer.Canvas, GlowRange, GlowRange, xSizeBig, ySizeBig,378 BigImp .Canvas, IconIndex mod 7 * xSizeBig,377 BitBltBitmap(Buffer, GlowRange, GlowRange, xSizeBig, ySizeBig, 378 BigImp, IconIndex mod 7 * xSizeBig, 379 379 (IconIndex + SystemIconLines * 7) div 7 * ySizeBig); 380 380 if p1 < 0 then -
trunk/LocalPlayer/NatStat.pas
r496 r530 109 109 if MainTexture.Age <> AgePrepared then begin 110 110 AgePrepared := MainTexture.Age; 111 BitBlt Canvas(Back.Canvas, 0, 0, Width, Height,112 MainTexture.Image .Canvas, (MainTexture.Width - Width) div 2,111 BitBltBitmap(Back, 0, 0, Width, Height, 112 MainTexture.Image, (MainTexture.Width - Width) div 2, 113 113 (MainTexture.Height - Height) div 2); 114 114 ImageOp_B(Back, Template, 0, 0, 0, 0, Width, Height); … … 263 263 Extinct := 1 shl pView and MyRO.Alive = 0; 264 264 265 BitBltCanvas(Offscreen.Canvas, 0, 0, ClientWidth, ClientHeight, 266 Back.Canvas, 0, 0); 265 BitBltBitmap(Offscreen, 0, 0, ClientWidth, ClientHeight, Back, 0, 0); 267 266 268 267 Offscreen.Canvas.Font.Assign(UniFont[ftCaption]); -
trunk/LocalPlayer/Rates.pas
r496 r530 93 93 GlowFrame(Offscreen, ClientWidth div 2 - xSizeBig div 2, 52, xSizeBig, 94 94 ySizeBig, Tribe[Me].Color); 95 BitBlt Canvas(Offscreen.Canvas, ClientWidth div 2 - xSizeBig div 2, 52,96 xSizeBig, ySizeBig, BigImp .Canvas, (woLiberty mod 7) * xSizeBig,95 BitBltBitmap(Offscreen, ClientWidth div 2 - xSizeBig div 2, 52, 96 xSizeBig, ySizeBig, BigImp, (woLiberty mod 7) * xSizeBig, 97 97 (woLiberty div 7 + SystemIconLines) * ySizeBig); 98 98 end … … 120 120 begin 121 121 for I := 0 to current div 8 - 1 do 122 BitBlt Canvas(Offscreen.Canvas, X + Max - 8 - I * 8, Y, 8, 7,123 HGrSystem.Data .Canvas, 104, 9 + 8 * 2);124 BitBlt Canvas(Offscreen.Canvas, X + Max - current, Y, current - 8 * (current div 8), 7,125 HGrSystem.Data .Canvas, 104, 9 + 8 * 2);122 BitBltBitmap(Offscreen, X + Max - 8 - I * 8, Y, 8, 7, 123 HGrSystem.Data, 104, 9 + 8 * 2); 124 BitBltBitmap(Offscreen, X + Max - current, Y, current - 8 * (current div 8), 7, 125 HGrSystem.Data, 104, 9 + 8 * 2); 126 126 Brush.Color := $000000; 127 127 FillRect(Rect(X, Y, X + Max - current, Y + 7)); -
trunk/LocalPlayer/Select.pas
r522 r530 206 206 if pix and cpType = 0 then 207 207 if (pix and cpIndex = imPalace) and (MyRO.Government <> gAnarchy) then 208 BitBlt Canvas(Offscreen.Canvas, X + 16, Y + (16 - 1), xSizeSmall,209 ySizeSmall, SmallImp .Canvas, (MyRO.Government - 1) *208 BitBltBitmap(Offscreen, X + 16, Y + (16 - 1), xSizeSmall, 209 ySizeSmall, SmallImp, (MyRO.Government - 1) * 210 210 xSizeSmall, ySizeSmall) 211 211 else 212 BitBlt Canvas(Offscreen.Canvas, X + 16, Y + (16 - 1), xSizeSmall,213 ySizeSmall, SmallImp .Canvas, pix and cpIndex mod 7 *212 BitBltBitmap(Offscreen, X + 16, Y + (16 - 1), xSizeSmall, 213 ySizeSmall, SmallImp, pix and cpIndex mod 7 * 214 214 xSizeSmall, (pix and cpIndex + SystemIconLines * 7) div 7 * 215 215 ySizeSmall) 216 216 else 217 BitBlt Canvas(Offscreen.Canvas, X + 16, Y + (16 - 1), xSizeSmall,218 ySizeSmall, SmallImp .Canvas, (3 + pix and cpIndex) *217 BitBltBitmap(Offscreen, X + 16, Y + (16 - 1), xSizeSmall, 218 ySizeSmall, SmallImp, (3 + pix and cpIndex) * 219 219 xSizeSmall, 0); 220 220 end; … … 578 578 MainTexture.ColorBevelLight, MainTexture.ColorBevelShade); 579 579 if AdvIcon[lix] < 84 then 580 BitBlt Canvas(Offscreen.Canvas, (8 + 16), y0, xSizeSmall,581 ySizeSmall, SmallImp .Canvas,580 BitBltBitmap(Offscreen, (8 + 16), y0, xSizeSmall, 581 ySizeSmall, SmallImp, 582 582 (AdvIcon[lix] + SystemIconLines * 7) mod 7 * xSizeSmall, 583 583 (AdvIcon[lix] + SystemIconLines * 7) div 7 * … … 588 588 295 + (AdvIcon[lix] - 84) div 8 * 21); 589 589 J := AdvValue[lix] div 1000; 590 BitBlt Canvas(Offscreen.Canvas, (8 + 16 - 4), y0 + 2, 14, 14,591 HGrSystem.Mask .Canvas, 127 + J * 15,590 BitBltBitmap(Offscreen, (8 + 16 - 4), y0 + 2, 14, 14, 591 HGrSystem.Mask, 127 + J * 15, 592 592 85, SRCAND); 593 593 Sprite(Offscreen, HGrSystem, (8 + 16 - 5), y0 + 1, 14, 14, … … 683 683 8 + 16 + xSizeSmall, y0 - 15 + (16 - 1 + ySizeSmall), 684 684 MainTexture.ColorBevelLight, MainTexture.ColorBevelShade); 685 BitBltCanvas(Offscreen.Canvas, 8 + 16, y0 - 15 + (16 - 1), 686 xSizeSmall, ySizeSmall, SmallImp.Canvas, 687 (lix - 1) * xSizeSmall, ySizeSmall); 685 BitBltBitmap(Offscreen, 8 + 16, y0 - 15 + (16 - 1), 686 xSizeSmall, ySizeSmall, SmallImp, (lix - 1) * xSizeSmall, ySizeSmall); 688 687 end; 689 688 end; -
trunk/LocalPlayer/Term.pas
r525 r530 4656 4656 Exit; 4657 4657 4658 NoMap.BitBltBitmap (Panel, -xMap - MapOffset, -yMap + MapHeight - Overlap, xMidPanel,4658 NoMap.BitBltBitmapOutput(Panel, -xMap - MapOffset, -yMap + MapHeight - Overlap, xMidPanel, 4659 4659 Overlap, 0, 0, SRCCOPY); 4660 NoMap.BitBltBitmap (Panel, -xMap - MapOffset + xRightPanel,4660 NoMap.BitBltBitmapOutput(Panel, -xMap - MapOffset + xRightPanel, 4661 4661 -yMap + MapHeight - Overlap, Panel.Width - xRightPanel, Overlap, 4662 4662 xRightPanel, 0, SRCCOPY); … … 4858 4858 begin 4859 4859 with MainMap do begin 4860 BitBlt Canvas(Panel.Canvas, xMini + 2, yMini + 2, G.lx * 2, G.ly,4861 MiniMap.Bitmap .Canvas, 0, 0);4860 BitBltBitmap(Panel, xMini + 2, yMini + 2, G.lx * 2, G.ly, 4861 MiniMap.Bitmap, 0, 0); 4862 4862 if MarkCityLoc >= 0 then 4863 4863 Sprite(Panel, HGrSystem, xMini - 2 + (4 * G.lx + 2 * (MarkCityLoc mod G.lx) … … 4951 4951 ClientWidth - xPalace + xSizeBig + 1, yPalace + ySizeBig + 1, 4952 4952 $FFFFFF, $B0B0B0); 4953 BitBlt Canvas(Panel.Canvas, ClientWidth - xPalace, yPalace, xSizeBig,4954 ySizeBig, HGrSystem2.Data .Canvas, 70, 123);4953 BitBltBitmap(Panel, ClientWidth - xPalace, yPalace, xSizeBig, 4954 ySizeBig, HGrSystem2.Data, 70, 123); 4955 4955 end 4956 4956 else if MyRO.NatBuilt[imPalace] > 0 then … … 5833 5833 PaintLoc(MouseLoc, 2); 5834 5834 MiniMapPaint; 5835 BitBlt Canvas(Panel.Canvas, xMini + 2, yMini + 2, G.lx * 2, G.ly,5836 MiniMap.Bitmap .Canvas, 0, 0);5835 BitBltBitmap(Panel, xMini + 2, yMini + 2, G.lx * 2, G.ly, 5836 MiniMap.Bitmap, 0, 0); 5837 5837 with MainMap do begin 5838 5838 if ywmax <= 0 then … … 6653 6653 for Step := 0 to Abs(Step1 - Step0) do 6654 6654 begin 6655 BitBltCanvas(Buffer.Canvas, 0, 0, xRange, yRange, 6656 Offscreen.Canvas, xMin, yMin); 6655 BitBltBitmap(Buffer, 0, 0, xRange, yRange, Offscreen, xMin, yMin); 6657 6656 if Step1 <> Step0 then 6658 6657 begin … … 6696 6695 if Restore then 6697 6696 begin 6698 BitBlt Canvas(Buffer.Canvas, 0, 0, xRange, yRange, Offscreen.Canvas, xMin, yMin);6697 BitBltBitmap(Buffer, 0, 0, xRange, yRange, Offscreen, xMin, yMin); 6699 6698 PaintBufferToScreen(xMin, yMin, xRange, yRange); 6700 6699 end; … … 7832 7831 yw := ywmax; 7833 7832 end; 7834 BitBlt Canvas(Buffer.Canvas, 0, 0, G.lx * 2, G.ly, MiniMap.Bitmap.Canvas, 0, 0);7833 BitBltBitmap(Buffer, 0, 0, G.lx * 2, G.ly, MiniMap.Bitmap, 0, 0); 7835 7834 if ywmax <= 0 then 7836 7835 Frame(Buffer.Canvas, X - xMini - 2 - MapWidth div (xxt * 2), 0, … … 7841 7840 X - xMini - 2 + MapWidth div (xxt * 2) - 1, yw + MapHeight div yyt - 7842 7841 2, MainTexture.ColorMark, MainTexture.ColorMark); 7843 BitBlt Canvas(Panel.Canvas, xMini + 2, yMini + 2, G.lx * 2, G.ly,7844 Buffer .Canvas, 0, 0);7842 BitBltBitmap(Panel, xMini + 2, yMini + 2, G.lx * 2, G.ly, 7843 Buffer, 0, 0); 7845 7844 MainOffscreenPaint; 7846 7845 RectInvalidate(xMini + 2, TopBarHeight + MapHeight - Overlap + yMini + 2, -
trunk/LocalPlayer/UnitStat.pas
r510 r530 101 101 if MainTexture.Age <> AgePrepared then begin 102 102 AgePrepared := MainTexture.Age; 103 BitBlt Canvas(Back.Canvas, 0, 0, wCommon, hOwnModel,104 MainTexture.Image .Canvas, (MainTexture.Width - wCommon) div 2,103 BitBltBitmap(Back, 0, 0, wCommon, hOwnModel, 104 MainTexture.Image, (MainTexture.Width - wCommon) div 2, 105 105 (MainTexture.Height - hOwnModel) div 2); 106 BitBlt Canvas(Back.Canvas, wCommon, 0, wCommon, hEnemyModel,107 MainTexture.Image .Canvas, (MainTexture.Width - wCommon) div 2,106 BitBltBitmap(Back, wCommon, 0, wCommon, hEnemyModel, 107 MainTexture.Image, (MainTexture.Width - wCommon) div 2, 108 108 (MainTexture.Height - hEnemyModel) div 2); 109 BitBlt Canvas(Back.Canvas, 2 * wCommon, 0, wCommon, hEnemyUnit,110 MainTexture.Image .Canvas, (MainTexture.Width - wCommon) div 2,109 BitBltBitmap(Back, 2 * wCommon, 0, wCommon, hEnemyUnit, 110 MainTexture.Image, (MainTexture.Width - wCommon) div 2, 111 111 (MainTexture.Height - hEnemyUnit) div 2); 112 BitBlt Canvas(Back.Canvas, 3 * wCommon, 0, wCommon, hEnemyCityDefense,113 MainTexture.Image .Canvas, (MainTexture.Width - wCommon) div 2,112 BitBltBitmap(Back, 3 * wCommon, 0, wCommon, hEnemyCityDefense, 113 MainTexture.Image, (MainTexture.Width - wCommon) div 2, 114 114 (MainTexture.Height - hEnemyCityDefense) div 2); 115 BitBlt Canvas(Back.Canvas, 4 * wCommon, 0, wCommon, hEnemyCity,116 MainTexture.Image .Canvas, (MainTexture.Width - wCommon) div 2,115 BitBltBitmap(Back, 4 * wCommon, 0, wCommon, hEnemyCity, 116 MainTexture.Image, (MainTexture.Width - wCommon) div 2, 117 117 (MainTexture.Height - hEnemyCity) div 2); 118 118 ImageOp_B(Back, Template, 0, 0, 0, 0, 5 * wCommon, hMax); … … 378 378 case Kind of 379 379 dkOwnModel: begin 380 BitBltCanvas(Offscreen.Canvas, 0, 0, wCommon, hOwnModel, 381 Back.Canvas, 0, 0); 380 BitBltBitmap(Offscreen, 0, 0, wCommon, hOwnModel, Back, 0, 0); 382 381 yView := 13; 383 382 yTotal := 92; 384 383 end; 385 384 dkEnemyModel: begin 386 BitBltCanvas(Offscreen.Canvas, 0, 0, wCommon, hEnemyModel, 387 Back.Canvas, wCommon, 0); 385 BitBltBitmap(Offscreen, 0, 0, wCommon, hEnemyModel, Back, wCommon, 0); 388 386 yView := 13; 389 387 yTotal := 92; 390 388 end; 391 389 dkEnemyUnit, dkOwnUnit: begin 392 BitBltCanvas(Offscreen.Canvas, 0, 0, wCommon, hEnemyUnit, 393 Back.Canvas, 2 * wCommon, 0); 390 BitBltBitmap(Offscreen, 0, 0, wCommon, hEnemyUnit, Back, 2 * wCommon, 0); 394 391 yView := 13; 395 392 yTotal := 123; 396 393 end; 397 394 dkEnemyCityDefense: begin 398 BitBltCanvas(Offscreen.Canvas, 0, 0, wCommon, hEnemyCityDefense, 399 Back.Canvas, 3 * wCommon, 0); 395 BitBltBitmap(Offscreen, 0, 0, wCommon, hEnemyCityDefense, Back, 3 * wCommon, 0); 400 396 yView := 171; 401 397 yTotal := 231; 402 398 end; 403 399 dkEnemyCity: begin 404 BitBltCanvas(Offscreen.Canvas, 0, 0, wCommon, hEnemyCity, 405 Back.Canvas, 4 * wCommon, 0); 400 BitBltBitmap(Offscreen, 0, 0, wCommon, hEnemyCity, Back, 4 * wCommon, 0); 406 401 yView := 171; 407 402 yTotal := 231; … … 430 425 yImp + ySizeSmall, MainTexture.ColorBevelLight, 431 426 MainTexture.ColorBevelShade); 432 BitBlt Canvas(Offscreen.Canvas, X, yImp, xSizeSmall, ySizeSmall,433 SmallImp .Canvas, J mod 7 * xSizeSmall,427 BitBltBitmap(Offscreen, X, yImp, xSizeSmall, ySizeSmall, 428 SmallImp, J mod 7 * xSizeSmall, 434 429 (J + SystemIconLines * 7) div 7 * ySizeSmall); 435 430 Inc(X, xSizeSmall + 4); … … 549 544 * (yyt * 3 + 1)); 550 545 end; 551 BitBltCanvas(Offscreen.Canvas, xView, yView + 16, 64, 32, 552 Buffer.Canvas, 1, 0); 546 BitBltBitmap(Offscreen, xView, yView + 16, 64, 32, Buffer, 1, 0); 553 547 554 548 // show unit, experience and health -
trunk/LocalPlayer/Wonders.pas
r506 r530 235 235 WonderDestroyed: begin 236 236 HaveWonder := True; 237 BitBlt Canvas(Offscreen.Canvas,237 BitBltBitmap(Offscreen, 238 238 Center.X - xSizeBig div 2 + RingPosition[I].X, 239 239 Center.Y - ySizeBig div 2 + RingPosition[I].Y, xSizeBig, 240 ySizeBig, BigImp .Canvas, 0, (SystemIconLines + 3) *240 ySizeBig, BigImp, 0, (SystemIconLines + 3) * 241 241 ySizeBig); 242 242 end; 243 243 else begin 244 244 HaveWonder := True; 245 BitBlt Canvas(Offscreen.Canvas,245 BitBltBitmap(Offscreen, 246 246 Center.X - xSizeBig div 2 + RingPosition[I].X, 247 247 Center.Y - ySizeBig div 2 + RingPosition[I].Y, xSizeBig, ySizeBig, 248 BigImp .Canvas, (I mod 7) * xSizeBig,248 BigImp, (I mod 7) * xSizeBig, 249 249 (I div 7 + SystemIconLines) * ySizeBig); 250 250 end;
Note:
See TracChangeset
for help on using the changeset viewer.