diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-08-23 22:54:42 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-08-23 22:54:42 +0200 |
| commit | ef3e79e0bb6ba4a5e5d4dc1467281370e1d8b488 (patch) | |
| tree | 0f492cbf72e3cbc1954d6187e9d539bd0525e951 /UViewer.pas | |
| parent | 182fe0717f8e7fefd1e5c1eb42968fd29e15156f (diff) | |
| download | tuxcmd-ef3e79e0bb6ba4a5e5d4dc1467281370e1d8b488.tar.xz | |
Fix some compiler warnings
Diffstat (limited to 'UViewer.pas')
| -rw-r--r-- | UViewer.pas | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/UViewer.pas b/UViewer.pas index ae56d2c..d97a16d 100644 --- a/UViewer.pas +++ b/UViewer.pas @@ -143,10 +143,9 @@ end; procedure smooth_scroll(adj: PGtkAdjustment; dest_value: Double; PageScroll: boolean); var increment, val: Double; - i, x: integer; + i: gulong; timer: PGTimer; - microseconds: gulong; - dur, st: integer; + microseconds, dur, st: gulong; begin if gtk_adjustment_get_value(adj) = dest_value then Exit; if not ConfUseSmoothScrolling then begin @@ -168,7 +167,6 @@ begin // DebugMsg(['Start value ', val]); i := 1; - x := 0; g_timer_start(timer); repeat g_timer_elapsed(timer, @microseconds); @@ -179,7 +177,6 @@ begin Inc(i); end; gdk_window_process_all_updates; - Inc(x); usleep(100); until (microseconds div 1000) > dur; gtk_adjustment_set_value(adj, dest_value); |
