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 |
1294 |
1294 TDisplayMode displayMode = device->DisplayMode(); |
|
1295 if (TDisplayModeUtils::NumDisplayModeBitsPerPixel(displayMode) == 32) |
|
1296 { |
|
1297 displayMode = EColor16MAP; |
|
1298 } |
|
1299 |
1295 _LIT(KText,"RemoteGc & MWsGraphicsContext"); |
1300 _LIT(KText,"RemoteGc & MWsGraphicsContext"); |
1296 TFontSpec fSpec(KTestFontTypefaceName,23); |
1301 TFontSpec fSpec(KTestFontTypefaceName,23); |
1297 fSpec.iFontStyle.SetBitmapType(EAntiAliasedGlyphBitmap); |
1302 fSpec.iFontStyle.SetBitmapType(EAntiAliasedGlyphBitmap); |
1298 fSpec.iFontStyle.SetEffects(FontEffect::EDropShadow, ETrue); |
1303 fSpec.iFontStyle.SetEffects(FontEffect::EDropShadow, ETrue); |
1299 fSpec.iFontStyle.SetEffects(FontEffect::EOutline, ETrue); |
1304 fSpec.iFontStyle.SetEffects(FontEffect::EOutline, ETrue); |