Changeset 323 for trunk/Start.pas


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

    r320 r323  
    503503    $000000, xAction, y + 21, Phrases2.Lookup(TextItem));
    504504
    505   // TODO: Explicitly clear background to black but in fact BitBlt SRCCOPY should do it
    506   LogoBuffer.Canvas.FillRect(0, 0, LogoBuffer.Width, LogoBuffer.Height);
     505  UnshareBitmap(LogoBuffer);
    507506  BitBltCanvas(LogoBuffer.Canvas, 0, 0, 50, 50, Canvas,
    508507    xActionIcon - 2, y - 2);
     
    603602
    604603  // Paint menu logo
    605   // TODO: Explicitly clear background to black but in fact BitBlt SRCCOPY should do it
    606   LogoBuffer.Canvas.FillRect(0, 0, LogoBuffer.Width, LogoBuffer.Height);
     604  UnshareBitmap(LogoBuffer);
    607605  BitBltCanvas(LogoBuffer.Canvas, 0, 0, MenuLogo.Width, MenuLogo.Height, Canvas, 6,
    608606    3 + 2 * integer(Tab <> tbMain));
     
    627625          h := ClientHeight - ActionBottomBorder -
    628626            (yAction + Integer(SelectedAction) * ActionPitch - 8);
    629         // TODO: Explicitly clear background to black but in fact BitBlt SRCCOPY should do it
    630         LogoBuffer.Canvas.FillRect(0, 0, LogoBuffer.Width, LogoBuffer.Height);
     627
     628        UnshareBitmap(LogoBuffer);
    631629        BitBltCanvas(LogoBuffer.Canvas, 0, 0, w, h, Canvas,
    632630          ActionSideBorder + i * wBuffer, yAction + Integer(SelectedAction) * ActionPitch
     
    653651                Format(Phrases2.Lookup('ACTIONHEADER_WEB'), [CevoHomepageShort]));
    654652              Canvas.Font.Assign(UniFont[ftNormal]);
    655               // TODO: Explicitly clear background to black but in fact BitBlt SRCCOPY should do it
    656               LogoBuffer.Canvas.FillRect(0, 0, LogoBuffer.Width, LogoBuffer.Height);
     653
     654              UnshareBitmap(LogoBuffer);
    657655              BitBltCanvas(LogoBuffer.Canvas, 0, 0, LinkArrows.Width, LinkArrows.Height, Canvas,
    658656                xActionIcon, y + 2);
Note: See TracChangeset for help on using the changeset viewer.