diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2020-02-04 21:59:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-04 21:59:22 +0100 |
| commit | a205ecb446e5920d1fb6f6ffde6dc83b956fd877 (patch) | |
| tree | dbbe3a9ec7959d204f84de69d77954ce71336c0a /Source | |
| parent | 049183148307ad6a5a3244c313841fc97448b647 (diff) | |
| parent | 91deb40a22e7e77121dc6b59cc110857e0d3830e (diff) | |
Merge pull request #8602 from lioncash/fmt
Externals: Update fmt to 6.1.2
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/Common/SettingsHandler.cpp | 2 | ||||
| -rw-r--r-- | Source/Core/Core/Core.cpp | 2 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/BPStructs.cpp | 11 |
3 files changed, 8 insertions, 7 deletions
diff --git a/Source/Core/Common/SettingsHandler.cpp b/Source/Core/Common/SettingsHandler.cpp index e7b3d5d066..23c64f1e2a 100644 --- a/Source/Core/Common/SettingsHandler.cpp +++ b/Source/Core/Common/SettingsHandler.cpp @@ -11,7 +11,7 @@ #include <iomanip> #include <string> -#include <fmt/time.h> +#include <fmt/chrono.h> #include "Common/CommonTypes.h" diff --git a/Source/Core/Core/Core.cpp b/Source/Core/Core/Core.cpp index 131517641b..ea5954e90a 100644 --- a/Source/Core/Core/Core.cpp +++ b/Source/Core/Core/Core.cpp @@ -12,8 +12,8 @@ #include <utility> #include <variant> +#include <fmt/chrono.h> #include <fmt/format.h> -#include <fmt/time.h> #ifdef _WIN32 #include <windows.h> diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp index 8be8f79806..4bf988e43c 100644 --- a/Source/Core/VideoCommon/BPStructs.cpp +++ b/Source/Core/VideoCommon/BPStructs.cpp @@ -989,7 +989,7 @@ void GetBPRegInfo(const u8* data, std::string* name, std::string* desc) SetRegName(BPMEM_EFB_TL); X10Y10 left_top; left_top.hex = cmddata; - *desc = fmt::format("Left: {}\nTop: {}", left_top.x, left_top.y); + *desc = fmt::format("Left: {}\nTop: {}", u32(left_top.x), u32(left_top.y)); } break; @@ -1183,7 +1183,7 @@ void GetBPRegInfo(const u8* data, std::string* name, std::string* desc) "Width: {}\n" "Height: {}\n" "Format: {:x}\n", - texnum, teximg.width + 1, teximg.height + 1, teximg.format); + texnum, u32(teximg.width) + 1, u32(teximg.height) + 1, u32(teximg.format)); } break; @@ -1206,8 +1206,8 @@ void GetBPRegInfo(const u8* data, std::string* name, std::string* desc) "Even TMEM Width: {}\n" "Even TMEM Height: {}\n" "Cache is manually managed: {}\n", - texnum, teximg.tmem_even, teximg.cache_width, teximg.cache_height, - no_yes[teximg.image_type]); + texnum, u32(teximg.tmem_even), u32(teximg.cache_width), + u32(teximg.cache_height), no_yes[teximg.image_type]); } break; @@ -1229,7 +1229,8 @@ void GetBPRegInfo(const u8* data, std::string* name, std::string* desc) "Odd TMEM Offset: {:x}\n" "Odd TMEM Width: {}\n" "Odd TMEM Height: {}\n", - texnum, teximg.tmem_odd, teximg.cache_width, teximg.cache_height); + texnum, u32(teximg.tmem_odd), u32(teximg.cache_width), + u32(teximg.cache_height)); } break; |
