aboutsummaryrefslogtreecommitdiff
path: root/dostsr.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-04-02 03:57:55 +0200
committerJavier <dev.git@javispedro.com>2022-04-02 03:57:55 +0200
commitaade1f47d34594216500f26ed0d21b23a1d1f4f1 (patch)
treeb8cf37b6fa99dd77104662da206060a1fd622a5b /dostsr.h
parent3e39df4a4185f947d1af564aca265c0f6b51c9ec (diff)
downloadvbados-aade1f47d34594216500f26ed0d21b23a1d1f4f1.tar.gz
vbados-aade1f47d34594216500f26ed0d21b23a1d1f4f1.zip
complete support for the win386 hooks in dos mouse side, and further simplify w16 driver
Diffstat (limited to 'dostsr.h')
-rw-r--r--dostsr.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/dostsr.h b/dostsr.h
index d7c8183..268b2aa 100644
--- a/dostsr.h
+++ b/dostsr.h
@@ -24,16 +24,19 @@
#include <stdint.h>
#include "vbox.h"
+#include "int2fwin.h"
#define USE_VIRTUALBOX 1
#define USE_INT2F 1
-#define TRACE_EVENT 1
+#define TRACE_EVENTS 0
#define NUM_BUTTONS 3
#define GRAPHIC_CURSOR_WIDTH 16
#define GRAPHIC_CURSOR_HEIGHT 16
+#define VERSION_MAJOR 0
+#define VERSION_MINOR 3
#define REPORTED_VERSION_MAJOR 8
#define REPORTED_VERSION_MINOR 0x20
@@ -129,6 +132,15 @@ typedef struct tsrdata {
/** Events for which we should call the event handler. */
uint16_t event_mask;
+#if USE_INT2F
+ /** Information that we pass to Windows 386 on startup. */
+ win386_startup_info w386_startup;
+ win386_instance_item w386_instance[2];
+ /** Whether Windows 386 is rendering the cursor for us,
+ * and therefore we should hide our own. */
+ bool w386cursor : 1;
+#endif
+
#if USE_VIRTUALBOX
/** VirtualBox is available. */
bool vbavail : 1;
@@ -151,4 +163,10 @@ extern LPTSRDATA __far get_tsr_data(bool installed);
extern int resident_end;
+/** This is not just data, but the entire segment. */
+static inline unsigned get_resident_size(void)
+{
+ return FP_OFF(&resident_end);
+}
+
#endif