Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -166,8 +166,8 @@ if (system.version_num < 31500) ...@@ -166,8 +166,8 @@ if (system.version_num < 31500)
} }
   
// Reader version information // Reader version information
var READER_VERSION = "1.05 Beta 6"; var READER_VERSION = "1.05 Beta 7";
var READER_DATE = "2015-11-25"; var READER_DATE = "2015-11-26";
   
// Keyboard key codes for displaying on the screen // Keyboard key codes for displaying on the screen
var UP_ARROW = ascii(24); var UP_ARROW = ascii(24);
...@@ -10840,6 +10840,7 @@ function DigDistMsgReader_GetMsgInfoForEnhancedReader(pMsgHdr, pWordWrap, pDeter ...@@ -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}); retObj.displayFrameScrollbar = new ScrollBar(retObj.displayFrame, {bg: BG_BLACK, fg: LIGHTGRAY, orientation: "vertical", autohide: false});
} }
} }
// Cleanup: Remove the temporary directory
deltree(readerTmpOutputDir); deltree(readerTmpOutputDir);
} }
} }
...@@ -12649,8 +12650,12 @@ function scrollFrame(pFrame, pScrollbar, pTopLineIdx, pTxtAttrib, pWriteTxtLines ...@@ -12649,8 +12650,12 @@ function scrollFrame(pFrame, pScrollbar, pTopLineIdx, pTxtAttrib, pWriteTxtLines
   
if (cycleFrame) if (cycleFrame)
{ {
//if (pFrame.cycle() && (pScrollbar != null)) // Invalidate the frame to force it to redraw everything, as a
// pScrollbar.cycle(); // 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) if (pScrollbar != null)
pScrollbar.cycle(); pScrollbar.cycle();
pFrame.cycle(); pFrame.cycle();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment