Hi
I recompile your sample
and it doesn't display correctly
problem is in draw procerure
you get a new random position
and clear screen
so, when you at the next time get random position and clear screen again
the previous one remains unclear
I think it should be something like this
Code:
TInt CScreensaverPlugin::Draw(CWindowGc& aGc)
{
...
TRect clearArea = TRect(TPoint(0,pos.iY-KActiveDisplayAreaOffsetUp-1), TPoint(KScreenSizeX,pos.iY+KActiveDisplayAreaOffsetDown+1));
// Initialize graphic settings
InitializeGraphics(aGc, iPrevArea);
// remember this area to erase it in the next draw
iPrevArea = clearArea;
...
}
I try this but it still doesn't work
May be I missed something but for beginners real working code is very important.
Thanks to everybody who can patch examples