diff options
Diffstat (limited to 'src/core/hle/shared_page.cpp')
| -rw-r--r-- | src/core/hle/shared_page.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/shared_page.cpp b/src/core/hle/shared_page.cpp index 94fae2551..4f227a370 100644 --- a/src/core/hle/shared_page.cpp +++ b/src/core/hle/shared_page.cpp | |||
| @@ -2,6 +2,8 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <cstring> | ||
| 6 | |||
| 5 | #include "common/common_types.h" | 7 | #include "common/common_types.h" |
| 6 | #include "common/common_funcs.h" | 8 | #include "common/common_funcs.h" |
| 7 | 9 | ||
| @@ -62,7 +64,7 @@ template void Read<u16>(u16 &var, const u32 addr); | |||
| 62 | template void Read<u8>(u8 &var, const u32 addr); | 64 | template void Read<u8>(u8 &var, const u32 addr); |
| 63 | 65 | ||
| 64 | void Set3DSlider(float amount) { | 66 | void Set3DSlider(float amount) { |
| 65 | memset(&shared_page, 0, sizeof(shared_page)); | 67 | std::memset(&shared_page, 0, sizeof(shared_page)); |
| 66 | 68 | ||
| 67 | shared_page.sliderstate_3d = amount; | 69 | shared_page.sliderstate_3d = amount; |
| 68 | shared_page.ledstate_3d = (amount == 0.0f); // off when non-zero | 70 | shared_page.ledstate_3d = (amount == 0.0f); // off when non-zero |