Skip to content

Commit 2dc24b7

Browse files
committed
vfx: revert color fix, this problem is related to the FPGA side
1 parent 60fd510 commit 2dc24b7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

main/inc/user/vfx.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ typedef struct {
5454
#define DEFAULT_VFX_SCALE_FACTOR 0xFF
5555

5656
#ifndef CONFIG_VFX_OUTPUT_CUBE0414
57-
#define DEFAULT_VFX_LIGHTNESS 0x01FF
58-
#else
5957
#define DEFAULT_VFX_LIGHTNESS 0x00FF
58+
#else
59+
#define DEFAULT_VFX_LIGHTNESS 0x006F
6060
#endif
6161

6262
#define DEFAULT_VFX_BACKLIGHT 0xFF

main/src/user/vfx_core.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static uint32_t hsl2rgb(float H, float S, float L)
6363

6464
uint32_t vfx_get_color(float color_h, float color_l)
6565
{
66-
return hsl2rgb(color_h / 511.0, 1.0, color_l / 2047.0);
66+
return hsl2rgb(color_h / 511.0, 1.0, color_l / 511.0);
6767
}
6868

6969
#ifndef CONFIG_SCREEN_PANEL_OUTPUT_VFX

0 commit comments

Comments
 (0)