Tuesday, November 24, 2009

Getting a better picture in the emulator

It came to my attention on various web sites that when running demo apps using the WTK emulator (DefaultColorPhone for example) color gradients are displayed in low bit depth, and banding results.

This is easily fixed by changing the color depth of the device in the properties file by adding extra '0's to it.

On WTK 2.5.x it is at: <installDir> /wtklib/devices/DefaultColorPhone and open the properties file. I haven't checked where it is in the new WTK 3.x.

Change both colorCount=0x1000000 and alphaLevelCount=0x1000. The color gradients are now displayed in their full glory.