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

    r313 r315  
    465465    if ((ScaleToNative(y0) + y) >= 0) and ((ScaleToNative(y0) + y) < ScaleToNative(InnerHeight)) then begin
    466466      PaintPtr := PixelPointer(OffScreen, 0, ScaleToNative(y0) + y);
    467       CoalPtr := PixelPointer(Templates, 0, ScaleToNative(yCoal) + y);
     467      CoalPtr := PixelPointer(Templates.Data, 0, ScaleToNative(yCoal) + y);
    468468      for dy := -1 to 1 do
    469469        if ((Max(y + ScaleToNative(dy), 0) shr 1) >= 0) and ((Max(y + ScaleToNative(dy), 0) shr 1) < ScaleToNative(ySizeBig)) then
Note: See TracChangeset for help on using the changeset viewer.