Skip to content

Commit ce163b5

Browse files
committed
Fix error
1 parent 5a8d565 commit ce163b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/graphics/source/examples/ColorLab.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,9 @@ class ColorLabDemo : public yup::Component
370370
return 1.055 * std::pow (value, 1.0 / 2.4) - 0.055;
371371
}
372372

373-
static uint8 toByte (double value)
373+
static yup::uint8 toByte (double value)
374374
{
375-
return static_cast<uint8> (yup::roundToInt (yup::jlimit (0.0, 1.0, value) * 255.0));
375+
return static_cast<yup::uint8> (yup::roundToInt (yup::jlimit (0.0, 1.0, value) * 255.0));
376376
}
377377

378378
static yup::Color colorFromNormalized (double r, double g, double b, double a)

0 commit comments

Comments
 (0)