Changeset 36


Ignore:
Timestamp:
Jan 9, 2017, 1:00:08 AM (8 years ago)
Author:
chronos
Message:
  • Fixed: Black background in city screen.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/CityScreen.pas

    r29 r36  
    213213  Back := TBitmap.Create;
    214214  Back.PixelFormat := pf24bit;
    215   Back.Width := ClientWidth;
    216   Back.Height := ClientHeight;
     215  Back.SetSize(ClientWidth, ClientHeight);
     216  Back.Canvas.FillRect(0, 0, Back.Width, Back.Height);
    217217  Template := TBitmap.Create;
    218218  LoadGraphicFile(Template, HomeDir + 'Graphics' + DirectorySeparator + 'City', gfNoGamma);
     
    227227  SmallCityMap := TBitmap.Create;
    228228  SmallCityMap.PixelFormat := pf24bit;
    229   SmallCityMap.Width := 98;
    230   SmallCityMap.Height := 74;
     229  SmallCityMap.SetSize(98, 74);
     230  SmallCityMap.Canvas.FillRect(0, 0, SmallCityMap.Width, SmallCityMap.Height);
    231231  ZoomCityMap := TBitmap.Create;
    232232  ZoomCityMap.PixelFormat := pf24bit;
    233   ZoomCityMap.Width := 228;
    234   ZoomCityMap.Height := 124;
     233  ZoomCityMap.SetSize(228, 124);
     234  ZoomCityMap.Canvas.FillRect(0, 0, ZoomCityMap.Width, ZoomCityMap.Height);
    235235end;
    236236
Note: See TracChangeset for help on using the changeset viewer.