mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-19 15:22:10 -04:00
Fix warnings in MSIVigorGK30Controller.cpp
This commit is contained in:
1 parent
91adb32c5b
commit
d5b682e8b3
1 file changed
+3
-3
@@ -87,9 +87,9 @@ unsigned char MSIVigorGK30Controller::GetColourIndex(unsigned char red, unsigned
|
||||
| 0x06 white |
|
||||
\*-----------------------------------------------------*/
|
||||
unsigned int divisor = GetLargestColour( red, green, blue);
|
||||
unsigned int r = round( red / divisor );
|
||||
unsigned int g = round( green / divisor );
|
||||
unsigned int b = round( blue / divisor );
|
||||
unsigned int r = (unsigned int)round( red / divisor );
|
||||
unsigned int g = (unsigned int)round( green / divisor );
|
||||
unsigned int b = (unsigned int)round( blue / divisor );
|
||||
unsigned char idx = argb_colour_index_data[r][g][b];
|
||||
return idx;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user