It's too late for me now to think about it clearly, but for me it looks like a paint engine problem. The background color won't be drawn because your paint engine doesn't draw it (at least that's how I understood it at 2am).