mesa: skip bitmap drawing code if width==0 or height==0