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)) {
// gray scale palette
DISPLAY_SET_WHITE(0,0,0,0);
- DISPLAY_SET_LGRAY(3,3,3,3);
- DISPLAY_SET_DGRAY(6,6,6,6);
+ DISPLAY_SET_LGRAY(5,5,5,5); // obviously 3, but it's too bright!
+ DISPLAY_SET_DGRAY(7,7,7,7); // obviously 6, but again too bright!
DISPLAY_SET_BLACK(9,9,9,9);
/* normal mode, display depending ram content */
DISPLAY_RAM_CONTENTS_ON;
display_clear_screen();
- DISPLAY_NORMAL;
+ DISPLAY_NORMAL; // 00 -> white, 11 -> black
+ DISPLAY_SET_COM_ODIR_REMAPPED; // start counting at the top
/* switch on the display */
DISPLAY_SET_ON;