mirror of
https://git.suyu.dev/suyu/suyu
synced 2025-09-10 00:06:32 -05:00
Typing and formatting errors fixed.
This commit is contained in:
@@ -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;
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user