Changeset 314 for trunk/Start.pas


Ignore:
Timestamp:
Mar 18, 2021, 9:46:52 PM (4 years ago)
Author:
chronos
Message:
  • Added: Graphic set can now load dimensions of its graphic set items from a file. This effort should help with elimination of hardcoded graphic items dimensions in graphics sets. Gradually all graphic sets should have description of their items.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Start.pas

    r313 r314  
    906906        if (i < 13) or (i > 17) then
    907907        begin
    908           BitBltCanvas(Canvas, 9 + i * 27, yLogo - 2, wOrna, hOrna,
    909             HGrSystem2.Mask.Canvas, xOrna, yOrna, SRCAND);
    910           BitBltCanvas(Canvas, 9 + i * 27, yLogo - 2, wOrna, hOrna,
    911             HGrSystem2.Data.Canvas, xOrna, yOrna, SRCPAINT);
     908          BitBltCanvas(Canvas, 9 + i * 27, yLogo - 2, Ornament.Width, Ornament.Height,
     909            HGrSystem2.Mask.Canvas, Ornament.Left, Ornament.Top, SRCAND);
     910          BitBltCanvas(Canvas, 9 + i * 27, yLogo - 2, Ornament.Width, Ornament.Height,
     911            HGrSystem2.Data.Canvas, Ornament.Left, Ornament.Top, SRCPAINT);
    912912        end;
    913913      PaintLogo(Canvas, 69 + 11 * 27, yLogo, MainTexture.clBevelLight,
     
    990990        if (i < 2) or (i > 6) then
    991991        begin
    992           BitBltCanvas(Canvas, 9 + i * 27, yLogo - 2, wOrna, hOrna,
    993             HGrSystem2.Mask.Canvas, xOrna, yOrna, SRCAND);
    994           BitBltCanvas(Canvas, 9 + i * 27, yLogo - 2, wOrna, hOrna,
    995             HGrSystem2.Data.Canvas, xOrna, yOrna, SRCPAINT);
     992          BitBltCanvas(Canvas, 9 + i * 27, yLogo - 2, Ornament.Width, Ornament.Height,
     993            HGrSystem2.Mask.Canvas, Ornament.Left, Ornament.Top, SRCAND);
     994          BitBltCanvas(Canvas, 9 + i * 27, yLogo - 2, Ornament.Width, Ornament.Height,
     995            HGrSystem2.Data.Canvas, Ornament.Left, Ornament.Top, SRCPAINT);
    996996        end;
    997997      PaintLogo(Canvas, 69, yLogo, MainTexture.clBevelLight,
Note: See TracChangeset for help on using the changeset viewer.