Changeset 91 for trunk/Forms/UFormMain.pas
- Timestamp:
- Dec 4, 2014, 10:18:13 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r90 r91 73 73 procedure AZoomOutExecute(Sender: TObject); 74 74 procedure FormActivate(Sender: TObject); 75 procedure FormShow(Sender: TObject); 75 76 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 76 77 procedure FormCreate(Sender: TObject); 77 78 procedure FormDestroy(Sender: TObject); 78 79 procedure FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState); 79 procedure FormShow(Sender: TObject);80 procedure MenuItem19Click(Sender: TObject);81 80 procedure PaintBox1MouseDown(Sender: TObject; Button: TMouseButton; 82 81 Shift: TShiftState; X, Y: Integer); … … 244 243 Factor: TFloatPoint; 245 244 MapRect: TRect; 245 NewZoom: Single; 246 246 begin 247 247 with Core, Game, Player, View do begin … … 249 249 Factor := FloatPoint((DestRect.Right - DestRect.Left) / (MapRect.Right - MapRect.Left), 250 250 (DestRect.Bottom - DestRect.Top) / (MapRect.Bottom - MapRect.Top)); 251 if Factor.X < Factor.Y then Zoom := Factor.X 252 else Zoom := Factor.Y; 251 if Factor.X < Factor.Y then NewZoom := Factor.X 252 else NewZoom := Factor.Y; 253 //if NewZoom <> 0 then 254 Zoom := NewZoom; 253 255 CenterMap; 254 256 end; … … 326 328 ReloadView; 327 329 Redraw; 328 end;329 330 procedure TFormMain.MenuItem19Click(Sender: TObject);331 begin332 333 330 end; 334 331
Note:
See TracChangeset
for help on using the changeset viewer.