Fix bug of not processing last row & column of buckets

Fix #25
This commit is contained in:
h@di 2018-08-03 17:51:09 +04:30
parent f28e0b0129
commit 3e5a20c504

View file

@ -368,8 +368,8 @@ void emitCodepoint(int codepoint) {
void emit_image(const cimg_library::CImg<unsigned char> & image, int flags) {
for (int y = 0; y < image.height() - 8; y += 8) {
for (int x = 0; x < image.width() - 4; x += 4) {
for (int y = 0; y <= image.height() - 8; y += 8) {
for (int x = 0; x <= image.width() - 4; x += 4) {
CharData charData = flags & FLAG_NOOPT
? getCharData(image, x, y, 0x2584, 0x0000ffff)
: getCharData(image, x, y);