Hand-apply patches (framebuffer alloc) from Authentic8 branch: 15ba9cc409e8f57e1800abcd52e77ed409b6cc17
This commit is contained in:
parent
112f680318
commit
81488cd615
@ -273,7 +273,7 @@ rdpScreenInit(int index, ScreenPtr pScreen, int argc, char **argv)
|
||||
g_rdpScreen.sizeInBytes =
|
||||
(g_rdpScreen.paddedWidthInBytes * g_rdpScreen.height);
|
||||
ErrorF("buffer size %d\n", g_rdpScreen.sizeInBytes);
|
||||
g_rdpScreen.pfbMemory = (char *)g_malloc(2048 * 2048 * 4, 1);
|
||||
g_rdpScreen.pfbMemory = (char *)g_malloc(g_rdpScreen.sizeInBytes, 1);
|
||||
}
|
||||
|
||||
if (g_rdpScreen.pfbMemory == 0)
|
||||
|
@ -156,6 +156,8 @@ 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);
|
||||
g_free(g_rdpScreen.pfbMemory);
|
||||
g_rdpScreen.pfbMemory = g_malloc(g_rdpScreen.sizeInBytes, 1);
|
||||
pScreen->ModifyPixmapHeader(screenPixmap, width, height,
|
||||
g_rdpScreen.depth, g_rdpScreen.bitsPerPixel,
|
||||
g_rdpScreen.paddedWidthInBytes,
|
||||
|
Loading…
Reference in New Issue
Block a user