We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7093ed commit 4c5dec0Copy full SHA for 4c5dec0
src/RageUtil/Graphics/RageDisplay.cpp
@@ -1313,10 +1313,18 @@ class LunaRageDisplay : public Luna<RageDisplay>
1313
return 1;
1314
}
1315
1316
+ static int GetDisplayRefreshRate(T* p, lua_State* L)
1317
+ {
1318
+ VideoModeParams params = *p->GetActualVideoModeParams();
1319
+ lua_pushnumber(L, params.rate);
1320
+ return 1;
1321
+ }
1322
+
1323
LunaRageDisplay()
1324
{
1325
ADD_METHOD(GetDisplayWidth);
1326
ADD_METHOD(GetDisplayHeight);
1327
+ ADD_METHOD(GetDisplayRefreshRate);
1328
ADD_METHOD(GetFPS);
1329
ADD_METHOD(GetVPF);
1330
ADD_METHOD(GetCumFPS);
0 commit comments