Made drawgradient() to use our fillrect(), instead of SDL thingies