font2b + default_font.h fix (hopefully), display and rom ld just to sync
[my-code/arm.git] / betty / display.c
index 1248279..2da19ef 100644 (file)
@@ -71,14 +71,15 @@ void display_init(void) {
 
        // 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;
@@ -133,7 +134,7 @@ void display_draw_rectangle(int x,int y,int w,int h,u8 fill,u8 alpha) {
                DISPLAY_SET_PAGE_ADDR(p);
                for(c=x;c<x+w;c++) {
                        DISPLAY_SET_C_ADDR(c);
-                       b[0]=DISPLAY_DATA;              // dummy read
+                       b[0]=DISPLAY_DATA;              // dummy read (p.16)
                        b[0]=DISPLAY_DATA;
                        b[1]=DISPLAY_DATA;
                        rmax=y+8>y+h?y+h:y+8;