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

25 lines
377 B
C++

#include <d3dtypes.h>
#include <d3dumddi.h>
#include <Config/Settings/VSync.h>
namespace Config
{
namespace Settings
{
VSync::VSync()
: EnumSetting("VSync", "app", { "app", "off", "on", "wait"})
{
}
Setting::ParamInfo VSync::getParamInfo() const
{
if (ON == m_value || WAIT == m_value)
{
return { "Interval", 1, 16, 1 };
}
return {};
}
}
}