summaryrefslogtreecommitdiff
path: root/NxWidgets/nxwm/src/glyph_stop.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'NxWidgets/nxwm/src/glyph_stop.cxx')
-rw-r--r--NxWidgets/nxwm/src/glyph_stop.cxx33
1 files changed, 27 insertions, 6 deletions
diff --git a/NxWidgets/nxwm/src/glyph_stop.cxx b/NxWidgets/nxwm/src/glyph_stop.cxx
index 9081b48a2..a60b75ce8 100644
--- a/NxWidgets/nxwm/src/glyph_stop.cxx
+++ b/NxWidgets/nxwm/src/glyph_stop.cxx
@@ -70,22 +70,34 @@ using namespace NxWM;
#if CONFIG_NXWIDGETS_BPP == 24 || CONFIG_NXWIDGETS_BPP == 32
-static const uint32_t g_stopLut[BITMAP_NLUTCODES] =
+static const uint32_t g_stopNormalLut[BITMAP_NLUTCODES] =
{
0xd8d8d8, 0xfc6c6c, 0xfcb4b4, 0xd80000, 0xfc0000, 0x902424, 0xfcfcfc, 0xd8fcfc, /* Codes 0-7 */
0xb40000, 0xb40024, 0xfcd8d8 /* Codes 8-10 */
};
+static const uint32_t g_stopBrightLut[BITMAP_NLUTCODES] =
+{
+ 0xe1e1e1, 0xfc9090, 0xfcc6c6, 0xe13f3f, 0xfc3f3f, 0xab5a5a, 0xfcfcfc, 0xe1fcfc, /* Codes 0-7 */
+ 0xc63f3f, 0xc63f5a, 0xfce1e1 /* Codes 8-10 */
+};
+
/* RGB16 (565) Colors (four of the colors in this map are duplicates) */
#elif CONFIG_NXWIDGETS_BPP == 16
-static const uint16_t g_stopLut[BITMAP_NLUTCODES] =
+static const uint16_t g_stopNormalLut[BITMAP_NLUTCODES] =
{
0xdedb, 0xfb6d, 0xfdb6, 0xd800, 0xf800, 0x9124, 0xffff, 0xdfff, 0xb000, 0xb004, /* Codes 0-9 */
0xfedb /* Codes 10-10 */
};
+static const uint16_t g_stopBrightLut[BITMAP_NLUTCODES] =
+{
+ 0xe71c, 0xfc92, 0xfe38, 0xe1e7, 0xf9e7, 0xaacb, 0xffff, 0xe7ff, 0xc1e7, 0xc1eb, /* Codes 0-9 */
+ 0xff1c /* Codes 10-10 */
+};
+
/* 8-bit color lookups. NOTE: This is really dumb! The lookup index is 8-bits and it used
* to lookup an 8-bit value. There is no savings in that! It would be better to just put
* the 8-bit color/greyscale value in the run-length encoded image and save the cost of these
@@ -98,21 +110,30 @@ static const uint16_t g_stopLut[BITMAP_NLUTCODES] =
/* 8-bit Greyscale */
-static const uint8_t g_stopLut[BITMAP_NLUTCODES] =
+static const uint8_t g_stopNormalLut[BITMAP_NLUTCODES] =
{
0xd8, 0x97, 0xc9, 0x40, 0x4b, 0x44, 0xfc, 0xf1, 0x35, 0x39, 0xe2 /* Codes 0-10 */
+};
+static const uint8_t g_stopBrightLut[BITMAP_NLUTCODES] =
+{
+ 0xe1, 0xb0, 0xd6, 0x6f, 0x77, 0x72, 0xfc, 0xf3, 0x67, 0x6a, 0xe9 /* Codes 0-10 */
};
# else /* CONFIG_NXWIDGETS_GREYSCALE */
/* RGB8 (332) Colors */
-static const nxgl_mxpixel_t g_stopLut[BITMAP_NLUTCODES] =
+static const nxgl_mxpixel_t g_stopNormalLut[BITMAP_NLUTCODES] =
{
0xdb, 0xed, 0xf6, 0xc0, 0xe0, 0x84, 0xff, 0xdf, 0xa0, 0xa0, 0xfb /* Codes 0-10 */
};
+static const uint8_t g_stopBrightLut[BITMAP_NLUTCODES] =
+{
+ 0xff, 0xf2, 0xfb, 0xe4, 0xe4, 0xa9, 0xff, 0xff, 0xc4, 0xc5, 0xff /* Codes 0-10 */
+};
+
# endif
#else
# error "Unsupport pixel format"
@@ -166,8 +187,8 @@ const struct NXWidgets::SRlePaletteBitmap NxWM::g_stopBitmap =
BITMAP_NCOLUMNS, // width - Width in pixels
BITMAP_NROWS, // height - Height in rows
{ // lut - Pointer to the beginning of the Look-Up Table (LUT)
- g_stopLut, // Index 0: Unselected LUT
- g_stopLut, // Index 1: Selected LUT
+ g_stopNormalLut, // Index 0: Unselected LUT
+ g_stopBrightLut, // Index 1: Selected LUT
},
g_stopRleEntries // data - Pointer to the beginning of the RLE data
};