Changeset 111 for trunk/Forms


Ignore:
Timestamp:
Nov 27, 2016, 2:34:31 PM (8 years ago)
Author:
chronos
Message:
  • Modified: Changed debian packages configuration files to support build on Launchpad.
  • Fixed: Wrong zoom calculation in some case.
  • Fixed: Set configuration file name explicitly.
Location:
trunk/Forms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.lfm

    r107 r111  
    55  Width = 775
    66  Caption = 'xTactics'
    7   ClientHeight = 591
     7  ClientHeight = 589
    88  ClientWidth = 775
    99  Menu = MainMenu1
     
    1414  OnKeyUp = FormKeyUp
    1515  OnShow = FormShow
    16   LCLVersion = '1.4.4.0'
     16  LCLVersion = '1.6.0.4'
    1717  WindowState = wsMaximized
    1818  object StatusBar1: TStatusBar
    1919    Left = 0
    2020    Height = 28
    21     Top = 563
     21    Top = 561
    2222    Width = 775
    2323    Panels = <   
     
    3535  object ToolBar1: TToolBar
    3636    Left = 0
    37     Height = 563
     37    Height = 561
    3838    Top = 0
    3939    Width = 80
     
    118118  object PaintBox1: TPaintBox
    119119    Left = 80
    120     Height = 563
     120    Height = 561
    121121    Top = 0
    122122    Width = 695
  • trunk/Forms/UFormMain.pas

    r107 r111  
    257257    if Factor.X < Factor.Y then NewZoom := Factor.X
    258258      else NewZoom := Factor.Y;
    259     //if NewZoom <> 0 then
     259    if NewZoom = 0 then NewZoom := 1;
    260260    Zoom := NewZoom;
    261261    CenterMap;
     
    330330procedure TFormMain.FormShow(Sender: TObject);
    331331begin
     332  Core.XMLConfig1.Filename := 'Config.xml';
    332333  LoadConfig(Core.XMLConfig1, 'FormMain');
    333334  Core.PersistentForm.Load(Self, True);
Note: See TracChangeset for help on using the changeset viewer.