From 1a404cb1f5160253dd7ec226278ab417b61dac63 Mon Sep 17 00:00:00 2001 From: kreatordxx <> Date: Mon, 21 May 2007 10:55:43 +0000 Subject: [PATCH] use new 3 argument mouse_get_delta to avoid compiler errors --- CHANGELOG.txt | 4 ++++ ui/window.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 8e1bd6ff6..e1da675f4 100755 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,5 +1,9 @@ D2X-Rebirth Changelog +20070521 +-------- +ui/window.c: use new 3 argument mouse_get_delta to avoid compiler errors + 20070516 -------- include/cfile.h, include/physfsx.h, main/bm.c, main/mission.c, main/piggy.c: allow built-in data files to go in the 'Data' directory, like original Mac D2 folder layout diff --git a/ui/window.c b/ui/window.c index 9de9a5d71..0259bde3a 100755 --- a/ui/window.c +++ b/ui/window.c @@ -350,13 +350,13 @@ int ui_get_idle_seconds() void ui_mega_process() { - int mx, my; + int mx, my, mz; unsigned char k; switch( Record ) { case 0: - mouse_get_delta( &mx, &my ); + mouse_get_delta( &mx, &my, &mz ); Mouse.new_dx = mx; Mouse.new_dy = my; Mouse.new_buttons = mouse_get_btns(); @@ -387,7 +387,7 @@ void ui_mega_process() ui_event_counter++; } - mouse_get_delta( &mx, &my ); + mouse_get_delta( &mx, &my, &mz ); MouseDX = mx; MouseDY = my; MouseButtons = mouse_get_btns();