|
|
|
@ -156,8 +156,13 @@ rdpRRScreenSetSize(ScreenPtr pScreen, CARD16 width, CARD16 height,
|
|
|
|
|
ErrorF(" resizing screenPixmap [%p] to %dx%d, currently at %dx%d\n",
|
|
|
|
|
(void *)screenPixmap, width, height,
|
|
|
|
|
screenPixmap->drawable.width, screenPixmap->drawable.height);
|
|
|
|
|
if (g_rdpScreen.sizeInBytes > g_rdpScreen.sizeInBytesAlloc)
|
|
|
|
|
{
|
|
|
|
|
g_free(g_rdpScreen.pfbMemory);
|
|
|
|
|
g_rdpScreen.pfbMemory = g_malloc(g_rdpScreen.sizeInBytes, 1);
|
|
|
|
|
g_rdpScreen.pfbMemory = (char*)g_malloc(g_rdpScreen.sizeInBytes, 1);
|
|
|
|
|
g_rdpScreen.sizeInBytesAlloc = g_rdpScreen.sizeInBytes;
|
|
|
|
|
ErrorF("new buffer size %d\n", g_rdpScreen.sizeInBytes);
|
|
|
|
|
}
|
|
|
|
|
pScreen->ModifyPixmapHeader(screenPixmap, width, height,
|
|
|
|
|
g_rdpScreen.depth, g_rdpScreen.bitsPerPixel,
|
|
|
|
|
g_rdpScreen.paddedWidthInBytes,
|
|
|
|
|