fixes, logging for off screen

ulab-next
Jay Sorg 12 years ago
parent 842fbc43e0
commit cce4f773d8

@ -2449,6 +2449,7 @@ xrdp_orders_send_create_os_surface(struct xrdp_orders *self, int id,
order_flags |= 1 << 2; /* type RDP_ORDER_ALTSEC_CREATE_OFFSCR_BITMAP */
out_uint8(self->out_s, order_flags);
cache_id = id & 0x7fff;
LLOGLN(10, ("xrdp_orders_send_create_os_surface: cache_id %d", cache_id));
flags = cache_id;
if (num_del_list > 0)

@ -708,6 +708,8 @@ xrdp_painter_copy(struct xrdp_painter *self,
int dsty;
int w;
int h;
int index;
struct list *del_list;
if (self == 0 || src == 0 || dst == 0)
{
@ -781,6 +783,22 @@ xrdp_painter_copy(struct xrdp_painter *self,
cache_id = 255; // todo
cache_idx = src->item_index; // todo
if (src->tab_stop == 0)
{
g_writeln("xrdp_painter_copy: warning src not created");
del_list = self->wm->cache->xrdp_os_del_list;
index = list_index_of(del_list, cache_idx);
list_remove_item(del_list, index);
libxrdp_orders_send_create_os_surface(self->session,
cache_idx,
src->width,
src->height,
del_list);
src->tab_stop = 1;
list_clear(del_list);
}
k = 0;
while (xrdp_region_get_rect(region, k, &rect1) == 0)

Loading…
Cancel
Save