Skip to content

Commit

Permalink
Blood: Remove outdated fps offset code (#832)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmyqlfpir authored Aug 5, 2024
1 parent c8421de commit 57835db
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions source/blood/src/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ void SetVideoMode(CGameMenuItemChain *);
void SetWidescreen(CGameMenuItemZBool *);
void SetFOV(CGameMenuItemSlider *);
void UpdateVideoModeMenuFrameLimit(CGameMenuItemZCycle *pItem);
//void UpdateVideoModeMenuFPSOffset(CGameMenuItemSlider *pItem);
void UpdateVideoColorMenu(CGameMenuItemSliderFloat *);
void ResetVideoColor(CGameMenuItemChain *);
void ClearUserMapNameOnLevelChange(CGameMenuItemZCycle *);
Expand Down Expand Up @@ -534,7 +533,6 @@ CGameMenuItemZCycle itemOptionsDisplayModeRenderer("RENDERER:", 3, 66, 70, 180,
CGameMenuItemZBool itemOptionsDisplayModeFullscreen("FULLSCREEN:", 3, 66, 80, 180, 0, NULL, NULL, NULL);
CGameMenuItemZCycle itemOptionsDisplayModeVSync("VSYNC:", 3, 66, 90, 180, 0, NULL, pzVSyncStrings, ARRAY_SSIZE(pzVSyncStrings), 0);
CGameMenuItemZCycle itemOptionsDisplayModeFrameLimit("FRAMERATE LIMIT:", 3, 66, 100, 180, 0, UpdateVideoModeMenuFrameLimit, pzFrameLimitStrings, 8, 0);
// CGameMenuItemSlider itemOptionsDisplayModeFPSOffset("FPS OFFSET:", 3, 66, 110, 180, 0, -10, 10, 1, UpdateVideoModeMenuFPSOffset, -1, -1, kMenuSliderValue);
CGameMenuItemChain itemOptionsDisplayModeApply("APPLY CHANGES", 3, 66, 125, 180, 0, NULL, 0, SetVideoMode, 0);

void PreDrawDisplayColor(CGameMenuItem *);
Expand Down Expand Up @@ -1338,15 +1336,13 @@ void SetupOptionsMenu(void)
menuOptionsDisplayMode.Add(&itemOptionsDisplayModeVSync, false);
#endif
menuOptionsDisplayMode.Add(&itemOptionsDisplayModeFrameLimit, false);
//menuOptionsDisplayMode.Add(&itemOptionsDisplayModeFPSOffset, false);
menuOptionsDisplayMode.Add(&itemOptionsDisplayModeApply, false);
menuOptionsDisplayMode.Add(&itemBloodQAV, false);

#ifdef USE_OPENGL
itemOptionsDisplayModeRenderer.pPreDrawCallback = PreDrawVideoModeMenu;
#endif
itemOptionsDisplayModeFullscreen.pPreDrawCallback = PreDrawVideoModeMenu;
//itemOptionsDisplayModeFPSOffset.pPreDrawCallback = PreDrawVideoModeMenu;

menuOptionsDisplayColor.Add(&itemOptionsDisplayColorTitle, false);
menuOptionsDisplayColor.Add(&itemOptionsDisplayColorGamma, true);
Expand Down Expand Up @@ -1968,7 +1964,6 @@ void SetupVideoModeMenu(CGameMenuItemChain *pItem)
break;
}
}
// itemOptionsDisplayModeFPSOffset.nValue = r_maxfpsoffset;
}

void PreDrawVideoModeMenu(CGameMenuItem *pItem)
Expand All @@ -1987,12 +1982,6 @@ void UpdateVideoModeMenuFrameLimit(CGameMenuItemZCycle *pItem)
g_frameDelay = calcFrameDelay(r_maxfps);
}

//void UpdateVideoModeMenuFPSOffset(CGameMenuItemSlider *pItem)
//{
// r_maxfpsoffset = pItem->nValue;
// g_frameDelay = calcFrameDelay(r_maxfps);
//}

void UpdateVideoColorMenu(CGameMenuItemSliderFloat *pItem)
{
UNREFERENCED_PARAMETER(pItem);
Expand Down

0 comments on commit 57835db

Please sign in to comment.