summaryrefslogtreecommitdiff
path: root/libs/freeimage/src/FreeImage/ColorLookup.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-12-26 16:39:04 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-12-26 16:39:04 +0300
commit62a186697df33c96dc1a6dac0f4dfc38652fb96f (patch)
tree1437d0906218fae8827aed384026f2b7e656f4ac /libs/freeimage/src/FreeImage/ColorLookup.cpp
parentfcbb395dc7ff3edab972b6d4b27dbbfb3305f5d7 (diff)
BYTE -> uint8_t
Diffstat (limited to 'libs/freeimage/src/FreeImage/ColorLookup.cpp')
-rw-r--r--libs/freeimage/src/FreeImage/ColorLookup.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/libs/freeimage/src/FreeImage/ColorLookup.cpp b/libs/freeimage/src/FreeImage/ColorLookup.cpp
index a96bead208..fd77895bad 100644
--- a/libs/freeimage/src/FreeImage/ColorLookup.cpp
+++ b/libs/freeimage/src/FreeImage/ColorLookup.cpp
@@ -26,9 +26,9 @@
typedef struct tagNamedColor {
const char *name; //! color name
- BYTE r; //! red value
- BYTE g; //! green value
- BYTE b; //! blue value
+ uint8_t r; //! red value
+ uint8_t g; //! green value
+ uint8_t b; //! blue value
} NamedColor;
// --------------------------------------------------------------------------
@@ -554,7 +554,7 @@ static NamedColor X11ColorMap[] = {
BOOL DLL_CALLCONV
-FreeImage_LookupX11Color(const char *szColor, BYTE *nRed, BYTE *nGreen, BYTE *nBlue) {
+FreeImage_LookupX11Color(const char *szColor, uint8_t *nRed, uint8_t *nGreen, uint8_t *nBlue) {
int i;
// lookup color
@@ -574,7 +574,7 @@ FreeImage_LookupX11Color(const char *szColor, BYTE *nRed, BYTE *nGreen, BYTE *nB
// grey<num>, or gray<num>, num 1...100
i = strtol(szColor+4, NULL, 10);
- *nRed = (BYTE)(255.0/100.0 * i);
+ *nRed = (uint8_t)(255.0/100.0 * i);
*nGreen = *nRed;
*nBlue = *nRed;
@@ -748,7 +748,7 @@ static NamedColor SVGColorMap[] = {
BOOL DLL_CALLCONV
-FreeImage_LookupSVGColor(const char *szColor, BYTE *nRed, BYTE *nGreen, BYTE *nBlue) {
+FreeImage_LookupSVGColor(const char *szColor, uint8_t *nRed, uint8_t *nGreen, uint8_t *nBlue) {
int i;
// lookup color
@@ -768,7 +768,7 @@ FreeImage_LookupSVGColor(const char *szColor, BYTE *nRed, BYTE *nGreen, BYTE *nB
// grey<num>, or gray<num>, num 1...100
i = strtol(szColor+4, NULL, 10);
- *nRed = (BYTE)(255.0/100.0 * i);
+ *nRed = (uint8_t)(255.0/100.0 * i);
*nGreen = *nRed;
*nBlue = *nRed;
return TRUE;