Ooopss, I included the class file in the previous message instead of the source file by accident. The correct source file is included in this message. Bastiaan. P.S. I have tested the problem on a Matrox G100 (no hardware acceleration) and a Matrox G200 (somewhat 3D acceleration).