[NUI] Palette Fix incorrectly caclulated color values
authorWoochanlee <wc0917.lee@samsung.com>
Wed, 7 Apr 2021 10:54:19 +0000 (19:54 +0900)
committerhuiyueun <35286162+huiyueun@users.noreply.github.com>
Tue, 20 Apr 2021 06:13:00 +0000 (15:13 +0900)
src/Tizen.NUI/src/public/Utility/Palette.cs

index 2e9175d..da0cb6a 100755 (executable)
@@ -502,9 +502,9 @@ namespace Tizen.NUI
             [EditorBrowsable(EditorBrowsableState.Never)]
             public Swatch(int rgbcolorInt, int populationOfSwatch)
             {
-                red = (int)(((rgbcolorInt >> 16) & 0xff) / 255.0f);
-                green = (int)(((rgbcolorInt >> 8) & 0xff) / 255.0f);
-                blue = (int)((rgbcolorInt & 0xff) / 255.0f);
+                red = (int)((rgbcolorInt >> 16) & 0xff);
+                green = (int)((rgbcolorInt >> 8) & 0xff);
+                blue = (int)(rgbcolorInt & 0xff);
                 colorInt = rgbcolorInt;
                 population = populationOfSwatch;
             }