Skip to content
This repository was archived by the owner on Oct 8, 2022. It is now read-only.

Commit 01a9bb7

Browse files
committed
fix bug when coloring tile outside where x or y is less than 0
1 parent f04e55c commit 01a9bb7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/scone/window.d

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ struct Window
137137
// If only colors were provided, just update the colors
138138
if(!outputCells.length)
139139
{
140+
if(y < 0 || x < 0)
141+
{
142+
return;
143+
}
144+
140145
if(foreground.isActualColor)
141146
{
142147
cells[y][x].foreground = foreground;

0 commit comments

Comments
 (0)