Changeset 530 for trunk/Packages
- Timestamp:
- Feb 24, 2024, 8:04:26 PM (9 months ago)
- Location:
- trunk/Packages/CevoComponents
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/EOTButton.pas
r471 r530 21 21 destructor Destroy; override; 22 22 procedure SetButtonIndexFast(X: Integer); 23 procedure SetBack( ca: TCanvas; X, Y: Integer);23 procedure SetBack(Canvas: TCanvas; X, Y: Integer); 24 24 private 25 25 FTemplate: TBitmap; … … 77 77 if FGraphic <> nil then begin 78 78 UnshareBitmap(Buffer); 79 BitBlt Canvas(Buffer.Canvas, 0, 0, 48, 48, Back.Canvas, 0, 0);79 BitBltBitmap(Buffer, 0, 0, 48, 48, Back, 0, 0); 80 80 ImageOp_CBC(Buffer, Template, 0, 0, 133, 149 + 48 * Byte(FDown), 48, 48, 81 81 $000000, $FFFFFF); … … 109 109 end; 110 110 111 procedure TEOTButton.SetBack( ca: TCanvas; X, Y: Integer);111 procedure TEOTButton.SetBack(Canvas: TCanvas; X, Y: Integer); 112 112 begin 113 BitBltCanvas(Back.Canvas, 0, 0, 48, 48, ca, X, Y);113 BitBltCanvas(Back.Canvas, 0, 0, 48, 48, Canvas, X, Y); 114 114 end; 115 115 -
trunk/Packages/CevoComponents/ScreenTools.pas
r522 r530 569 569 procedure Dump(Dst: TBitmap; HGr: TGraphicSet; xDst, yDst, Width, Height, xGr, yGr: Integer); 570 570 begin 571 BitBltCanvas(Dst.Canvas, xDst, yDst, Width, Height, 572 HGr.Data.Canvas, xGr, yGr); 571 BitBltBitmap(Dst, xDst, yDst, Width, Height, HGr.Data, xGr, yGr); 573 572 end; 574 573 … … 1116 1115 end; 1117 1116 end; 1118 BitBlt Canvas(HGrSystem.Mask.Canvas, CityMark2.Left, CityMark2.Top, CityMark1.Width, CityMark1.Width,1119 HGrSystem.Mask.Canvas, CityMark1.Left, CityMark1.Top);1117 BitBltBitmap(HGrSystem.Mask, CityMark2.Left, CityMark2.Top, CityMark1.Width, 1118 CityMark1.Width, HGrSystem.Mask, CityMark1.Left, CityMark1.Top); 1120 1119 end; 1121 1120 … … 1216 1215 procedure Corner(Canvas: TCanvas; X, Y, Kind: Integer; T: TTexture); 1217 1216 begin 1218 { BitBltCanvas(Canvas, x,y,8,8,T.HGr.Mask.Canvas,1219 T.xGr +29+Kind*9,T.yGr+89,SRCAND);1220 BitBltCanvas(Canvas, X,Y,8,8,T.HGr.Data.Canvas,1221 T.xGr +29+Kind*9,T.yGr+89,SRCPAINT); }1217 { BitBltCanvas(Canvas, x, y, 8, 8, T.HGr.Mask.Canvas, 1218 T.xGr + 29 + Kind * 9, T.yGr + 89, SRCAND); 1219 BitBltCanvas(Canvas, X, Y, 8, 8, T.HGr.Data.Canvas, 1220 T.xGr + 29 + Kind * 9, T.yGr + 89, SRCPAINT); } 1222 1221 end; 1223 1222 … … 1454 1453 for I := 0 to Val mod 10 - 1 do 1455 1454 begin 1456 BitBlt Canvas(Dst.Canvas, xIcon + 4 + I * (14 * ld div sd), yIcon + 2 + 1, 14,1457 14, HGrSystem.Mask .Canvas, 67 + Kind mod 8 * 15,1455 BitBltBitmap(Dst, xIcon + 4 + I * (14 * ld div sd), yIcon + 2 + 1, 14, 1456 14, HGrSystem.Mask, 67 + Kind mod 8 * 15, 1458 1457 70 + Kind div 8 * 15, SRCAND); 1459 1458 Sprite(Dst, HGrSystem, xIcon + 3 + I * (14 * ld div sd), yIcon + 2, … … 1462 1461 for I := 0 to Val div 10 - 1 do 1463 1462 begin 1464 BitBlt Canvas(Dst.Canvas, xIcon + 4 + (Val mod 10) *1463 BitBltBitmap(Dst, xIcon + 4 + (Val mod 10) * 1465 1464 (14 * ld div sd) + I * (14 * ld div sd), yIcon + 3, 14, 14, 1466 HGrSystem.Mask .Canvas, 67 + 7 mod 8 * 15,1465 HGrSystem.Mask, 67 + 7 mod 8 * 15, 1467 1466 70 + 7 div 8 * 15, SRCAND); 1468 1467 Sprite(Dst, HGrSystem, xIcon + 3 + (Val mod 10) * … … 1487 1486 for I := 0 to Val div 10 - 1 do 1488 1487 begin 1489 BitBlt Canvas(Dst.Canvas, xIcon + 4 + I * (14 * ld div sd), yIcon + 3, 14, 14,1490 HGrSystem.Mask .Canvas, 67 + Kind mod 8 * 15,1488 BitBltBitmap(Dst, xIcon + 4 + I * (14 * ld div sd), yIcon + 3, 14, 14, 1489 HGrSystem.Mask, 67 + Kind mod 8 * 15, 1491 1490 70 + Kind div 8 * 15, SRCAND); 1492 1491 Sprite(Dst, HGrSystem, xIcon + 3 + I * (14 * ld div sd), yIcon + 2, … … 1495 1494 for I := 0 to Val mod 10 - 1 do 1496 1495 begin 1497 BitBlt Canvas(Dst.Canvas, xIcon + 4 + (Val div 10) *1496 BitBltBitmap(Dst, xIcon + 4 + (Val div 10) * 1498 1497 (14 * ld div sd) + I * (10 * ld div sd), yIcon + 7, 10, 10, 1499 HGrSystem.Mask .Canvas, 66 + Kind mod 11 * 11,1498 HGrSystem.Mask, 66 + Kind mod 11 * 11, 1500 1499 115 + Kind div 11 * 11, SRCAND); 1501 1500 Sprite(Dst, HGrSystem, xIcon + 3 + (Val div 10) *
Note:
See TracChangeset
for help on using the changeset viewer.