On Friday 31 May 2002 10:25, Tilo Christ wrote: > I am trying to convince OS5 (Simulator DR12) to do hires > double-buffering. I create an offscreen Window in > 'nativeFormat', draw to that window, then use > WinCopyRectangle to copy it to the display window. > Unfortunately, all drawing operations to that offscreen > window seem to be taking place in lowres (e.g. WinDrawChar > paints ugly lowres characters). If I draw directly to the > display window, everything works as expected. > What am I doing wrong here? I tried > WinSetCoordinateSystem(kCoordinatesNative); > on both the offscreen window and the display window, but to > no avail. So how do I convince Palm OS that my offscreen > window has high density?
You have maybe done the things in incorrect order... Try to first set the screen mode in high density with WinScreenMode. Then inform the OS that you want to use native coordinate with WinSetCoordinateSystem( kCoordinatesNative ); And finally allocate your offscreen window using nativeFormat and not screenFormat. You can always check the density using BmpGetDensity to see when things are wrong ( BmpGetVersion is also usefull, to be sure it's a V3 one ) -- Daniel Morais http://www.kickoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
