1

Je voudrais faire des scrolling mais je ne sais pas comment marchent les fonctions
de extentedgraph :

-void ScrollLeft160(unsigned short* buffer,unsigned short nr);
-void ScrollLeft240(unsigned short* buffer,unsigned short nr);

Par exemple...

2

ben comme toujours on regarde la doc ou les demos ..

void _main(void) {
    short old_random = 0;
    short new_random = 0;

    do {
        old_random = new_random;
        do {
            new_random = random(4);
        }
        while (new_random == old_random);

        //---------------------------------------------------------------------
        // if/else if/else chain produces smaller code than case !!
        //---------------------------------------------------------------------

        if (TI89) {
            if (!new_random)            ScrollLeft160(LCD_MEM,100);
            else if (new_random==1) ScrollRight160(LCD_MEM,100);
            else if (new_random==2) ScrollUp160(LCD_MEM,100);
            else                              ScrollDown160(LCD_MEM,100);
        }
        else {
            if (!new_random)            ScrollLeft240(LCD_MEM,128);
            else if (new_random==1) ScrollRight240(LCD_MEM,128);
            else if (new_random==2) ScrollUp240(LCD_MEM,128);
            else                              ScrollDown240(LCD_MEM,128);
        }


    }
    while (!kbhit());

    ngetchx();  // fetch pressed key ...
}

demo1.c fournie dans le zip de extrgaph et je pense qu'elle va t'eclairer .. .

ca fait un tremblement de terre .... grin

3

ScollLeft decale l'ecran de type LCD_MEM de 1 pixel vers la gauche.