>>>void set_pixel(int x, int y, int c) {
>>>    c_port->data[c_port->ytable[y] + x] = c;
>>>}
>
>should be:
>
>void set_pixel(int x, int y, int c) {
>    c_port->data[c_port->ytable[y * width] + x] = c;
>}

sorry i was wrong.
it should be:

        c_port->data[y*width + x]=c;


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

Reply via email to