From b25da44593d73374cf05db053aab28d8b66df544 Mon Sep 17 00:00:00 2001
From: mcmlxxix <>
Date: Mon, 17 Oct 2011 18:18:46 +0000
Subject: [PATCH] support "oversized" BIN and ANS files (for scrolling graphics
 and displaying large-scale pictures in a window)

---
 exec/load/frame.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/exec/load/frame.js b/exec/load/frame.js
index 309eed3e2f..345509ebe2 100644
--- a/exec/load/frame.js
+++ b/exec/load/frame.js
@@ -570,6 +570,8 @@ function Frame(x,y,width,height,attr,frame) {
 					/* set character and attribute */
 					var ch = line[0];
 					line = line.substr(1);
+					if(!properties.data[x])
+						properties.data[x]=[];
 					properties.data[x][y]=new Char(ch,attr,this.id);
 					x++;
 				}
@@ -592,6 +594,8 @@ function Frame(x,y,width,height,attr,frame) {
 						return(false);
 					c.attr = f.readBin(1);
 					c.id = this.id;
+					if(!properties.data[x])
+						properties.data[x]=[];
 					properties.data[x][y] = c;
 				}
 			}
-- 
GitLab