crash-handler/main.c
//XXX make static vars work right
XXX make static vars work right
XXX make static vars work right
static void print_fbuf(const char *text, u16 col) {
    for(int i=0; text[i]; i++) {
        char c = text[i];
        if(c == '\n') {
            _print_X = _print_startX;
            _print_Y += 8;
        }
        else {
            drawChar(_print_X, _print_Y, c, col);
            _print_X += 8;
        }
        if(_print_X >= 320 - 8) {
            _print_X = _print_startX;
            _print_Y += 8;
        }
        if(_print_Y >= 240 - 8) _print_Y = 0;
    }
}
static void print_fbuf ( const char * text , u16 col ) { for ( int i = 0 ; text [ i ] ; i ++ ) { char c = text [ i ] ; if ( c == ' \n ' ) { _print_X = _print_startX ; _print_Y += 8 ; } else { drawChar ( _print_X , _print_Y , c , col ) ; _print_X += 8 ; } if ( _print_X >= 320 - 8 ) { _print_X = _print_startX ; _print_Y += 8 ; } if ( _print_Y >= 240 - 8 ) _print_Y = 0 ; } }
XXX make static vars work right
XXX make static vars work right