Remove "Auto Draw Rate" option, there is no reason to turn this off
It can still be turned off or adjusted via Lua, though
This commit is contained in:
parent
aac6b7258c
commit
fca0c62cd7
@ -201,14 +201,11 @@ void SDLOpen()
|
||||
desktopWidth = rect.w;
|
||||
desktopHeight = rect.h;
|
||||
}
|
||||
if (Client::Ref().GetPrefBool("AutoDrawLimit", false))
|
||||
|
||||
SDL_DisplayMode displayMode;
|
||||
if (!SDL_GetCurrentDisplayMode(displayIndex, &displayMode) && displayMode.refresh_rate >= 60)
|
||||
{
|
||||
ui::Engine::Ref().AutoDrawingFrequencyLimit = true;
|
||||
SDL_DisplayMode displayMode;
|
||||
if (!SDL_GetCurrentDisplayMode(displayIndex, &displayMode) && displayMode.refresh_rate >= 60)
|
||||
{
|
||||
ui::Engine::Ref().SetDrawingFrequencyLimit(displayMode.refresh_rate);
|
||||
}
|
||||
ui::Engine::Ref().SetDrawingFrequencyLimit(displayMode.refresh_rate);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -136,7 +136,6 @@ namespace ui
|
||||
|
||||
public:
|
||||
bool MomentumScroll = true;
|
||||
bool AutoDrawingFrequencyLimit = false;
|
||||
bool ShowAvatars = true;
|
||||
};
|
||||
|
||||
|
@ -117,11 +117,6 @@ void OptionsController::SetMomentumScroll(bool momentumScroll)
|
||||
model->SetMomentumScroll(momentumScroll);
|
||||
}
|
||||
|
||||
void OptionsController::SetAutoDrawLimit(bool autoDrawLimit)
|
||||
{
|
||||
model->SetAutoDrawLimit(autoDrawLimit);
|
||||
}
|
||||
|
||||
void OptionsController::Exit()
|
||||
{
|
||||
view->CloseActiveWindow();
|
||||
|
@ -35,7 +35,6 @@ public:
|
||||
void SetIncludePressure(bool includePressure);
|
||||
void SetPerfectCircle(bool perfectCircle);
|
||||
void SetMomentumScroll(bool momentumScroll);
|
||||
void SetAutoDrawLimit(bool autoDrawLimit);
|
||||
|
||||
void Exit();
|
||||
OptionsView * GetView();
|
||||
|
@ -241,18 +241,6 @@ void OptionsModel::SetMomentumScroll(bool state)
|
||||
notifySettingsChanged();
|
||||
}
|
||||
|
||||
bool OptionsModel::GetAutoDrawLimit()
|
||||
{
|
||||
return ui::Engine::Ref().AutoDrawingFrequencyLimit;
|
||||
}
|
||||
|
||||
void OptionsModel::SetAutoDrawLimit(bool state)
|
||||
{
|
||||
ui::Engine::Ref().AutoDrawingFrequencyLimit = state;
|
||||
Client::Ref().SetPref("AutoDrawLimit", state);
|
||||
notifySettingsChanged();
|
||||
}
|
||||
|
||||
void OptionsModel::notifySettingsChanged()
|
||||
{
|
||||
for (size_t i = 0; i < observers.size(); i++)
|
||||
|
@ -54,8 +54,6 @@ public:
|
||||
void SetPerfectCircle(bool perfectCircle);
|
||||
bool GetMomentumScroll();
|
||||
void SetMomentumScroll(bool momentumScroll);
|
||||
bool GetAutoDrawLimit();
|
||||
void SetAutoDrawLimit(bool autoDrawLimit);
|
||||
virtual ~OptionsModel();
|
||||
};
|
||||
|
||||
|
@ -251,17 +251,6 @@ OptionsView::OptionsView():
|
||||
scrollPanel->AddChild(tempLabel);
|
||||
scrollPanel->AddChild(momentumScroll);
|
||||
|
||||
currentY += 20;
|
||||
autoDrawLimit = new ui::Checkbox(ui::Point(8, currentY), ui::Point(1, 16), "Auto Draw Rate", "");
|
||||
autowidth(autoDrawLimit);
|
||||
autoDrawLimit->SetActionCallback({ [this] { c->SetAutoDrawLimit(autoDrawLimit->GetChecked()); } });
|
||||
tempLabel = new ui::Label(ui::Point(autoDrawLimit->Position.X + Graphics::textwidth(autoDrawLimit->GetText()) + 20, currentY), ui::Point(1, 16), "\bg- Based on monitor refresh rate at startup");
|
||||
autowidth(tempLabel);
|
||||
tempLabel->Appearance.HorizontalAlign = ui::Appearance::AlignLeft;
|
||||
tempLabel->Appearance.VerticalAlign = ui::Appearance::AlignMiddle;
|
||||
scrollPanel->AddChild(tempLabel);
|
||||
scrollPanel->AddChild(autoDrawLimit);
|
||||
|
||||
currentY+=20;
|
||||
mouseClickRequired = new ui::Checkbox(ui::Point(8, currentY), ui::Point(1, 16), "Sticky Categories", "");
|
||||
autowidth(mouseClickRequired);
|
||||
@ -362,7 +351,6 @@ void OptionsView::NotifySettingsChanged(OptionsModel * sender)
|
||||
includePressure->SetChecked(sender->GetIncludePressure());
|
||||
perfectCirclePressure->SetChecked(sender->GetPerfectCircle());
|
||||
momentumScroll->SetChecked(sender->GetMomentumScroll());
|
||||
autoDrawLimit->SetChecked(sender->GetAutoDrawLimit());
|
||||
}
|
||||
|
||||
void OptionsView::AttachController(OptionsController * c_)
|
||||
|
@ -32,7 +32,6 @@ class OptionsView: public ui::Window
|
||||
ui::DropDown * decoSpace;
|
||||
ui::Checkbox * showAvatars;
|
||||
ui::Checkbox * momentumScroll;
|
||||
ui::Checkbox * autoDrawLimit;
|
||||
ui::Checkbox * mouseClickRequired;
|
||||
ui::Checkbox * includePressure;
|
||||
ui::Checkbox * perfectCirclePressure;
|
||||
|
Loading…
Reference in New Issue
Block a user