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

25 lines
382 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()
: MappedSetting("VSync", "app", { {"app", APP}, {"off", OFF}, {"on", ON} })
{
}
Setting::ParamInfo VSync::getParamInfo() const
{
if (ON == m_value)
{
return { "Interval", 1, 16, 1, m_param };
}
return {};
}
}
}