aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/utils/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wintermute/utils/utils.cpp')
-rw-r--r--engines/wintermute/utils/utils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/wintermute/utils/utils.cpp b/engines/wintermute/utils/utils.cpp
index 46e5a8da36..ca68b3c691 100644
--- a/engines/wintermute/utils/utils.cpp
+++ b/engines/wintermute/utils/utils.cpp
@@ -256,9 +256,9 @@ char *CBUtils::getFilename(const char *filename) {
//////////////////////////////////////////////////////////////////////////
void CBUtils::RGBtoHSL(uint32 RGBColor, byte *OutH, byte *OutS, byte *OutL) {
- float var_R = (D3DCOLGetR(RGBColor) / 255.0f);
- float var_G = (D3DCOLGetG(RGBColor) / 255.0f);
- float var_B = (D3DCOLGetB(RGBColor) / 255.0f);
+ float var_R = (RGBCOLGetR(RGBColor) / 255.0f);
+ float var_G = (RGBCOLGetG(RGBColor) / 255.0f);
+ float var_B = (RGBCOLGetB(RGBColor) / 255.0f);
//Min. value of RGB
float var_Min = MIN(var_R, var_G);
@@ -328,7 +328,7 @@ uint32 CBUtils::HSLtoRGB(byte InH, byte InS, byte InL) {
G = (byte)(255 * Hue2RGB(var_1, var_2, H));
B = (byte)(255 * Hue2RGB(var_1, var_2, H - (1.0f / 3.0f)));
}
- return DRGBA(255, R, G, B);
+ return BYTETORGBA(255, R, G, B);
}