Changeset 313 for trunk/Start.pas


Ignore:
Timestamp:
Mar 17, 2021, 11:11:55 AM (3 years ago)
Author:
chronos
Message:
  • Modified: LoadGraphicSet now returns TGrExtDescr reference. Replaced integer index references to GrExt with with direct class reference to TGrExtDescr.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Start.pas

    r304 r313  
    236236  for X := 0 to 11 do
    237237    for Y := 0 to 1 do
    238       Colors[x, y] := GrExt[HGrSystem].Data.Canvas.Pixels[66 + x, 67 + y];
     238      Colors[x, y] := HGrSystem.Data.Canvas.Pixels[66 + x, 67 + y];
    239239end;
    240240
     
    381381  PrevMiniPixel: TPixelPointer;
    382382begin
    383   OwnColor := GrExt[HGrSystem].Data.Canvas.Pixels[95, 67];
    384   EnemyColor := GrExt[HGrSystem].Data.Canvas.Pixels[96, 67];
     383  OwnColor := HGrSystem.Data.Canvas.Pixels[95, 67];
     384  EnemyColor := HGrSystem.Data.Canvas.Pixels[96, 67];
    385385  Bitmap.PixelFormat := pf24bit;
    386386  Bitmap.SetSize(Size.X * 2, Size.Y);
     
    479479  with PlayerSlots[i] do begin
    480480    DiffUpBtn := TButtonC.Create(self);
    481     DiffUpBtn.Graphic := GrExt[HGrSystem].Data;
     481    DiffUpBtn.Graphic := HGrSystem.Data;
    482482    DiffUpBtn.left := xBrain[i] - 18;
    483483    DiffUpBtn.top := yBrain[i] + 39;
     
    486486    DiffUpBtn.OnClick := DiffBtnClick;
    487487    DiffDownBtn := TButtonC.Create(self);
    488     DiffDownBtn.Graphic := GrExt[HGrSystem].Data;
     488    DiffDownBtn.Graphic := HGrSystem.Data;
    489489    DiffDownBtn.left := xBrain[i] - 18;
    490490    DiffDownBtn.top := yBrain[i] + 51;
     
    496496  with PlayerSlots[i] do begin
    497497    MultiBtn := TButtonC.Create(self);
    498     MultiBtn.Graphic := GrExt[HGrSystem].Data;
     498    MultiBtn.Graphic := HGrSystem.Data;
    499499    MultiBtn.left := xBrain[i] - 18;
    500500    MultiBtn.top := yBrain[i];
     
    511511    CustomizeBtn.ButtonIndex := 2;
    512512
    513   BitBltBitmap(BrainNoTerm.Picture, 0, 0, 64, 64, GrExt[HGrSystem2].Data, 1, 111);
    514   BitBltBitmap(BrainSuperVirtual.Picture, 0, 0, 64, 64, GrExt[HGrSystem2].Data, 66, 111);
    515   BitBltBitmap(BrainTerm.Picture, 0, 0, 64, 64, GrExt[HGrSystem2].Data, 131, 111);
    516   BitBltBitmap(BrainRandom.Picture, 0, 0, 64, 64, GrExt[HGrSystem2].Data, 131, 46);
     513  BitBltBitmap(BrainNoTerm.Picture, 0, 0, 64, 64, HGrSystem2.Data, 1, 111);
     514  BitBltBitmap(BrainSuperVirtual.Picture, 0, 0, 64, 64, HGrSystem2.Data, 66, 111);
     515  BitBltBitmap(BrainTerm.Picture, 0, 0, 64, 64, HGrSystem2.Data, 131, 111);
     516  BitBltBitmap(BrainRandom.Picture, 0, 0, 64, 64, HGrSystem2.Data, 131, 46);
    517517  LoadAiBrainsPictures;
    518518
     
    907907        begin
    908908          BitBltCanvas(Canvas, 9 + i * 27, yLogo - 2, wOrna, hOrna,
    909             GrExt[HGrSystem2].Mask.Canvas, xOrna, yOrna, SRCAND);
     909            HGrSystem2.Mask.Canvas, xOrna, yOrna, SRCAND);
    910910          BitBltCanvas(Canvas, 9 + i * 27, yLogo - 2, wOrna, hOrna,
    911             GrExt[HGrSystem2].Data.Canvas, xOrna, yOrna, SRCPAINT);
     911            HGrSystem2.Data.Canvas, xOrna, yOrna, SRCPAINT);
    912912        end;
    913913      PaintLogo(Canvas, 69 + 11 * 27, yLogo, MainTexture.clBevelLight,
     
    926926          begin
    927927            BitBltCanvas(Canvas, xBrain[i] - 18, yBrain[i] + 19, 12, 14,
    928               GrExt[HGrSystem].Data.Canvas, 134 + (Difficulty[i] - 1) *
     928              HGrSystem.Data.Canvas, 134 + (Difficulty[i] - 1) *
    929929              13, 28);
    930930            Frame(Canvas, xBrain[i] - 19, yBrain[i] + 18, xBrain[i] - 18 + 12,
     
    946946                MainTexture.clBevelShade, MainTexture.clBevelLight);
    947947              BitBltCanvas(Canvas, xBrain[i] - 31, yBrain[i], 13, 12,
    948                 GrExt[HGrSystem].Data.Canvas, 88, 47);
     948                HGrSystem.Data.Canvas, 88, 47);
    949949            end;
    950950          end;
     
    991991        begin
    992992          BitBltCanvas(Canvas, 9 + i * 27, yLogo - 2, wOrna, hOrna,
    993             GrExt[HGrSystem2].Mask.Canvas, xOrna, yOrna, SRCAND);
     993            HGrSystem2.Mask.Canvas, xOrna, yOrna, SRCAND);
    994994          BitBltCanvas(Canvas, 9 + i * 27, yLogo - 2, wOrna, hOrna,
    995             GrExt[HGrSystem2].Data.Canvas, xOrna, yOrna, SRCPAINT);
     995            HGrSystem2.Data.Canvas, xOrna, yOrna, SRCPAINT);
    996996        end;
    997997      PaintLogo(Canvas, 69, yLogo, MainTexture.clBevelLight,
Note: See TracChangeset for help on using the changeset viewer.