Changeset 316 for trunk/Start.pas


Ignore:
Timestamp:
Mar 18, 2021, 11:31:20 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Some Templates items used as TGraphicSetItem.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Start.pas

    r315 r316  
    827827      TabOffset + (Integer(Tab) + 1) * TabSize + 2, TabHeight, MainTexture.clBevelShade,
    828828      MainTexture.clBevelShade); // Tab shadow
     829
     830  // Paint menu logo
    829831  // TODO: Explicitly clear background to black but in fact BitBlt SRCCOPY should do it
    830832  LogoBuffer.Canvas.FillRect(0, 0, LogoBuffer.Width, LogoBuffer.Height);
    831   BitBltCanvas(LogoBuffer.Canvas, 0, 0, 36, 36, Canvas, 6,
     833  BitBltCanvas(LogoBuffer.Canvas, 0, 0, MenuLogo.Width, MenuLogo.Height, Canvas, 6,
    832834    3 + 2 * integer(Tab <> tbMain));
    833835
    834   ImageOp_BCC(LogoBuffer, Templates.Data, 0, 0, 145, 38, 36, 27, $BFBF20, $4040DF);
    835   // logo part 1
    836   ImageOp_BCC(LogoBuffer, Templates.Data, 10, 27, 155, 38 + 27, 26, 9, $BFBF20,
    837     $4040DF); // logo part 2
    838   BitBltCanvas(Canvas, 6, 3 + 2 * integer(Tab <> tbMain), 36, 36,
     836  ImageOp_BCC(LogoBuffer, Templates.Data, 0, 0, MenuLogo.Left, MenuLogo.Top,
     837    MenuLogo.Width, MenuLogo.Height - 9, $BFBF20, $4040DF); // logo part 1
     838  ImageOp_BCC(LogoBuffer, Templates.Data, 10, 27, MenuLogo.Left + 10,
     839    MenuLogo.Top + 27, MenuLogo.Width - 10, 9, $BFBF20, $4040DF); // logo part 2
     840  BitBltCanvas(Canvas, 6, 3 + 2 * integer(Tab <> tbMain), MenuLogo.Width, MenuLogo.Height,
    839841    LogoBuffer.Canvas, 0, 0);
    840842
Note: See TracChangeset for help on using the changeset viewer.