OK. I am narrowing this down.

vga_hasmode(G320x240x256) returns true.

But when I use the following code, it seems that I get both horizontal and
vertical scrolling.
I am using the VESA driver. G320x200x256 and G640x480x256 work just fine.

Any ideas?

TC

#include <stdlib.h>
#include <vga.h>

int main(void)
{
        int i;

        vga_init();

        if(!vga_hasmode(G320x240x256))
                {
                printf("Mode not supported.\n");
                return 1;
                }

        vga_setmode(G320x240x256);

        vga_setpalette(100, 63, 0, 0);
        vga_setcolor(100);

        for(i=0;i<200;i++)
                vga_drawline(0,i,200,i);

        sleep(3);
        vga_setmode(TEXT);

        return 0;
}


------------------------------------------------------------------
Unsubscribe:  To:   [EMAIL PROTECTED]
              Body: unsubscribe linux-svgalib

Reply via email to