fix a bug with map api

This commit is contained in:
Eoghanmc22 2021-08-06 22:22:25 -04:00
parent ba63fe5b63
commit 6ed7581e03

View File

@ -37,7 +37,7 @@ public interface LargeFramebuffer {
final int height = Math.min(height(), top + Framebuffer.HEIGHT) - top;
for (int y = top; y < height; y++) {
for (int x = left; x < width; x++) {
final byte color = getMapColor(left, top);
final byte color = getMapColor(x, y);
colors[Framebuffer.index(x - left, y - top)] = color;
}
}