Ignore:
Timestamp:
Mar 23, 2021, 2:46:42 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Created single procedure for unshare/free bitmap before BitBlt use.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/CityScreen.pas

    r318 r323  
    259259    AgePrepared := MainTextureAge;
    260260
    261     // TODO: FillRect should not be needed as BitBlt is with SRCCOPY
    262     Back.Canvas.FillRect(0, 0, ClientWidth, ClientHeight);
    263 
     261    UnshareBitmap(Back);
    264262    BitBltCanvas(Back.Canvas, 0, 0, ClientWidth, ClientHeight,
    265263      MainTexture.Image.Canvas, 0, 0);
     
    358356procedure TCityDlg.InitZoomCityMap;
    359357begin
    360   // TODO: FillRect should not be needed as BitBlt is with SRCCOPY
    361   ZoomCityMap.Canvas.FillRect(0, 0, ZoomCityMap.Width, ZoomCityMap.Height);
    362 
     358  UnshareBitmap(ZoomCityMap);
    363359  BitBltCanvas(ZoomCityMap.Canvas, 0, 0, wZoomMap, hZoomMap,
    364360    Back.Canvas, xZoomMap, yZoomMap);
Note: See TracChangeset for help on using the changeset viewer.