Skip to content
Snippets Groups Projects
Commit 41abeed6 authored by Eric Oulashin's avatar Eric Oulashin Committed by Rob Swindell
Browse files

DDMsgReader: Fix for saving an ANSI message to the local BBS PC (undeclared...

DDMsgReader: Fix for saving an ANSI message to the local BBS PC (undeclared variable error). Found by Amessyroom
parent d232ecdc
Branches
Tags
1 merge request!456DDMsgReader: Fix for saving an ANSI message to the local BBS PC (undeclared variable error). Found by Amessyroom
......@@ -161,6 +161,8 @@
* to save messages to. Can be empty, to use a full path inputted by the user.
* 2024-08-12 Eric Oulashin Version 1.95g
* Updates to help with the newscan issues placing the user at the first message, etc.
* 2024-09-03 Eric Oulashin Version 1.95h
* Fix for saving an ANSI message to the local BBS PC
*/
 
"use strict";
......@@ -276,8 +278,8 @@ var hexdump = load('hexdump_lib.js');
*/
 
// Reader version information
var READER_VERSION = "1.95g";
var READER_DATE = "2024-08-12";
var READER_VERSION = "1.95h";
var READER_DATE = "2024-09-03";
 
// Keyboard key codes for displaying on the screen
var UP_ARROW = ascii(24);
......@@ -17059,7 +17061,7 @@ function DigDistMsgReader_SaveMsgToFile(pMsgHdr, pFilename, pPromptPos)
//var graphic = new Graphic(this.msgAreaWidth, this.msgAreaHeight);
// To help ensure ANSI messages look good, it seems the Graphic object should have
// its with later set to 1 less than the width used to create it.
var graphicWidth = (msgAreaWidth < console.screen_columns ? msgAreaWidth+1 : console.screen_columns);
var graphicWidth = (this.msgAreaWidth < console.screen_columns ? this.msgAreaWidth+1 : console.screen_columns);
var graphic = new Graphic(graphicWidth, this.msgAreaHeight);
graphic.auto_extend = true;
graphic.ANSI = ansiterm.expand_ctrl_a(msgBody);
......
......@@ -5,7 +5,7 @@
// If you have DDMsgReader in a directory other than xtrn/DDMsgReader, then the changes to
// DDMsgReader.cfg will be saved in that directory (assuming you're running ddmr_cfg.js from
// that same directory).
// Currently for DDMsgReader 1.95g.
// Currently for DDMsgReader 1.95h.
//
// If you're running DDMsgReader from xtrn/DDMsgReader (the standard location) and you want
// to save the configuration file there (rather than sbbs/mods), you can use one of the
......@@ -18,7 +18,7 @@ require("sbbsdefs.js", "P_NONE");
require("uifcdefs.js", "UIFC_INMSG");
if (!uifc.init("DigDist. Message Reader 1.95g Configurator"))
if (!uifc.init("DigDist. Message Reader 1.95h Configurator"))
{
print("Failed to initialize uifc");
exit(1);
......
Digital Distortion Message Reader
Version 1.95g
Release date: 2024-08-12
Version 1.95h
Release date: 2024-09-03
by
......
......@@ -5,6 +5,7 @@ Revision History (change log)
=============================
Version Date Description
------- ---- -----------
1.95h 2024-09-03 Fix for saving an ANSI message to the local BBS PC
1.95g 2024-08-12 Updates to help with the newscan issues placing the user
at the first message, etc.
1.95f 2024-08-08 New config option: msgSaveDir, which specifies the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment