Fixed the alpha applying on the server side.
This commit is contained in:
parent
d9594f1ea3
commit
2bf04a9d52
1 changed files with 4 additions and 4 deletions
|
|
@ -95,14 +95,14 @@ void write_pixel_to_screen(uint16_t x, uint16_t y, uint8_t r, uint8_t g, uint8_t
|
|||
// Get the old pixel
|
||||
if (vinfo.bits_per_pixel == 24) { // 24bpp format
|
||||
pix_offset = 3 * x + y * finfo.line_length;
|
||||
temp_r = fbp[pix_offset+0];
|
||||
temp_r = fbp[pix_offset+2];
|
||||
temp_g = fbp[pix_offset+1];
|
||||
temp_b = fbp[pix_offset+2];
|
||||
temp_b = fbp[pix_offset+0];
|
||||
} else if (vinfo.bits_per_pixel == 32) { // 32bpp format
|
||||
pix_offset = 4 * x + y * finfo.line_length;
|
||||
temp_r = fbp[pix_offset+0];
|
||||
temp_r = fbp[pix_offset+2];
|
||||
temp_g = fbp[pix_offset+1];
|
||||
temp_b = fbp[pix_offset+2];
|
||||
temp_b = fbp[pix_offset+0];
|
||||
} else {
|
||||
temp_r = 0;
|
||||
temp_g = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue