Commit cf150f4f authored by nightfox's avatar nightfox
Browse files

Implemented a workaround with the Frame object when displaying ANSI messages...

Implemented a workaround with the Frame object when displaying ANSI messages to get the background to refresh/redraw better so that text doesn't get left over when scrolling the message up & down
parent f0c0b392
......@@ -166,8 +166,8 @@ if (system.version_num < 31500)
}
 
// Reader version information
var READER_VERSION = "1.05 Beta 6";
var READER_DATE = "2015-11-25";
var READER_VERSION = "1.05 Beta 7";
var READER_DATE = "2015-11-26";
 
// Keyboard key codes for displaying on the screen
var UP_ARROW = ascii(24);
......@@ -10840,6 +10840,7 @@ function DigDistMsgReader_GetMsgInfoForEnhancedReader(pMsgHdr, pWordWrap, pDeter
retObj.displayFrameScrollbar = new ScrollBar(retObj.displayFrame, {bg: BG_BLACK, fg: LIGHTGRAY, orientation: "vertical", autohide: false});
}
}
// Cleanup: Remove the temporary directory
deltree(readerTmpOutputDir);
}
}
......@@ -12649,8 +12650,12 @@ function scrollFrame(pFrame, pScrollbar, pTopLineIdx, pTxtAttrib, pWriteTxtLines
 
if (cycleFrame)
{
//if (pFrame.cycle() && (pScrollbar != null))
// pScrollbar.cycle();
// Invalidate the frame to force it to redraw everything, as a
// workaround to clear the background before writing again
// TODO: I might want to remove this invalidate() later when
// Frame is fixed to redraw better on scrolling.
pFrame.invalidate();
// Cycle the scrollbar & frame to get them to scroll
if (pScrollbar != null)
pScrollbar.cycle();
pFrame.cycle();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment