Changeset 118 for trunk/Start.pas


Ignore:
Timestamp:
Feb 3, 2018, 3:29:17 PM (6 years ago)
Author:
chronos
Message:
  • Modified: Set Bitmap size at once.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Start.pas

    r117 r118  
    338338    if not LoadGraphicFile(BrainPicture[i], HomeDir + 'AI' + DirectorySeparator + Brain[i].FileName + '.png',
    339339      gfNoError) then begin
    340       BrainPicture[i].width := 64;
    341       BrainPicture[i].height := 64;
     340      BrainPicture[i].SetSize(64, 64);
    342341      with BrainPicture[i].Canvas do begin
    343342        Brush.Color := $904830;
Note: See TracChangeset for help on using the changeset viewer.