Ignore:
Timestamp:
Apr 21, 2024, 10:57:18 AM (7 months ago)
Author:
chronos
Message:
  • Fixed: Bad unit drawing in battle dialog.
  • Modified: Code cleanup.
Location:
trunk/Packages/DpiControls
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/DpiControls/Dpi.Graphics.pas

    r546 r548  
    290290  public
    291291    NativeBitmap: Graphics.TBitmap;
    292     procedure BeginUpdate;
    293     procedure EndUpdate;
    294292    constructor Create; override;
    295293    destructor Destroy; override;
     
    337335  published
    338336    procedure LoadFromFile(FileName: string);
    339     property Bitmpa: TBitmap read FBitmap write SetBitmap;
     337    property Bitmap: TBitmap read FBitmap write SetBitmap;
    340338  end;
    341339
     
    713711        DstPixelWidth := ScaleToNative(XX + 1) - ScaleToNative(XX);
    714712        for DstPixelX := 0 to DstPixelWidth - 1 do begin
    715           DstPtr.PixelB := SrcPtr.PixelB;
    716           DstPtr.PixelG := SrcPtr.PixelG;
    717           DstPtr.PixelR := SrcPtr.PixelR;
     713          DstPtr.PixelRGB := SrcPtr.PixelRGB;
    718714          DstPtr.NextPixel;
    719715        end;
     
    819815end;
    820816
    821 procedure TBitmap.BeginUpdate;
    822 begin
    823   GetNativeBitmap.BeginUpdate;
    824 end;
    825 
    826 procedure TBitmap.EndUpdate;
    827 begin
    828   GetNativeBitmap.EndUpdate;
    829 end;
    830 
    831817constructor TBitmap.Create;
    832818begin
  • trunk/Packages/DpiControls/DpiControls.lpk

    r482 r548  
    3030      <Other>
    3131        <CompilerMessages>
    32           <IgnoredMessages idx3123="True"/>
     32          <IgnoredMessages idx6058="True" idx3123="True"/>
    3333        </CompilerMessages>
    3434      </Other>
Note: See TracChangeset for help on using the changeset viewer.