aboutsummaryrefslogtreecommitdiff
path: root/dosmain.c
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-04-08 03:07:53 +0200
committerJavier <dev.git@javispedro.com>2022-04-08 03:07:53 +0200
commit0f6414cb3f8afa2012f6567e2fbfe844b8bd4b78 (patch)
tree4e96753e0af164b97a38cc5667100144501e2c2e /dosmain.c
parent98a343355c3459b892792585788069bac3bc40e7 (diff)
downloadvbados-0f6414cb3f8afa2012f6567e2fbfe844b8bd4b78.tar.gz
vbados-0f6414cb3f8afa2012f6567e2fbfe844b8bd4b78.zip
snap mouse position to character grid on text modes
Diffstat (limited to 'dosmain.c')
-rw-r--r--dosmain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dosmain.c b/dosmain.c
index 5e789a9..18120a8 100644
--- a/dosmain.c
+++ b/dosmain.c
@@ -383,7 +383,7 @@ static __declspec(aborts) int install_driver(LPTSRDATA data, bool high)
static bool check_if_driver_uninstallable(LPTSRDATA data)
{
void (__interrupt __far *cur_int33_handler)() = _dos_getvect(0x33);
- void (__interrupt __far *our_int33_handler)() = MK_FP(FP_SEG(data), FP_OFF(int33_isr));
+ void (__interrupt __far *our_int33_handler)() = data:>int33_isr;
if (cur_int33_handler != our_int33_handler) {
fprintf(stderr, "INT33 has been hooked by someone else, removing anyway\n");
@@ -393,7 +393,7 @@ static bool check_if_driver_uninstallable(LPTSRDATA data)
#if USE_WIN386
{
void (__interrupt __far *cur_int2f_handler)() = _dos_getvect(0x2f);
- void (__interrupt __far *our_int2f_handler)() = MK_FP(FP_SEG(data), FP_OFF(int2f_isr));
+ void (__interrupt __far *our_int2f_handler)() = data:>int2f_isr;
if (cur_int2f_handler != our_int2f_handler) {
fprintf(stderr, "INT2F has been hooked by someone else, removing anyway\n");