diff options
author | boludoz <francomaro@gmail.com> | 2023-10-15 20:57:06 -0300 |
---|---|---|
committer | boludoz <francomaro@gmail.com> | 2023-10-15 20:57:06 -0300 |
commit | 9ffa1801c75073afb851351ecdd1a8b40e33cc5c (patch) | |
tree | abaf913d230182e94e47bc2d9ea8783fc4e56470 /src/yuzu/util | |
parent | 4d4fe69223bd6cd053cbd2088e5925fb653a12d3 (diff) |
Typing and formatting errors fixed.
Diffstat (limited to 'src/yuzu/util')
-rw-r--r-- | src/yuzu/util/util.cpp | 3 | ||||
-rw-r--r-- | src/yuzu/util/util.h | 10 |
2 files changed, 3 insertions, 10 deletions
diff --git a/src/yuzu/util/util.cpp b/src/yuzu/util/util.cpp index 9755004ad..7b2a47496 100644 --- a/src/yuzu/util/util.cpp +++ b/src/yuzu/util/util.cpp @@ -42,7 +42,7 @@ QPixmap CreateCirclePixmapFromColor(const QColor& color) { return circle_pixmap; } -bool SaveIconToFile(const QImage& image, const std::filesystem::path& icon_path) { +bool SaveIconToFile(const std::filesystem::path& icon_path, const QImage& image) { #if defined(WIN32) #pragma pack(push, 2) struct IconDir { @@ -142,7 +142,6 @@ bool SaveIconToFile(const QImage& image, const std::filesystem::path& icon_path) } else { LOG_INFO(Frontend, "Wrote an icon to {}", icon_path.string()); } - return true; #else return false; diff --git a/src/yuzu/util/util.h b/src/yuzu/util/util.h index 31e82ff67..4094cf6c2 100644 --- a/src/yuzu/util/util.h +++ b/src/yuzu/util/util.h @@ -15,21 +15,15 @@ /** * Creates a circle pixmap from a specified color - * * @param color The color the pixmap shall have - * * @return QPixmap circle pixmap */ - [[nodiscard]] QPixmap CreateCirclePixmapFromColor(const QColor& color); /** * Saves a windows icon to a file - * - * @param image The image to save - * * @param path The icons path - * + * @param image The image to save * @return bool If the operation succeeded */ -[[nodiscard]] bool SaveIconToFile(const QImage& image, const std::filesystem::path& icon_path); +[[nodiscard]] bool SaveIconToFile(const std::filesystem::path& icon_path, const QImage& image); |