Changeset 87 for trunk/Forms/UFormMain.pas
- Timestamp:
- Nov 15, 2014, 10:32:26 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r86 r87 11 11 const 12 12 ZoomFactor = 1.5; 13 MouseMinDiff = 6; 13 14 14 15 type … … 99 100 MoveActive: Boolean; 100 101 RedrawPending: Boolean; 102 Drawing: Boolean; 101 103 DrawDuration: TDateTime; 102 104 LastTimerTime: TDateTime; … … 162 164 NewCaption: string; 163 165 begin 164 if RedrawPending then begin 166 if RedrawPending and not Drawing then begin 167 Drawing := True; 165 168 if not Core.DevelMode then RedrawPending := False; 166 169 TimerPeriod := (9 * TimerPeriod + (Now - LastTimerTime)) / 10; … … 173 176 NewCaption := Core.Game.CurrentPlayer.Name + ' - ' + STurn + ' ' + IntToStr(Core.Game.TurnCounter) + ' - ' + NewCaption; 174 177 Caption := NewCaption; 178 Drawing := False; 175 179 end; 176 180 end; … … 221 225 begin 222 226 {$IFDEF Linux} 223 PaintBox1.ControlStyle := PaintBox1.ControlStyle + [csOpaque];227 //PaintBox1.ControlStyle := PaintBox1.ControlStyle + [csOpaque]; 224 228 {$ENDIF} 225 229 //DoubleBuffered := True; … … 355 359 if Assigned(Core.Game.CurrentPlayer) then begin 356 360 if MoveActive then 361 if (Abs(StartMousePoint.X - X) > MouseMinDiff) or (Abs(StartMousePoint.Y - Y) > MouseMinDiff) then 357 362 with Core.Game.CurrentPlayer do begin 358 363 if Mode = pmHuman then begin … … 384 389 procedure TFormMain.PaintBox1MouseUp(Sender: TObject; Button: TMouseButton; 385 390 Shift: TShiftState; X, Y: Integer); 386 const387 MouseMinDiff = 10;388 391 begin 389 392 if (Abs(StartMousePoint.X - X) < MouseMinDiff) and (Abs(StartMousePoint.Y - Y) < MouseMinDiff) then begin
Note:
See TracChangeset
for help on using the changeset viewer.