Skip to content
Snippets Groups Projects
Commit 01d9acea authored by rswindell's avatar rswindell
Browse files

Performance optimization: avoid use of Frame.clear(), use Frame.home()

and Frame.cleartoeol()'s instead.
parent 3f47dd39
No related branches found
No related tags found
No related merge requests found
......@@ -335,11 +335,15 @@ function CollectionLister(dir, parent_frame) {
function display_collection_info(sauce, fn) {
frames.info.clear();
frames.info.putmsg('Author: ' + (sauce.author.length ? sauce.author : 'Unknown') + '\r\n');
frames.info.putmsg('Group: ' + (sauce.group.length ? sauce.group : 'Unknown') + '\r\n');
frames.info.putmsg('Avatars: ' + Math.floor(sauce.rows / avatar_lib.defs.height) + '\r\n');
frames.info.putmsg('ICE Colors: ' + (sauce.ice_color ? 'Yes' : 'No') + '\r\n');
function crlf() {
frames.info.cleartoeol();
frames.info.crlf();
}
frames.info.home();
frames.info.putmsg('Author: ' + (sauce.author.length ? sauce.author : 'Unknown')); crlf();
frames.info.putmsg('Group: ' + (sauce.group.length ? sauce.group : 'Unknown')); crlf();
frames.info.putmsg('Avatars: ' + Math.floor(sauce.rows / avatar_lib.defs.height)); crlf();
frames.info.putmsg('ICE Colors: ' + (sauce.ice_color ? 'Yes' : 'No')); crlf();
frames.info.putmsg('Updated: ' + sauce.date.toLocaleDateString());
const f = new File(fn);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment