X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Fwin32con%2Fwin32_driver.c;h=67b816259c917c150fb9a6b46c234220357c7552;hp=45aadf2f596a3845a79cb99824e40780b903c5fc;hb=59a39f19a7f7feeff4af587a289a2ad7966947fe;hpb=87c2c84cbd2332d6d94b12a1dcaf12ad1a51a938 diff --git a/ncurses/win32con/win32_driver.c b/ncurses/win32con/win32_driver.c index 45aadf2f..67b81625 100644 --- a/ncurses/win32con/win32_driver.c +++ b/ncurses/win32con/win32_driver.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright 2018,2020 Thomas E. Dickey * + * Copyright 2018-2020,2023 Thomas E. Dickey * * Copyright 2008-2016,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * @@ -48,7 +48,7 @@ #define CUR TerminalType(my_term). -MODULE_ID("$Id: win32_driver.c,v 1.2 2020/11/21 23:35:56 tom Exp $") +MODULE_ID("$Id: win32_driver.c,v 1.3 2023/03/25 14:08:36 tom Exp $") #define WINMAGIC NCDRV_MAGIC(NCDRV_WINCONSOLE) #define EXP_OPTIMIZE 0 @@ -924,11 +924,14 @@ wcon_initmouse(TERMINAL_CONTROL_BLOCK * TCB) { SCREEN *sp; + T((T_CALLED("win32con::wcon_initmouse(%p)"), TCB)); + if (validateConsoleHandle()) { SetSP(); sp->_mouse_type = M_TERM_DRIVER; } + returnVoid; } static int @@ -939,6 +942,7 @@ wcon_testmouse(TERMINAL_CONTROL_BLOCK * TCB, int rc = 0; SCREEN *sp; + T((T_CALLED("win32con::wcon_testmouse(%p)"), TCB)); if (validateConsoleHandle()) { SetSP(); @@ -953,7 +957,7 @@ wcon_testmouse(TERMINAL_CONTROL_BLOCK * TCB, } } - return rc; + returnCode(rc); } static int