Changeset 71 for trunk/UGame.pas


Ignore:
Timestamp:
Sep 28, 2014, 8:53:50 PM (10 years ago)
Author:
chronos
Message:
  • Modified: Tested csOpaque direct drawing with temporary bitmap buffer. Not significant improvement over non opaque mode.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UGame.pas

    r70 r71  
    193193    procedure LoadFromNode(Node: TDOMNode);
    194194    procedure SaveToNode(Node: TDOMNode);
    195     procedure Paint(PaintBox: TPaintBox);
     195    procedure Paint(Canvas: TCanvas);
    196196    constructor Create;
    197197    destructor Destroy; override;
     
    13931393end;
    13941394
    1395 procedure TPlayer.Paint(PaintBox: TPaintBox);
    1396 begin
    1397   Game.Map.Paint(PaintBox.Canvas, View);
     1395procedure TPlayer.Paint(Canvas: TCanvas);
     1396begin
     1397  Game.Map.Paint(Canvas, View);
    13981398end;
    13991399
     
    21082108            Brush.Color := clPurple
    21092109          else Brush.Color := Cell.GetColor;
    2110         Pen.Color := clBlack;
     2110        //Pen.Color := clBlack;
    21112111        PaintCell(Canvas, Cell.PosPx, IntToStr(Cell.GetAvialPower), View, Cell);
    21122112      end;
Note: See TracChangeset for help on using the changeset viewer.