@@ -570,6 +570,7 @@ void CRenderer::Flip()
570
570
return ;
571
571
}
572
572
573
+ #ifdef SDL_VIDEO_RENDER_NGAGE_FPS
573
574
iRenderer->Gc ()->UseFont (iFont);
574
575
575
576
if (iShowFPS && iRenderer->Gc ()) {
@@ -594,6 +595,7 @@ void CRenderer::Flip()
594
595
iRenderer->Gc ()->DrawText (_L (" " ), TPoint (0 , 0 ));
595
596
}
596
597
iRenderer->Gc ()->DiscardFont ();
598
+ #endif // SDL_VIDEO_RENDER_NGAGE_FPS
597
599
iRenderer->Flip (iDirectScreen);
598
600
599
601
// Keep the backlight on.
@@ -627,6 +629,7 @@ void CRenderer::SetClipRect(TInt aX, TInt aY, TInt aWidth, TInt aHeight)
627
629
}
628
630
}
629
631
632
+ #ifdef SDL_VIDEO_RENDER_NGAGE_FPS
630
633
void CRenderer::UpdateFPS ()
631
634
{
632
635
static TTime lastTime;
@@ -648,6 +651,7 @@ void CRenderer::UpdateFPS()
648
651
lastTime = currentTime;
649
652
}
650
653
}
654
+ #endif
651
655
652
656
void CRenderer::SuspendScreenSaver (TBool aSuspend)
653
657
{
@@ -742,13 +746,15 @@ void CRenderer::HandleEvent(const TWsEvent &aWsEvent)
742
746
timestamp = SDL_GetPerformanceCounter ();
743
747
SDL_SendKeyboardKey (timestamp, 1 , aWsEvent.Key ()->iCode , ConvertScancode (aWsEvent.Key ()->iScanCode ), true );
744
748
749
+ #ifdef SDL_VIDEO_RENDER_NGAGE_FPS
745
750
if (aWsEvent.Key ()->iScanCode == EStdKeyHash) {
746
751
if (iShowFPS) {
747
752
iShowFPS = EFalse;
748
753
} else {
749
754
iShowFPS = ETrue;
750
755
}
751
756
}
757
+ #endif
752
758
753
759
break ;
754
760
case EEventKeyUp: /* Key events */
0 commit comments