mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-22 16:45:06 -04:00
Fix warnings in Windows build
This commit is contained in:
1 parent
e5b3c12814
commit
a762d00aa8
11 files changed
+49
-43
No files matched your search
+5
-1
@@ -133,9 +133,13 @@ void HyperXAlloyOriginsCoreController::SetLEDsDirect(std::vector<RGBColor> color
|
||||
| transfer the colors to the buffer. Max 94 colors to avoid buffer overflow. |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
if(colors.size() > 94)
|
||||
{
|
||||
total_colors = 94;
|
||||
}
|
||||
else
|
||||
total_colors = colors.size();
|
||||
{
|
||||
total_colors = (unsigned int)colors.size();
|
||||
}
|
||||
|
||||
for(unsigned int color_idx = 0; color_idx < total_colors; color_idx++)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user