add a comment

This commit is contained in:
jsorg71 2008-08-31 21:07:40 +00:00
parent bc0f9e453c
commit 683dfa9a86
1 changed files with 6 additions and 4 deletions

View File

@ -196,10 +196,10 @@ xrdp_orders_last_bounds(struct xrdp_orders* self, struct xrdp_rect* rect)
{ {
return 0; return 0;
} }
if (rect->left == self->orders_state.clip_left && if ((rect->left == self->orders_state.clip_left) &&
rect->top == self->orders_state.clip_top && (rect->top == self->orders_state.clip_top) &&
rect->right == self->orders_state.clip_right && (rect->right == self->orders_state.clip_right) &&
rect->bottom == self->orders_state.clip_bottom) (rect->bottom == self->orders_state.clip_bottom))
{ {
return 1; return 1;
} }
@ -1003,6 +1003,8 @@ xrdp_orders_line(struct xrdp_orders* self, int mix_mode,
char* order_flags_ptr; char* order_flags_ptr;
struct xrdp_pen blank_pen; struct xrdp_pen blank_pen;
/* if mix mode or rop are out of range, mstsc build 6000+ will parse the orders
wrong */
if ((mix_mode < 1) || (mix_mode > 2)) /* TRANSPARENT(1) or OPAQUE(2) */ if ((mix_mode < 1) || (mix_mode > 2)) /* TRANSPARENT(1) or OPAQUE(2) */
{ {
mix_mode = 1; mix_mode = 1;