Re:Bug in my proggie

Search this archive.

From: Robbie van den Bogert (RobbieVDB@yahoo.com)
Date: Thu 21 Jun 2001 - 05:31:13 IDT


>>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;
}



------------------------------------------------------------------
Unsubscribe:  To:   listbot@svgalib.org
              Body: unsubscribe linux-svgalib


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:24 IST