Ignore:
Timestamp:
Apr 21, 2024, 10:57:18 AM (4 weeks ago)
Author:
chronos
Message:
  • Fixed: Bad unit drawing in battle dialog.
  • Modified: Code cleanup.
File:
1 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
Note: See TracChangeset for help on using the changeset viewer.