diff options
author | Javier <dev.git@javispedro.com> | 2022-04-08 03:07:53 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2022-04-08 03:07:53 +0200 |
commit | 0f6414cb3f8afa2012f6567e2fbfe844b8bd4b78 (patch) | |
tree | 4e96753e0af164b97a38cc5667100144501e2c2e /dosmain.c | |
parent | 98a343355c3459b892792585788069bac3bc40e7 (diff) | |
download | vbados-0f6414cb3f8afa2012f6567e2fbfe844b8bd4b78.tar.gz vbados-0f6414cb3f8afa2012f6567e2fbfe844b8bd4b78.zip |
snap mouse position to character grid on text modes
Diffstat (limited to 'dosmain.c')
-rw-r--r-- | dosmain.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"); |