Changes between 0.8 and 0.9: ---------------------------- * fix for a buffer overflow in the line rendering * fixed resizing in the ncurses and slang drivers * aspect ratio and finer zoom support in cacaview * minor compilation fixes Changes between 0.7 and 0.8: ---------------------------- * window resizing support * native Win32 port * autorepeat emulation in the ncurses and slang drivers * support for more keycodes in the ncurses and slang drivers * cacaplas, a plasma animation example * cacamoir, a moiré circles animation example * MSVC project file Changes between 0.6 and 0.7: ---------------------------- * many bugfixes in the event handling * cacaball, a metaball animation example Changes between 0.5 and 0.6: ---------------------------- * 30% speed increase in the bitmap rendering routine * mouse support and various speed optimisations in the X11 driver * X11 is now the preferred driver * improved documentation * minor bugfixes Package change: use (n)curses by default instead of slang.
46 lines
1.2 KiB
Text
46 lines
1.2 KiB
Text
$NetBSD: patch-aa,v 1.1 2004/08/15 12:40:07 wiz Exp $
|
|
|
|
--- src/caca.c.orig 2004-02-02 04:00:19.000000000 +0100
|
|
+++ src/caca.c
|
|
@@ -70,7 +70,8 @@ static void caca_init_terminal(void);
|
|
enum caca_driver _caca_driver;
|
|
#endif
|
|
|
|
-#if defined(USE_NCURSES)
|
|
+/* #define MOUSE_SUPPORT 1 */
|
|
+#if defined(USE_NCURSES) && defined(MOUSE_SUPPORT)
|
|
static mmask_t oldmask;
|
|
#endif
|
|
|
|
@@ -89,7 +90,7 @@ static CONSOLE_CURSOR_INFO cci;
|
|
*/
|
|
int caca_init(void)
|
|
{
|
|
-#if defined(USE_NCURSES)
|
|
+#if defined(USE_NCURSES) && defined(MOUSE_SUPPORT)
|
|
mmask_t newmask;
|
|
#endif
|
|
|
|
@@ -147,10 +148,12 @@ int caca_init(void)
|
|
nodelay(stdscr, TRUE);
|
|
curs_set(0);
|
|
|
|
+#if defined(MOUSE_SUPPORT)
|
|
/* Activate mouse */
|
|
newmask = REPORT_MOUSE_POSITION | ALL_MOUSE_EVENTS;
|
|
mousemask(newmask, &oldmask);
|
|
mouseinterval(-1); /* No click emulation */
|
|
+#endif
|
|
|
|
/* Set the escape delay to a ridiculously low value */
|
|
ESCDELAY = 10;
|
|
@@ -385,7 +388,9 @@ void caca_end(void)
|
|
#if defined(USE_NCURSES)
|
|
if(_caca_driver == CACA_DRIVER_NCURSES)
|
|
{
|
|
+#if defined(MOUSE_SUPPORT)
|
|
mousemask(oldmask, NULL);
|
|
+#endif
|
|
curs_set(1);
|
|
noraw();
|
|
endwin();
|