summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/dyepalette.cpp3
-rw-r--r--src/resources/dyepalette.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/resources/dyepalette.cpp b/src/resources/dyepalette.cpp
index 4c62abd1c..753ff6823 100644
--- a/src/resources/dyepalette.cpp
+++ b/src/resources/dyepalette.cpp
@@ -99,7 +99,8 @@ unsigned int DyePalette::hexDecode(const signed char c)
return 0;
}
-void DyePalette::getColor(const int intensity, int color[3]) const
+void DyePalette::getColor(const unsigned int intensity,
+ unsigned int color[3]) const
{
if (intensity == 0)
{
diff --git a/src/resources/dyepalette.h b/src/resources/dyepalette.h
index a2f555b4f..39576002e 100644
--- a/src/resources/dyepalette.h
+++ b/src/resources/dyepalette.h
@@ -49,7 +49,8 @@ class DyePalette final
* Gets a pixel color depending on its intensity. First color is
* implicitly black (0, 0, 0).
*/
- void getColor(const int intensity, int color[3]) const;
+ void getColor(const unsigned int intensity,
+ unsigned int color[3]) const;
/**
* Gets a pixel color depending on its intensity.