But thing is, at beginning of program, I use Begindoublebuffer(true). Soon after this comes first SelectBrush(1), and after SelectDisplay(1).
All this works fine.
But now at later point when certain thing happens and I try to do selectbrush(1) and then later SelectDisplay(1), it fails when next Flip() command comes saying doublebuffering is off.
I have hunted it down to selectbrush(1) being the problem. If I just use SelectDisplay(1), it continues working, but if I use that SelectBrush(1), then next flip fails.
I also tried using BeginDoubleBuffering(true) again, but then it complains "This command cannot be used when SelectBrush() is active!" which would indicate that maybe selectdisplay-command is not working, as code is this:
Code: Select all
SelectBrush(1) SelectDisplay(1) BeginDoubleBuffer(True)