1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00

25 lines
377 B
C++
Raw Normal View History

2022-04-16 18:56:44 +02:00
#include <d3dtypes.h>
#include <d3dumddi.h>
#include <Config/Settings/VSync.h>
namespace Config
{
namespace Settings
{
VSync::VSync()
2024-08-23 23:17:35 +02:00
: EnumSetting("VSync", "app", { "app", "off", "on", "wait"})
2022-04-16 18:56:44 +02:00
{
}
Setting::ParamInfo VSync::getParamInfo() const
{
2024-08-23 23:17:35 +02:00
if (ON == m_value || WAIT == m_value)
2022-04-16 18:56:44 +02:00
{
2023-05-21 11:22:25 +02:00
return { "Interval", 1, 16, 1 };
2022-04-16 18:56:44 +02:00
}
return {};
}
}
}