From 60653509fa1a896677d9049dd36336bc871b6258 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Tue, 3 Nov 2020 11:25:48 +0100 Subject: [PATCH] source/Platform/PlatformDisplay.h: change setIcon() parameters to take a pixel array instead of filename --- source/Platform/PlatformDisplay.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/Platform/PlatformDisplay.h b/source/Platform/PlatformDisplay.h index f805732..2c88416 100644 --- a/source/Platform/PlatformDisplay.h +++ b/source/Platform/PlatformDisplay.h @@ -4,9 +4,10 @@ #include #include +#include +#include // Low-level platform dependant API. -#include namespace sp { @@ -36,7 +37,7 @@ public : virtual void setCaption(const std::string& caption) = 0; - virtual void setIcon(const std::string& icon) = 0; + virtual void setIcon(unsigned int width, unsigned int height, const uint8_t *pixels) = 0; virtual void showCursor(bool value) = 0;