xboard-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[XBoard-devel] Add color lines winboard for ics if zippy used


From: Daniel Mehrmann
Subject: [XBoard-devel] Add color lines winboard for ics if zippy used
Date: Wed, 11 Feb 2004 15:56:51 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7a) Gecko/20040124

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

i add a small patch for winboard. If we useing zippy with a ics we are
don't saw color lines if active. I activate this feature for zippy now
too. I've tested this patch with icc and it looks good for me. But we
should test this more with any possible on a ics.

The xboard should be okay. But never tested so far. I will do this the
next days.
Allso i wanna add mouse wheel support for xboard. We useing the Xfree >=
~ 4 support for x-Windows (ZAxisMapping over button 4 and 5).

My plan is to bring winboard and xboard into more sync.
Xhistory/Whistory is allso a importent thing at this way.

- --- backend.c 2003-12-26 00:45:37.000000000 +0100
+++ backend.new 2004-02-11 15:36:21.312500000 +0100
@@ -1462,7 +1462,12 @@
~     int i, oldi;
~     int buf_len;
~     int next_out;
- -    int tkind;
+    int tkind;
+#ifdef WIN32
+       /* For zippy color lines of winboard
+        * cleanup for gcc compiler */
+       int backup;
+#endif
~     char *p;

~ #ifdef WIN32
@@ -1719,15 +1724,23 @@

~           oldi = i;
~           if (appData.zippyTalk || appData.zippyPlay) {
- -#if ZIPPY
+#if ZIPPY
+       #ifdef WIN32
+               /* Backup adress for color zippy lines */
+               backup = i;
+               if (first.initDone && loggedOn == TRUE)
+                       if (ZippyControl(buf, &backup) || ZippyConverse(buf, 
&backup) ||
+                               (appData.zippyPlay && ZippyMatch(buf, 
&backup)));
+       #else
~               if (ZippyControl(buf, &i) ||
~                   ZippyConverse(buf, &i) ||
~                   (appData.zippyPlay && ZippyMatch(buf, &i))) {
~                   loggedOn = TRUE;
~                   continue;
- -             }
+               }
+       #endif
~ #endif
- -         } else {
+           }
~               if (/* Don't color "message" or "messages" output */
~                   (tkind = 5, looking_at(buf, &i, "*. * (*:*): ")) ||
~                   looking_at(buf, &i, "*. * at *:*: ") ||
@@ -1883,7 +1896,6 @@
~                       curColor = ColorSeek;
~                   }
~                   continue;
- -             }
~           }

~           if (looking_at(buf, &i, "\\   ")) {



- --
Daniel Mehrmann

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFAKkKzPt1V5Pj1nvYRAqPdAKCQYxC111jpio06erQOWMmFSG0H9ACfX0Ty
ezTIoNucEBApBAzhK52TQZ4=
=J49Q
-----END PGP SIGNATURE-----

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]