neutrinordp module, use SendInvalidate on invalidate

ulab-next
Jay Sorg 11 years ago
parent 21df0406d7
commit c668b745d9

@ -181,6 +181,8 @@ lxrdp_event(struct mod *mod, int msg, long param1, long param2,
{ {
int x; int x;
int y; int y;
int cx;
int cy;
int flags; int flags;
int size; int size;
int total_size; int total_size;
@ -262,49 +264,12 @@ lxrdp_event(struct mod *mod, int msg, long param1, long param2,
case 110: case 110:
break; break;
case 200: case 200:
LLOGLN(12, ("Invalidate request sent from client")); LLOGLN(10, ("Invalidate request sent from client"));
RECTANGLE_16 *rectangle = (RECTANGLE_16 *) g_malloc(sizeof(RECTANGLE_16), 0); x = (param1 >> 16) & 0xffff;
/* The parameters are coded as follows param1 = MAKELONG(y, x), param2 =MAKELONG(h, w) y = (param1 >> 0) & 0xffff;
* #define MAKELONG(lo, hi) ((((hi) & 0xffff) << 16) | ((lo) & 0xffff)) cx = (param2 >> 16) & 0xffff;
*/ cy = (param2 >> 0) & 0xffff;
rectangle->left = (param1 >> 16) & 0xffff; mod->inst->SendInvalidate(mod->inst, -1, x, y, cx, cy);
rectangle->top = param1 & 0xffff;
rectangle->right = (((param2 >> 16) & 0xffff) + rectangle->left) - 1;
rectangle->bottom = ((param2 & 0xffff) + rectangle->top) - 1;
if (mod->inst->settings->refresh_rect)
{
if (mod->inst->update != NULL)
{
if (mod->inst->update->RefreshRect != NULL)
{
if (mod->inst->context != NULL)
{
LLOGLN(0, ("update rectangle left: %d top: %d bottom: %d right: %d",
rectangle->left, rectangle->top, rectangle->bottom, rectangle->right));
mod->inst->update->RefreshRect(mod->inst->context, 1, rectangle);
}
else
{
LLOGLN(0, ("Invalidate request -The context is null"));
}
}
else
{
LLOGLN(0, ("Invalidate request - RefreshRect is Null"));
}
}
else
{
LLOGLN(0, ("Invalidate request -the update pointer is null"));
}
}
else
{
LLOGLN(0, ("Invalidate request - warning - update rectangle is disabled"));
}
g_free(rectangle);
break; break;
case 0x5555: case 0x5555:
chanid = LOWORD(param1); chanid = LOWORD(param1);

Loading…
Cancel
Save