mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
[Fix] Revive FPS drawing overlay
To enable built-in FPS, change gbFPSDisplay to SHOW_FULL_FPS (1) in debugger (or change it in src code and rebuild).
This commit is contained in:
+3
-2
@@ -166,6 +166,7 @@ UINT32 MainGameScreenInit(void)
|
||||
UnLockVideoSurface( FRAME_BUFFER);
|
||||
|
||||
InitializeBackgroundRects();
|
||||
InitializeBaseDirtyRectQueue();
|
||||
|
||||
//EnvSetTimeInHours(ENV_TIME_12);
|
||||
|
||||
@@ -188,8 +189,8 @@ UINT32 MainGameScreenInit(void)
|
||||
giFPSOverlay = RegisterVideoOverlay( ( VOVERLAY_STARTDISABLED | VOVERLAY_DIRTYBYTEXT ), &VideoOverlayDesc );
|
||||
|
||||
// SECOND, PERIOD COUNTER
|
||||
VideoOverlayDesc.sLeft = 30;
|
||||
VideoOverlayDesc.sTop = 0;
|
||||
VideoOverlayDesc.sLeft = 0;
|
||||
VideoOverlayDesc.sTop = 12;
|
||||
VideoOverlayDesc.sX = VideoOverlayDesc.sLeft;
|
||||
VideoOverlayDesc.sY = VideoOverlayDesc.sTop;
|
||||
swprintf( VideoOverlayDesc.pzText, L"Levelnodes: 100000" );
|
||||
|
||||
Reference in New Issue
Block a user