Update vcpkg baseline and CI configuration for improved compatibility
- Changed the builtin baseline in vcpkg.json to a specific commit hash for better dependency management. - Updated CI workflow in ci.yml to use GCC-12 and Clang-15, enhancing compiler support and ensuring compatibility with the latest features. - Added necessary packages for the new compiler versions to the CI setup, improving build reliability.
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
#ifndef YAZE_GUI_COLOR_H
|
||||
#define YAZE_GUI_COLOR_H
|
||||
|
||||
#if defined(__clang__)
|
||||
#include <format>
|
||||
#endif
|
||||
#include "absl/strings/str_format.h"
|
||||
#include <string>
|
||||
|
||||
#include "absl/status/status.h"
|
||||
@@ -25,17 +23,11 @@ inline ImVec4 ConvertColorToImVec4(const Color &color) {
|
||||
}
|
||||
|
||||
inline std::string ColorToHexString(const Color &color) {
|
||||
#if defined(__clang__)
|
||||
return std::format(
|
||||
"{:02X}{:02X}{:02X}{:02X}", static_cast<int>(color.red * 255),
|
||||
static_cast<int>(color.green * 255), static_cast<int>(color.blue * 255),
|
||||
static_cast<int>(color.alpha * 255));
|
||||
#else
|
||||
return absl::StrFormat("%02X%02X%02X%02X", static_cast<int>(color.red * 255),
|
||||
return absl::StrFormat("%02X%02X%02X%02X",
|
||||
static_cast<int>(color.red * 255),
|
||||
static_cast<int>(color.green * 255),
|
||||
static_cast<int>(color.blue * 255),
|
||||
static_cast<int>(color.alpha * 255));
|
||||
#endif
|
||||
}
|
||||
|
||||
// A utility function to convert an SnesColor object to an ImVec4 with
|
||||
|
||||
Reference in New Issue
Block a user