Skip to content

Commit

Permalink
Make DDupl the new default grabber
Browse files Browse the repository at this point in the history
  • Loading branch information
psieg committed Aug 1, 2015
1 parent c299b65 commit 4aba6ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Software/src/Settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1470,6 +1470,8 @@ void Settings::initCurrentProfile(bool isResetDefault)
setNewOption(Profile::Key::Grab::Slowdown, Profile::Grab::SlowdownDefault, isResetDefault);
setNewOption(Profile::Key::Grab::LuminosityThreshold, Profile::Grab::MinimumLevelOfSensitivityDefault, isResetDefault);
setNewOption(Profile::Key::Grab::IsMinimumLuminosityEnabled, Profile::Grab::IsMinimumLuminosityEnabledDefault, isResetDefault);
setNewOption(Profile::Key::Grab::IsDx1011GrabberEnabled, Profile::Grab::IsDx1011GrabberEnabledDefault, isResetDefault);
setNewOption(Profile::Key::Grab::IsDx9GrabbingEnabled, Profile::Grab::IsDx9GrabbingEnabledDefault, isResetDefault);
// [MoodLamp]
setNewOption(Profile::Key::MoodLamp::IsLiquidMode, Profile::MoodLamp::IsLiquidMode, isResetDefault);
setNewOption(Profile::Key::MoodLamp::Color, Profile::MoodLamp::ColorDefault, isResetDefault);
Expand Down
7 changes: 6 additions & 1 deletion Software/src/SettingsDefaults.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@
# define SUPPORTED_DEVICES "Lightpack,Adalight,Ardulight,Virtual"
#endif

#ifdef WINAPI_GRAB_SUPPORT
#ifdef DDUPL_GRAB_SUPPORT
# define GRABMODE_DEFAULT ::Grab::GrabberTypeDDupl
# define GRABMODE_DEFAULT_STR "DDupl"
#elif defined(WINAPI_GRAB_SUPPORT)
# define GRABMODE_DEFAULT ::Grab::GrabberTypeWinAPI
# define GRABMODE_DEFAULT_STR "WinAPI"
#elif defined(X11_GRAB_SUPPORT)
Expand Down Expand Up @@ -139,6 +142,8 @@ static const QString GrabberDefaultString = GRABMODE_DEFAULT_STR;
static const bool IsAvgColorsEnabledDefault = false;
static const bool IsSendDataOnlyIfColorsChangesDefault = true;
static const bool IsMinimumLuminosityEnabledDefault = true;
static const bool IsDx1011GrabberEnabledDefault = false;
static const bool IsDx9GrabbingEnabledDefault = false;
static const int SlowdownMin = 1;
static const int SlowdownDefault = 50;
static const int SlowdownMax = 1000;
Expand Down

0 comments on commit 4aba6ea

Please sign in to comment.