Ignore:
Timestamp:
Jan 23, 2020, 12:33:26 AM (5 years ago)
Author:
chronos
Message:
  • Fixed: Init form opaque control style during its creation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r65 r66  
    149149  TimeStart: TDateTime;
    150150begin
     151  {$IFDEF DEBUG}
    151152  TimeStart := Now;
     153  {$ENDIF}
    152154  Core.Game.Render(Canvas, Point(Width, Height - MainMenu1.Height));
     155  {$IFDEF DEBUG}
    153156  DrawDuration := Now - TimeStart;
     157  {$ENDIF}
    154158end;
    155159
     
    157161begin
    158162  Core.PersistentForm1.Save(Self);
    159   ControlStyle := [csOpaque];
    160163end;
    161164
     
    167170  MoveThread.FreeOnTerminate := False;
    168171  MoveThread.Start;
     172  ControlStyle := ControlStyle + [csOpaque];
    169173end;
    170174
     
    191195    RedrawPending := False;
    192196    Repaint;
    193     Caption := FloatToStr(Round(DrawDuration / OneMillisecond));
     197{$IFDEF DEBUG}
     198    //Caption := FloatToStr(Round(DrawDuration / OneMillisecond));
     199{$ENDIF}
    194200  end;
    195201end;
Note: See TracChangeset for help on using the changeset viewer.