TIP: Click on subject to list as thread! ANSI
echo: golded
to: MICHAEL DUKELSKY
from: BEN RITCHEY
date: 2018-07-15 02:27:00
subject: Re: bug

*
* On Sunday  15 Jul 2018  196 at 09:25 AM,
*  Michael Dukelsky said to Ben Ritchey,
*   about bug ...
*

Here's the patch I came up with for geinit.cpp (it does work!) that handles 
smaller screens (30 rows or less).

File: geinit.pat

=== Cut ===
diff --git a/geinit_1.cpp b/geinit.cpp
index 58f71a4..446fc8f 100644
-+- a/geinit_1.cpp
+++ b/geinit.cpp
@@ -1,4 +1,3 @@
-
 //  ------------------------------------------------------------------
 //  GoldED+
 //  Copyright (C) 1990-1999 Odinn Sorensen
@@ -399,7 +398,7 @@ static void w_brag() {
   wprints(4, 46-strlen(__gver_longpid__)-1-strlen(__gver_ver__), C_BRAGW, 
__gver_longpid__);
   wprints(4, 46-strlen(__gver_ver__), C_BRAGW, __gver_ver__);

-  wprints(5, 12, C_BRAGW, "http://golded-plus.sourceforge.net");
+  wprints(5, 12, C_BRAGW, "https://github.com/golded-plus");

   wprints(0, 48, C_BRAGW, " GoldED+  Message Editor ");
   gsprintf(PRINTF_DECLARE_BUFFER(buf), " Copyright (C) 1990-%s 
",__gver_date__+7);
@@ -415,28 +414,35 @@ static void w_brag() {
   gsprintf(PRINTF_DECLARE_BUFFER(buf), "---*-*-*** %s ***-*-*---", 
__gver_releasename__);
   wcenters(8, C_BRAGW, buf);

-  wcenters(10, C_BRAGW, "This program is free software; it is licensed under 
the");
-  wcenters(11, C_BRAGW, "GNU General Public License version 2. You're welcome 
to");
-  wcenters(12, C_BRAGW, "redistribute the program or any parts hereof under 
cer-");
-  wcenters(13, C_BRAGW, "tain conditions. See the LICENSE.TXT for more 
details.");
-
-  wcenters(MAXROW-10, C_BRAGW, "This executable is distributed by");
-  if (*__gver_vendor_fido__)
+  if (MAXROW > 30)
   {
-    gsprintf(PRINTF_DECLARE_BUFFER(buf), "%s (Fido: %s) - ",
-      __gver_vendor_name__, __gver_vendor_fido__, __gver_vendor_email__);
+    wcenters(10, C_BRAGW, "This program is free software; it is licensed under
 
the");
+    wcenters(11, C_BRAGW, "GNU General Public License version 2. You're 
welcome to");
+    wcenters(12, C_BRAGW, "redistribute the program or any parts hereof under 
cer-");
+    wcenters(13, C_BRAGW, "tain conditions. See the LICENSE.TXT for more 
details.");
   }
-  else
+
+  wcenters(MAXROW-16, C_BRAGW, "This executable is distributed by");
+
+  gsprintf(PRINTF_DECLARE_BUFFER(buf), "%s", __gver_vendor_name__);
+  wcenters(MAXROW-14, C_BRAGW, buf);
+
+  if (*__gver_vendor_fido__)
   {
-    gsprintf(PRINTF_DECLARE_BUFFER(buf), "%s ",
-      __gver_vendor_name__, __gver_vendor_email__);
+    gsprintf(PRINTF_DECLARE_BUFFER(buf), " FIDONet: %s ", 
__gver_vendor_fido__);
+    wcenters(MAXROW-13, C_BRAGW, buf);
   }

-  wcenters(MAXROW-9, C_BRAGW, buf);
+  gsprintf(PRINTF_DECLARE_BUFFER(buf), "%s", __gver_vendor_email__);
+  wcenters(MAXROW-12, C_BRAGW, buf);
+
   gsprintf(PRINTF_DECLARE_BUFFER(buf), "Compiled on %s %s", __gver_date__, 
__gver_time__);
-  wcenters(MAXROW-8, C_BRAGW, buf);
-}
+  wcenters(MAXROW-10, C_BRAGW, buf);
+
+// Wait after startup screen              -=:{ ***** Testing only ***** }:=-
+//  waitkey();

+}

 //  ------------------------------------------------------------------

=== Cut ===

 .-- Keep the faith, -------------------------------------------------.
 |                                                                    |
 |    Ben  aka cMech  Web: http|ftp|binkp|telnet://cmech.dynip.com    |
 |                  Email: fido4cmech(at)lusfiber.net                 |
 |              Home page: http://cmech.dynip.com/homepage/           |
 |                                                                    |
 `-------- WildCat! BBS  24/7  +1-337-984-4794  any BAUD 8,N,1 -------'

... Marriage is an expensive way of getting your laundry done free.
--- GoldED+/W32-MSVC v1.1.5-g20180714 ... via Mystic BBS!
* Origin: FIDONet - The Positronium Remote (1:393/68.8)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.