Regression in painting.c