aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2026-08-30 23:02:11 +0200
committerJavier <dev.git@javispedro.com>2026-08-30 23:02:11 +0200
commitd27caefd5fb1465c6641a4555f66d2d1b64ff804 (patch)
tree5d7e1ad7280550ddf88eda4425a650b99ad3cda1
parent8ed9a1bb205faf76f6487a2d8a94f3cf2fb721c9 (diff)
downloadvbados-d27caefd5fb1465c6641a4555f66d2d1b64ff804.tar.gz
vbados-d27caefd5fb1465c6641a4555f66d2d1b64ff804.zip
fix out of memory error in windows 3.0 by fixing data segment
-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