curve calculation, acutally unused now
removed unused curve and pixel drawing code from raster driver