Changeset 91 for trunk/UGame.pas


Ignore:
Timestamp:
Dec 4, 2014, 10:18:13 PM (10 years ago)
Author:
chronos
Message:
  • Added: Partial support for high DPI screens. Disabled.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UGame.pas

    r90 r91  
    426426  SUnfinishedBattle = 'Unfinished battle';
    427427  SNewGameFile = 'New game.xtg';
     428  SZeroZoomNotAlowed = 'Zero zoom not allowed';
    428429
    429430procedure InitStrings;
     
    14291430begin
    14301431  if FZoom = AValue then Exit;
     1432  if AValue = 0 then
     1433    raise Exception.Create(SZeroZoomNotAlowed);
    14311434  FZoom := AValue;
    14321435  SourceRect := Bounds(Trunc(SourceRect.Left + (SourceRect.Right - SourceRect.Left) div 2 - (DestRect.Right - DestRect.Left) / Zoom / 2),
Note: See TracChangeset for help on using the changeset viewer.