mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-11 04:57:15 +00:00
Changed everything to use floats instead of doubles
This commit is contained in:
1 parent
13afc29987
commit
b328032df0
36 files changed
+433
-472
No files matched your search
@@ -8,10 +8,10 @@ namespace RGB.NET.Devices.Corsair
|
||||
internal static Rectangle ToRectangle(this _CorsairLedPosition position)
|
||||
{
|
||||
//HACK DarthAffe 08.07.2018: It seems like corsair introduced a bug here - it's always 0.
|
||||
double width = position.width < 0.5 ? 10 : position.width;
|
||||
double height = position.height < 0.5 ? 10 : position.height;
|
||||
double posX = position.left;
|
||||
double posY = position.top;
|
||||
float width = position.width < 0.5f ? 10 : (float)position.width;
|
||||
float height = position.height < 0.5f ? 10 : (float)position.height;
|
||||
float posX = (float)position.left;
|
||||
float posY = (float)position.top;
|
||||
|
||||
return new Rectangle(posX, posY, width, height);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user