Changeset 425 for trunk/LocalPlayer


Ignore:
Timestamp:
Apr 26, 2022, 7:34:12 PM (3 years ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
Location:
trunk/LocalPlayer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/MessgEx.pas

    r358 r425  
    1313    mikPureIcon, mikMyArmy, mikEnemyArmy, mikFullControl, mikShip, mikBigIcon,
    1414    mikEnemyShipComplete);
     15
     16  { TMessgExDlg }
    1517
    1618  TMessgExDlg = class(TBaseMessgDlg)
     
    5759  ContextKind, ContextNo: integer);
    5860
     61
    5962implementation
    6063
     
    220223  wScrewed = 43;
    221224  hScrewed = 27;
     225type
     226  TScrewed = array [0 .. wScrewed - 1, 0 .. hScrewed - 1, 0 .. 3] of Single;
    222227var
    223228  ix, iy, xDst, yDst, dx, dy, xIcon, yIcon: integer;
    224229  BookRect: TRect;
    225230  x1, xR, yR, share: single;
    226   Screwed: array [0 .. wScrewed - 1, 0 .. hScrewed - 1, 0 .. 3] of single;
     231  Screwed: TScrewed;
    227232  SrcPtr: TPixelPointer;
    228233  Width: Integer;
     
    235240    yIcon := (IconIndex + SystemIconLines * 7) div 7 * ySizeBig;
    236241    // prepare screwed icon
    237     FillChar(Screwed, sizeof(Screwed), 0);
     242    Screwed := Default(TScrewed);
    238243    BigImp.BeginUpdate;
    239244    SrcPtr := PixelPointer(BigImp, ScaleToNative(xIcon), ScaleToNative(yIcon));
  • trunk/LocalPlayer/Term.pas

    r423 r425  
    383383    procedure PaintZoomedTile(dst: TBitmap; x, y, Loc: integer);
    384384  public
    385     UsedOffscreenWidth, UsedOffscreenHeight: integer;
     385    UsedOffscreenWidth: Integer;
     386    UsedOffscreenHeight: Integer;
    386387    Offscreen: TBitmap;
    387388    OffscreenUser: TForm;
     
    28432844                ClientHeight - PanelHeight, 64, 64, AILogo[pLogo].Canvas,
    28442845                0, 0);
    2845           end
    2846         end
     2846          end;
     2847        end;
    28472848      end;
    28482849
     
    77017702procedure TMainScreen.Toggle(Sender: TObject);
    77027703begin
    7703   TMenuItem(Sender).Checked := not TMenuItem(Sender).Checked
     7704  TMenuItem(Sender).Checked := not TMenuItem(Sender).Checked;
    77047705end;
    77057706
Note: See TracChangeset for help on using the changeset viewer.