Per caso il tuo sfondo è una immagine in jpeg?
Amaro C++, il gusto pieno dell'undefined behavior.
Regole del Forum