Skip to content

Commit

Permalink
Clang format updates for background darkening option
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutzzz committed Oct 13, 2022
1 parent 564a266 commit 3e8c45a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions src/engine/sprite_rendering_system.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ class SpriteRenderingSystem
bool cloakEffectSpritesVisible() const { return mCloakEffectSpritesVisible; }

void renderBackgroundSprites(
const SpecialEffectsRenderer& fx,
const float backColorMod) const;
const SpecialEffectsRenderer& fx,
const float backColorMod) const;
void renderRegularSprites(
const SpecialEffectsRenderer& fx,
const float regColorMod) const;
const SpecialEffectsRenderer& fx,
const float regColorMod) const;
void renderForegroundSprites(
const SpecialEffectsRenderer& fx,
const float foreColorMod) const;
const SpecialEffectsRenderer& fx,
const float foreColorMod) const;

private:
void renderSprite(
Expand Down
14 changes: 7 additions & 7 deletions src/frontend/user_profile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -669,19 +669,19 @@ data::GameOptions deserialize<data::GameOptions>(const nlohmann::json& json)
extractValueIfExists("skipIntro", result.mSkipIntro, json);
extractValueIfExists("motionSmoothing", result.mMotionSmoothing, json);
extractValueIfExists(
"foregroundSpriteBrightness", result.mForeSpriteBrightness, json);
"foregroundSpriteBrightness", result.mForeSpriteBrightness, json);
extractValueIfExists(
"regularSpriteBrightness", result.mRegSpriteBrightness, json);
"regularSpriteBrightness", result.mRegSpriteBrightness, json);
extractValueIfExists(
"backgroundSpriteBrightness", result.mBackSpriteBrightness, json);
"backgroundSpriteBrightness", result.mBackSpriteBrightness, json);
extractValueIfExists(
"prisonerIsBackground", result.mPrisonerIsBackground, json);
"prisonerIsBackground", result.mPrisonerIsBackground, json);
extractValueIfExists(
"foregroundTileBrightness", result.mForeTileBrightness, json);
"foregroundTileBrightness", result.mForeTileBrightness, json);
extractValueIfExists(
"backgroundTileBrightness", result.mBackTileBrightness, json);
"backgroundTileBrightness", result.mBackTileBrightness, json);
extractValueIfExists(
"parallaxTileBrightness", result.mDropTileBrightness, json);
"parallaxTileBrightness", result.mDropTileBrightness, json);

removeInvalidKeybindings(result);

Expand Down

0 comments on commit 3e8c45a

Please sign in to comment.