buf[0]=0;
buf[1]=0;
for(i=0;i<8;i++) {
- pix=((page*8+i)*DX)+col;
+ // bmp: bottom rows first ... (i forgot that!)
+ pix=((DY-1-(page*8+i))*DX)+col;
b=src.map[pix].r+src.map[pix].g+src.map[pix].b;
b/=3;
if(b<=(0.25*255)) {
}
}
else if(stat==CHAR) {
- dprintf(fd,"\t%02x,%02x%c\n",buf[0],buf[1],
+ dprintf(fd,"\t0x%02x,0x%02x%c\n",buf[0],buf[1],
((page+1==PM)&(col+1==DX))?' ':',');
}
}