rem: if(xpos+width > console.screen_columns || ypos+height > console.screen_rows) { 
add: if(xpos+width-1 > console.screen_columns || ypos+height-1 > console.screen_rows) { 
context: function Graphic_draw(xpos,ypos,width,height,xoff,yoff){	var x;	var y;	if(xpos==undefined)		xpos=1;	if(ypos==undefined)		ypos=1;	if(width==undefined)		width=this.width;	if(height==undefined)		height=this.height;	if(xoff==undefined)		xoff=0;	if(yoff==undefined)		yoff=0;	if(xoff+width > this.width || yoff+height > this.height) {		alert("Attempt to draw from outside of graphic");		return(false)	}	if(xpos+width > console.screen_columns || ypos+height > console.screen_rows) {		alert("Attempt to draw outside of screen");		return(false);	}	for(y=0;y<height; y++) {		gotoxy(xpos,ypos+y);		for(x=0; x<width; x++) {			// Do not draw to the bottom left corner of the screen-would scroll			if(xpos+x != console.screen_columns					|| ypos+y != console.screen_rows) {				console.attributes=this.data[x+xoff][y+yoff].attr;				console.write(this.data[x+xoff][y+yoff].char;			}		}	}	return(true);}
meta: 9592	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9592/b282828ab8ed00f188c97335a0a67e4b0988dd8a/graphic.js/buggy/load/graphic.js