Changeset 423 for trunk/LocalPlayer


Ignore:
Timestamp:
Apr 25, 2022, 6:01:01 PM (3 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.
Location:
trunk/LocalPlayer
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/CityScreen.pas

    r417 r423  
    55
    66uses
    7   {$IFDEF LINUX}LMessages,{$ENDIF}
     7  {$IFDEF UNIX}LMessages,{$ENDIF}
    88  Protocol, ClientTools, Term, ScreenTools, IsoEngine, BaseWin,
    99  LCLIntf, LCLType, Messages, SysUtils, Classes, Graphics, Controls, Forms, ExtCtrls,
  • 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}
  • trunk/LocalPlayer/UKeyBindings.pas

    r418 r423  
    11unit UKeyBindings;
    2 
    3 {$mode delphi}
    42
    53interface
Note: See TracChangeset for help on using the changeset viewer.