mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Plot pixel buffer the right way up
This commit is contained in:
parent
674687feba
commit
d6a1008ae7
@ -70,7 +70,7 @@ void buffer_plot(struct zint_symbol *symbol, char *pixelbuf) {
|
||||
for (row = 0; row < symbol->bitmap_height; row++) {
|
||||
for (column = 0; column < symbol->bitmap_width; column++) {
|
||||
i = ((row * symbol->bitmap_width) + column) * 3;
|
||||
switch (*(pixelbuf + (symbol->bitmap_width * (symbol->bitmap_height - row - 1)) + column)) {
|
||||
switch (*(pixelbuf + (symbol->bitmap_width * row) + column)) {
|
||||
case '1':
|
||||
symbol->bitmap[i] = fgred;
|
||||
symbol->bitmap[i + 1] = fggrn;
|
||||
|
Loading…
x
Reference in New Issue
Block a user