651 |
* The server may limit bpp and change the size of the desktop (for |
* The server may limit bpp and change the size of the desktop (for |
652 |
* example when shadowing another session). |
* example when shadowing another session). |
653 |
*/ |
*/ |
654 |
g_server_bpp = bpp; |
if (g_server_bpp != bpp) |
655 |
g_width = width; |
{ |
656 |
g_height = height; |
warning("colour depth changed from %d to %d\n", g_server_bpp, bpp); |
657 |
|
g_server_bpp = bpp; |
658 |
ui_resize_window(); |
} |
659 |
|
if (g_width != width || g_height != height) |
660 |
|
{ |
661 |
|
warning("screen size changed from %dx%d to %dx%d\n", g_width, g_height, |
662 |
|
width, height); |
663 |
|
g_width = width; |
664 |
|
g_height = height; |
665 |
|
ui_resize_window(); |
666 |
|
} |
667 |
} |
} |
668 |
|
|
669 |
/* Respond to a demand active PDU */ |
/* Respond to a demand active PDU */ |
988 |
//len -= 18; |
//len -= 18; |
989 |
|
|
990 |
/* allocate memory and copy the uncompressed data into the temporary stream */ |
/* allocate memory and copy the uncompressed data into the temporary stream */ |
991 |
ns->data = xrealloc(ns->data, rlen); |
ns->data = (uint8 *) xrealloc(ns->data, rlen); |
992 |
|
|
993 |
memcpy((ns->data), (unsigned char *) (g_mppc_dict.hist + roff), rlen); |
memcpy((ns->data), (unsigned char *) (g_mppc_dict.hist + roff), rlen); |
994 |
|
|