From dca04a057d0e39c0f1553d100ec6eba51d6fbd86 Mon Sep 17 00:00:00 2001 From: wiz Date: Sun, 15 Aug 2004 12:40:07 +0000 Subject: Update to 0.9: 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Package change: use (n)curses by default instead of slang. --- graphics/libcaca/patches/patch-aa | 46 +++++++++++++++++++++++++++++++++++++++ graphics/libcaca/patches/patch-ab | 20 +++++++++++++++++ graphics/libcaca/patches/patch-ac | 13 +++++++++++ 3 files changed, 79 insertions(+) create mode 100644 graphics/libcaca/patches/patch-aa create mode 100644 graphics/libcaca/patches/patch-ab create mode 100644 graphics/libcaca/patches/patch-ac (limited to 'graphics/libcaca/patches') diff --git a/graphics/libcaca/patches/patch-aa b/graphics/libcaca/patches/patch-aa new file mode 100644 index 00000000000..f6485aa5fe8 --- /dev/null +++ b/graphics/libcaca/patches/patch-aa @@ -0,0 +1,46 @@ +$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(); diff --git a/graphics/libcaca/patches/patch-ab b/graphics/libcaca/patches/patch-ab new file mode 100644 index 00000000000..4e3b18ef70d --- /dev/null +++ b/graphics/libcaca/patches/patch-ab @@ -0,0 +1,20 @@ +$NetBSD: patch-ab,v 1.1 2004/08/15 12:40:07 wiz Exp $ + +--- src/event.c.orig 2004-02-02 04:00:19.000000000 +0100 ++++ src/event.c +@@ -387,6 +387,7 @@ static unsigned int _lowlevel_event(void + return CACA_EVENT_KEY_PRESS | intkey; + } + ++#if defined(MOUSE_SUPPORT) + if(intkey == KEY_MOUSE) + { + MEVENT mevent; +@@ -515,6 +516,7 @@ static unsigned int _lowlevel_event(void + + return CACA_EVENT_MOUSE_MOTION | (mouse_x << 12) | mouse_y; + } ++#endif + + event = CACA_EVENT_KEY_PRESS; + diff --git a/graphics/libcaca/patches/patch-ac b/graphics/libcaca/patches/patch-ac new file mode 100644 index 00000000000..f5ab3a10f28 --- /dev/null +++ b/graphics/libcaca/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1 2004/08/15 12:40:07 wiz Exp $ + +--- src/graphics.c.orig 2004-02-02 04:00:19.000000000 +0100 ++++ src/graphics.c +@@ -1309,7 +1309,7 @@ static void caca_handle_resize(void) + { + _caca_width = size.ws_col; + _caca_height = size.ws_row; +- resize_term(_caca_height, _caca_width); ++ resizeterm(_caca_height, _caca_width); + wrefresh(curscr); + } + } -- cgit v1.2.3