From 101a8685268a188d1bb3f86146f61a090d8ea888 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 20 Nov 2022 18:07:04 +0100 Subject: bumped required PDCursesMod version to v4.3.4 or later * allows us to get rid of some workarounds * the workarounds themselves required relatively recent PDCursesMod versions, so we can just as well bump the version yet another time. We are probably the only ones building it (via Github actions) anyway. * With v4.3.4 you should be able to link dynamically, but we are still linking statically for nightly builds to keep binary sizes small. Unfortunately, the glib builds shipping with MinGW still have dynamically linked helper executables. --- src/interface-curses/interface.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/interface-curses/interface.c') diff --git a/src/interface-curses/interface.c b/src/interface-curses/interface.c index 5503d11..a6e285c 100644 --- a/src/interface-curses/interface.c +++ b/src/interface-curses/interface.c @@ -366,10 +366,6 @@ teco_interface_init(void) { for (guint i = 0; i < G_N_ELEMENTS(teco_interface.color_table); i++) teco_interface.color_table[i] = -1; -#if defined(__PDCURSESMOD__) && defined(PDCURSES_GUI) - /* NOTE: Fixed and no longer necessary in PDCursesMod v4.3.3. */ - teco_interface.color_table[8] = 0x808080; -#endif for (guint i = 0; i < G_N_ELEMENTS(teco_interface.orig_color_table); i++) teco_interface.orig_color_table[i].r = -1; @@ -1475,18 +1471,6 @@ teco_interface_is_interrupted(void) if (teco_interface.cmdline_window) { /* interactive mode */ gint key; - /* - * This is a workaround for PDCursesMod/WinGUI that will - * likely be fixed in versions newer than v4.3.3. - * See also https://github.com/Bill-Gray/PDCursesMod/issues/197 - */ -#if defined(HAVE_PDC_CS) && PDC_BUILD <= 4303 - extern CRITICAL_SECTION PDC_cs; - LeaveCriticalSection(&PDC_cs); - SwitchToThread(); - EnterCriticalSection(&PDC_cs); -#endif - /* * NOTE: getch() is configured to be nonblocking. */ -- cgit v1.2.3