Ignore:
Timestamp:
Mar 18, 2021, 10:58:28 PM (4 years ago)
Author:
chronos
Message:
  • Fixed: Gamma was incorrectly applied to images with transparency colors.
  • Modified: Change Templates to GraphicSet so it can also have description of its items.
  • Modified: Use TextExtent instead of both TextWidth and TextHeight.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/MessgEx.pas

    r313 r315  
    310310            Trunc(Screwed[ix, iy, 0] / Screwed[ix, iy, 3]) shl 16;
    311311
    312   ImageOp_BCC(LogoBuffer, Templates, 0, 0, xb, yb, wb, hb, clCover, clPage);
     312  ImageOp_BCC(LogoBuffer, Templates.Data, 0, 0, xb, yb, wb, hb, clCover, clPage);
    313313
    314314  BitBltCanvas(ca, x, y, wb, hb, LogoBuffer.Canvas, 0, 0);
     
    441441        BitBltCanvas(Buffer.Canvas, 0, 0, 140, 120, Canvas,
    442442          (ClientWidth - 140) div 2, 24);
    443         ImageOp_BCC(Buffer, Templates, 0, 0, 1, 279, 140, 120, 0, $FFFFFF);
     443        ImageOp_BCC(Buffer, Templates.Data, 0, 0, 1, 279, 140, 120, 0, $FFFFFF);
    444444        BitBltCanvas(Canvas, (ClientWidth - 140) div 2, 24, 140, 120,
    445445          Buffer.Canvas, 0, 0);
Note: See TracChangeset for help on using the changeset viewer.