kSwarmSaver::kSwarmSaver( Drawable drawable ) : kScreenSaver( drawable ) { readSettings(); colorContext = QColor::enterAllocContext(); batchcount = maxLevels; initXLock( gc ); initswarm( d ); timer.start( speed ); connect( &timer, SIGNAL( timeout() ), SLOT( slotTimeout() ) ); }
kSwarmSaver::kSwarmSaver( Drawable drawable ) : kScreenSaver( drawable ) { readSettings(); // Clear to background colour when exposed XSetWindowBackground(qt_xdisplay(), mDrawable, BlackPixel(qt_xdisplay(), qt_xscreen())); colorContext = TQColor::enterAllocContext(); batchcount = maxLevels; initXLock( mGc ); initswarm( mDrawable, rnd ); timer.start( speed ); connect( &timer, TQT_SIGNAL( timeout() ), TQT_SLOT( slotTimeout() ) ); }
void kSwarmSaver::setLevels( int l ) { batchcount = maxLevels = l; initswarm( mDrawable, rnd ); }
void kSwarmSaver::setLevels( int l ) { batchcount = maxLevels = l; initswarm( d ); }