Ignore:
Timestamp:
Apr 25, 2022, 6:01:01 PM (2 years ago)
Author:
chronos
Message:
  • Modified: Do not use explicit mode delphi directive as it is already set in project.
  • Modified: Use UNIX instead of LINUX for conditional code to work also on FreeBSD.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Term.pas

    r420 r423  
    55
    66uses
    7 {$IFDEF Windows}
     7{$IFDEF WINDOWS}
    88  Windows,
    99{$ENDIF}
    10 {$IFDEF Linux}
     10{$IFDEF UNIX}
    1111  LMessages, Messages,
    1212{$ENDIF}
     
    47054705end;
    47064706
    4707 {$IFDEF LINUX}
     4707{$IFDEF UNIX}
    47084708// Can't do scrolling of DC under Linux, then fallback into BitBlt.
    47094709function ScrollDC(Canvas: TCanvas; dx: longint; dy: longint; const lprcScroll:TRect; const lprcClip:TRect; hrgnUpdate:HRGN; lprcUpdate: PRect):Boolean;
     
    47634763        rec, rec, 0, nil);
    47644764{$ENDIF}
    4765 {$IFDEF LINUX}
     4765{$IFDEF UNIX}
    47664766      ScrollDC(offscreen.Canvas, (xwd - xw) * (xxt * 2), (ywd - yw) * yyt,
    47674767        rec, rec, 0, nil);
     
    47744774            rec, 0, nil);
    47754775{$ENDIF}
    4776 {$IFDEF LINUX}
     4776{$IFDEF UNIX}
    47774777          ScrollDC(Canvas, (xwd - xw) * (xxt * 2), (ywd - yw) * yyt,
    47784778            rec, rec, 0, nil);
     
    66726672      NoMap.PaintUnit(xMoving - xMin, yMoving - yMin, UnitInfo, 0);
    66736673      PaintBufferToScreen(xMin, yMin, xRange, yRange);
    6674       {$IFDEF LINUX}
    6675       // TODO: Force animation under linux
     6674      {$IFDEF UNIX}
     6675      // TODO: Force animation under UNIX
    66766676      Application.ProcessMessages;
    66776677      {$ENDIF}
Note: See TracChangeset for help on using the changeset viewer.