> > scrnBuffer = WinGetDrawWindow();
> > backBuffer = WinCreateOffscreenWindow();
>
> Remove the call to WinInitializeWindow:
>
> #if 0
> if (backBuffer != NULL)
> WinInitializeWindow(backBuffer);
> #endif
>
> (Palm should really document when these calls are or aren't necessary).
they should not be removed.. they need to be documented
correctly..
it could be handy when we want to generate a duplicate of the
current window (if it is unknown) to the offscreen.
ie:
backBuff = WinCreateOffscreenWindow(..);
int scrAdd = backBuff.displayAddr;
WinInitializeWindow(backBuff);
backBuff.displayAddr = tmp;
this will create an offscreen image. then store the display
address temporarially.
the WinInitializeWindow() will ensure that backBuff has all
the properties of the current draw window (even the display
address).
afterwards, we can set the display address to our temporary
variable.
now we have to windows, of equal properties (assuming the
current draw window properties are unknown)? and one is
onscreen, the other offscreen.
but of course you could do this without WinInitializeWindow()
but it does not hurt to be there.
palm just needs to document what it does a bit more clearly.
thats why i screwed up.. the documentation was vague.
cheers.
az.
--
Aaron Ardiri
Lecturer http://www.hig.se/~ardiri/
University-College i G�vle mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN
Tel: +46 26 64 87 38 Fax: +46 26 64 87 88
Mob: +46 70 352 8192 A/H: +46 26 10 16 11