Bits per pixel, not bytes (resolve #1301)

This commit is contained in:
Joshua Granick
2019-03-28 12:30:32 -07:00
parent 376f0ba123
commit 5bdca08a0c

View File

@@ -238,7 +238,7 @@ class Font
var data = bytes.sub(dataPosition, width * height);
dataPosition += (width * height);
var buffer = new ImageBuffer(new UInt8Array(data), width, height, 1);
var buffer = new ImageBuffer(new UInt8Array(data), width, height, 8);
var image = new Image(buffer, 0, 0, width, height);
image.x = x;
image.y = y;