diff options
| author | 2022-11-09 15:34:26 +0100 | |
|---|---|---|
| committer | 2022-11-09 15:34:26 +0100 | |
| commit | d581a4a367bfe750ad571a1b8ee8961c132411aa (patch) | |
| tree | ad7a62b9e3a296a93876f5569fc2106fd0d64fae /src/common/settings.cpp | |
| parent | Merge pull request #9215 from liamwhite/swordfight (diff) | |
| download | yuzu-d581a4a367bfe750ad571a1b8ee8961c132411aa.tar.gz yuzu-d581a4a367bfe750ad571a1b8ee8961c132411aa.tar.xz yuzu-d581a4a367bfe750ad571a1b8ee8961c132411aa.zip | |
Add break statement in default cases
According to the contributing page (https://github.com/yuzu-emu/yuzu/wiki/Contributing) the default cases should have a break statement
default:
// Yes, even break for the last case
break;
Diffstat (limited to '')
| -rw-r--r-- | src/common/settings.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index 0a560ebb7..8173462cb 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp | |||
| @@ -151,6 +151,7 @@ void UpdateRescalingInfo() { | |||
| 151 | ASSERT(false); | 151 | ASSERT(false); |
| 152 | info.up_scale = 1; | 152 | info.up_scale = 1; |
| 153 | info.down_shift = 0; | 153 | info.down_shift = 0; |
| 154 | break; | ||
| 154 | } | 155 | } |
| 155 | info.up_factor = static_cast<f32>(info.up_scale) / (1U << info.down_shift); | 156 | info.up_factor = static_cast<f32>(info.up_scale) / (1U << info.down_shift); |
| 156 | info.down_factor = static_cast<f32>(1U << info.down_shift) / info.up_scale; | 157 | info.down_factor = static_cast<f32>(1U << info.down_shift) / info.up_scale; |