sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master grimoire by Vlad Glagolev (a6a2d05f794a8e5958503ea8dc00ec6c16c4d786)
- From: Vlad Glagolev <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (a6a2d05f794a8e5958503ea8dc00ec6c16c4d786)
- Date: Sat, 25 Feb 2017 21:49:10 +0000
GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:
utils/ncmatrix/HISTORY | 3 ++-
utils/ncmatrix/PRE_BUILD | 2 ++
utils/ncmatrix/color.patch | 14 ++++++++++++++
3 files changed, 18 insertions(+), 1 deletion(-)
New commits:
commit a6a2d05f794a8e5958503ea8dc00ec6c16c4d786
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>
ncmatrix: prevent from color corruption on window resize
diff --git a/utils/ncmatrix/HISTORY b/utils/ncmatrix/HISTORY
index 284f0f6..7d8dbe2 100644
--- a/utils/ncmatrix/HISTORY
+++ b/utils/ncmatrix/HISTORY
@@ -1,2 +1,3 @@
2017-02-25 Vlad Glagolev <stealth AT sourcemage.org>
- * DETAILS, DEPENDS, PRE_BUILD, CONFLICTS: created spell, version 1.0
+ * DETAILS, DEPENDS, PRE_BUILD, CONFLICTS, color.patch: created spell,
+ version 1.0
diff --git a/utils/ncmatrix/PRE_BUILD b/utils/ncmatrix/PRE_BUILD
index 3ad06b3..71032b5 100755
--- a/utils/ncmatrix/PRE_BUILD
+++ b/utils/ncmatrix/PRE_BUILD
@@ -1,6 +1,8 @@
default_pre_build &&
cd "${SOURCE_DIRECTORY}" &&
+patch -p0 < "${SPELL_DIRECTORY}/color.patch" &&
+
mv configure.in configure.ac &&
sed -i "s:cmatrix:ncmatrix:g" Makefile.am &&
diff --git a/utils/ncmatrix/color.patch b/utils/ncmatrix/color.patch
new file mode 100644
index 0000000..7af5f8f
--- /dev/null
+++ b/utils/ncmatrix/color.patch
@@ -0,0 +1,14 @@
+--- ncmatrix.c.orig 2005-05-21 09:39:28.000000000 -0400
++++ ncmatrix.c 2017-02-25 15:48:59.130175208 -0500
+@@ -285,8 +285,10 @@
+
+ /* Make the matrix */
+ for (i = 0; i <= LINES; i++)
+- for (j = 0; j <= COLS - 1; j += 2)
++ for (j = 0; j <= COLS - 1; j += 2) {
+ matrix[i][j].val = -1;
++ matrix[i][j].color = 0;
++ }
+
+ for (j = 0; j <= COLS - 1; j += 2)
+ {
- [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (a6a2d05f794a8e5958503ea8dc00ec6c16c4d786), Vlad Glagolev, 02/25/2017
Archive powered by MHonArc 2.6.24.