diff options
author | Javier <dev.git@javispedro.com> | 2022-04-02 03:57:55 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2022-04-02 03:57:55 +0200 |
commit | aade1f47d34594216500f26ed0d21b23a1d1f4f1 (patch) | |
tree | b8cf37b6fa99dd77104662da206060a1fd622a5b /dostsr.h | |
parent | 3e39df4a4185f947d1af564aca265c0f6b51c9ec (diff) | |
download | vbados-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.h | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -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 |