windowing/windowserver/test/tauto/tgc.cpp
changeset 121 d72fc2aace31
parent 103 2717213c588a
equal deleted inserted replaced
103:2717213c588a 121:d72fc2aace31
  1288 	 * On hardware, the first screen runs in 64K colors, but the second screen (TV OUT)
  1288 	 * On hardware, the first screen runs in 64K colors, but the second screen (TV OUT)
  1289 	 * cannot run in this mode, it instead falls back to 16M colors.  We need to ensure
  1289 	 * cannot run in this mode, it instead falls back to 16M colors.  We need to ensure
  1290 	 * that we use matching color depths for our off-screen bitmaps so that accuracy is
  1290 	 * that we use matching color depths for our off-screen bitmaps so that accuracy is
  1291 	 * not lost since we compare bitmaps from the screen versus off-screen.
  1291 	 * not lost since we compare bitmaps from the screen versus off-screen.
  1292 	 */
  1292 	 */
  1293 	const TDisplayMode displayMode = device->DisplayMode();
  1293 	TDisplayMode displayMode = device->DisplayMode();
       
  1294 	if (TDisplayModeUtils::NumDisplayModeBitsPerPixel(displayMode) == 32)
       
  1295 	    {
       
  1296 	    displayMode = EColor16MAP;
       
  1297 	    }
  1294 		
  1298 		
  1295 	_LIT(KText,"RemoteGc & MWsGraphicsContext");
  1299 	_LIT(KText,"RemoteGc & MWsGraphicsContext");
  1296 	TFontSpec fSpec(KTestFontTypefaceName,23);
  1300 	TFontSpec fSpec(KTestFontTypefaceName,23);
  1297 	fSpec.iFontStyle.SetBitmapType(EAntiAliasedGlyphBitmap);
  1301 	fSpec.iFontStyle.SetBitmapType(EAntiAliasedGlyphBitmap);
  1298 	fSpec.iFontStyle.SetEffects(FontEffect::EDropShadow, ETrue);
  1302 	fSpec.iFontStyle.SetEffects(FontEffect::EDropShadow, ETrue);