Skip to content

Commit

Permalink
GUACAMOLE-377: Ignore alpha for rectangle operations on opaque layers.
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-jumper committed Sep 27, 2024
1 parent 75f5803 commit 0b68296
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/libguac/display-plan.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,12 +412,12 @@ void guac_display_plan_apply(guac_display_plan* plan) {

/* Clear before drawing if layer is not opaque (transparency
* will not be copied correctly otherwise) */
if (!display_layer->opaque)
guac_protocol_send_cfill(client->socket, GUAC_COMP_ROUT, display_layer->layer,
0x00, 0x00, 0x00, 0xFF);

guac_protocol_send_cfill(client->socket, GUAC_COMP_OVER, display_layer->layer,
red, green, blue, alpha);
if (!display_layer->opaque) {
guac_protocol_send_cfill(client->socket, GUAC_COMP_ROUT, display_layer->layer, 0x00, 0x00, 0x00, 0xFF);
guac_protocol_send_cfill(client->socket, GUAC_COMP_OVER, display_layer->layer, red, green, blue, alpha);
}
else
guac_protocol_send_cfill(client->socket, GUAC_COMP_OVER, display_layer->layer, red, green, blue, 0xFF);

break;

Expand Down

0 comments on commit 0b68296

Please sign in to comment.