Changeset 35 for trunk/ScreenTools.pas


Ignore:
Timestamp:
Jan 9, 2017, 12:56:03 AM (8 years ago)
Author:
chronos
Message:
  • Fixed: Black terrain tiles due new bitmap initialized as transparent.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ScreenTools.pas

    r29 r35  
    549549    GrExt[nGrExt].Mask := TBitmap.create;
    550550    GrExt[nGrExt].Mask.PixelFormat := pf24bit;
    551     GrExt[nGrExt].Mask.Width := Source.Width;
    552     GrExt[nGrExt].Mask.Height := Source.Height;
     551    GrExt[nGrExt].Mask.SetSize(Source.Width, Source.Height);
    553552
    554553    GrExt[nGrExt].Data.BeginUpdate;
     
    583582    FillChar(GrExt[nGrExt].pixUsed, GrExt[nGrExt].Data.Height div 49 * 10, 0);
    584583    inc(nGrExt);
    585   end
     584  end;
    586585end;
    587586
Note: See TracChangeset for help on using the changeset viewer.