|
@@ -512,7 +512,6 @@ void CRenderer::Flip()
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
-#ifdef SDL_VIDEO_RENDER_NGAGE_FPS
|
|
|
iRenderer->Gc()->UseFont(iFont);
|
|
|
|
|
|
if (iShowFPS && iRenderer->Gc()) {
|
|
@@ -537,7 +536,6 @@ void CRenderer::Flip()
|
|
|
iRenderer->Gc()->DrawText(_L(""), TPoint(0, 0));
|
|
|
}
|
|
|
iRenderer->Gc()->DiscardFont();
|
|
|
-#endif // SDL_VIDEO_RENDER_NGAGE_FPS
|
|
|
iRenderer->Flip(iDirectScreen);
|
|
|
|
|
|
// Keep the backlight on.
|
|
@@ -571,7 +569,6 @@ void CRenderer::SetClipRect(TInt aX, TInt aY, TInt aWidth, TInt aHeight)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-#ifdef SDL_VIDEO_RENDER_NGAGE_FPS
|
|
|
void CRenderer::UpdateFPS()
|
|
|
{
|
|
|
static TTime lastTime;
|
|
@@ -593,7 +590,6 @@ void CRenderer::UpdateFPS()
|
|
|
lastTime = currentTime;
|
|
|
}
|
|
|
}
|
|
|
-#endif
|
|
|
|
|
|
void CRenderer::SuspendScreenSaver(TBool aSuspend)
|
|
|
{
|
|
@@ -688,7 +684,6 @@ void CRenderer::HandleEvent(const TWsEvent &aWsEvent)
|
|
|
timestamp = SDL_GetPerformanceCounter();
|
|
|
SDL_SendKeyboardKey(timestamp, 1, aWsEvent.Key()->iCode, ConvertScancode(aWsEvent.Key()->iScanCode), true);
|
|
|
|
|
|
-#ifdef SDL_VIDEO_RENDER_NGAGE_FPS
|
|
|
if (aWsEvent.Key()->iScanCode == EStdKeyHash) {
|
|
|
if (iShowFPS) {
|
|
|
iShowFPS = EFalse;
|
|
@@ -696,7 +691,6 @@ void CRenderer::HandleEvent(const TWsEvent &aWsEvent)
|
|
|
iShowFPS = ETrue;
|
|
|
}
|
|
|
}
|
|
|
-#endif
|
|
|
|
|
|
break;
|
|
|
case EEventKeyUp: /* Key events */
|