We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32c91e7 commit a181423Copy full SHA for a181423
1 file changed
hw/display/st7789v.c
@@ -126,9 +126,12 @@ static void draw_skin(ConsoleState *c) {
126
for (int i = 0; i < board_skin->height; i++)
127
for (int j = 0; j < board_skin->width; j++) {
128
pixel p = board_skin->pixel_data[i * board_skin->width + j];
129
+ p.r=(p.r*p.a)/255;
130
+ p.g=(p.g*p.a)/255;
131
+ p.b=(p.b*p.a)/255;
132
uint32_t rgba= (p.a<<24) | (p.r<<16) | (p.g<<8) | p.b;
- if (p.a < 200)
- rgba=0xff000000;
133
+ // if (p.a < 200)
134
+ // rgba=0xff000000;
135
uint16_t rgb565=argbto565(rgba);
136
if (c->width < c->height) // portrait
137
dest[i * board_skin->width + j] = rgb565;
0 commit comments