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/MessgEx.pas

    r318 r323  
    292292
    293293  // paint
    294   // TODO: Explicitly clear background to black but in fact BitBlt SRCCOPY should do it
    295   LogoBuffer.Canvas.FillRect(0, 0, LogoBuffer.Width, LogoBuffer.Height);
     294  UnshareBitmap(LogoBuffer);
    296295  BitBltCanvas(LogoBuffer.Canvas, 0, 0, BookRect.Width, BookRect.Height, ca, x, y);
    297296
     
    374373      begin
    375374        p1 := MyRO.Wonder[IconIndex].EffectiveOwner;
    376         // TODO: Explicitly clear background to black but in fact BitBlt SRCCOPY should do it
    377         Buffer.Canvas.FillRect(0, 0, 1, 1);
     375        UnshareBitmap(Buffer);
    378376        BitBltCanvas(Buffer.Canvas, 0, 0, xSizeBig + 2 * GlowRange,
    379377          ySizeBig + 2 * GlowRange, Canvas,
Note: See TracChangeset for help on using the changeset viewer.