aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mousew16.c2
-rw-r--r--mousew16.lnk6
2 files changed, 6 insertions, 2 deletions
diff --git a/mousew16.c b/mousew16.c
index 2d539e3..85ffac4 100644
--- a/mousew16.c
+++ b/mousew16.c
@@ -288,7 +288,7 @@ static void send_wheel_movement(int8_t z, BOOL horizontal)
#endif /* USE_WHEEL */
/** Called by the int33 mouse driver. */
-static void FAR int33_mouse_callback(uint16_t events, uint16_t buttons, int16_t x, int16_t y, int16_t delta_x, int16_t delta_y)
+void FAR int33_mouse_callback(uint16_t events, uint16_t buttons, int16_t x, int16_t y, int16_t delta_x, int16_t delta_y)
#pragma aux (INT33_CB) int33_mouse_callback
{
int status = 0;
diff --git a/mousew16.lnk b/mousew16.lnk
index b8a068c..ad6ac85 100644
--- a/mousew16.lnk
+++ b/mousew16.lnk
@@ -1,9 +1,13 @@
system windows_dll
+
option map=mousew16.map
option modname=MOUSE # This is necessary; USER.EXE imports mouse functions using this module name
option description 'VBMouse int33 absolute mouse driver'
-segment CALLBACKS fixed shared # We need a non-moveable segment to store our callback routines
+option heapsize=128 # We don't need localheap but windows_dll sets 1K by default
+
+segment CALLBACKS fixed shared # We need a non-moveable segment to store our callback routines
+segment CLASS DATA fixed shared # Likewise fix the data segment, too cumbersome if not
export Inquire.1
export Enable.2