windowing/windowserver/tauto/tgc.cpp
branchRCL_3
changeset 70 5e51caaeeb72
parent 0 5d03bc08d59c
--- a/windowing/windowserver/tauto/tgc.cpp	Tue Apr 27 17:59:32 2010 +0300
+++ b/windowing/windowserver/tauto/tgc.cpp	Tue May 11 17:25:23 2010 +0300
@@ -1290,8 +1290,13 @@
 	 * that we use matching color depths for our off-screen bitmaps so that accuracy is
 	 * not lost since we compare bitmaps from the screen versus off-screen.
 	 */
-	const TDisplayMode displayMode = device->DisplayMode();
-		
+    
+	TDisplayMode displayMode = device->DisplayMode();
+    if (TDisplayModeUtils::NumDisplayModeBitsPerPixel(displayMode) == 32)
+        {
+        displayMode = EColor16MAP;
+        }
+
 	_LIT(KText,"RemoteGc & MWsGraphicsContext");
 	TFontSpec fSpec(KTestFontTypefaceName,23);
 	fSpec.iFontStyle.SetBitmapType(EAntiAliasedGlyphBitmap);