Skip to content

Commit

Permalink
Some more cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
bolrog committed May 25, 2021
1 parent 9505e0c commit 624cc49
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/d2dx/D2DXContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,7 @@ void D2DXContext::DisableBuiltinResMod()
_options.SetFlag(OptionsFlag::NoResMod, true);
}

Options& D2DXContext::GetOptions()
const Options& D2DXContext::GetOptions() const
{
return _options;
}
Expand Down
12 changes: 4 additions & 8 deletions src/d2dx/D2DXContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ namespace d2dx

virtual void DisableBuiltinResMod() override;

virtual Options& GetOptions() override;
virtual const Options& GetOptions() const override;

virtual bool IsFeatureEnabled(
_In_ Feature feature) override;

#pragma endregion ID2DXContext

Expand Down Expand Up @@ -200,13 +203,6 @@ namespace d2dx

#pragma endregion ID2InterceptionHandler

#pragma region IFeatureFlags

virtual bool IsFeatureEnabled(
_In_ Feature feature) override;

#pragma endregion IFeatureFlags

private:
struct D2Vertex
{
Expand Down
2 changes: 1 addition & 1 deletion src/d2dx/ID2DXContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ namespace d2dx

virtual void DisableBuiltinResMod() = 0;

virtual Options& GetOptions() = 0;
virtual const Options& GetOptions() const = 0;

virtual bool IsFeatureEnabled(
_In_ Feature feature) = 0;
Expand Down

0 comments on commit 624cc49

Please sign in to comment.