Increase the maximum framebuffer size to 32767x32767

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Antoine Martin <antoine@devloop.org.uk>
Tested-by: Antoine Martin <antoine@devloop.org.uk>
This commit is contained in:
Antoine Martin 2011-05-25 06:03:10 -04:00 committed by Adam Jackson
parent f8dc281042
commit fb0888f90d

View File

@ -85,6 +85,9 @@ static Bool dummyDriverFunc(ScrnInfoPtr pScrn, xorgDriverFuncOp op,
#define DUMMY_MINOR_VERSION PACKAGE_VERSION_MINOR #define DUMMY_MINOR_VERSION PACKAGE_VERSION_MINOR
#define DUMMY_PATCHLEVEL PACKAGE_VERSION_PATCHLEVEL #define DUMMY_PATCHLEVEL PACKAGE_VERSION_PATCHLEVEL
#define DUMMY_MAX_WIDTH 32767
#define DUMMY_MAX_HEIGHT 32767
/* /*
* This is intentionally screen-independent. It indicates the binding * This is intentionally screen-independent. It indicates the binding
* choice made in the first PreInit. * choice made in the first PreInit.
@ -402,8 +405,9 @@ DUMMYPreInit(ScrnInfoPtr pScrn, int flags)
int apertureSize = (pScrn->videoRam * 1024); int apertureSize = (pScrn->videoRam * 1024);
i = xf86ValidateModes(pScrn, pScrn->monitor->Modes, i = xf86ValidateModes(pScrn, pScrn->monitor->Modes,
pScrn->display->modes, clockRanges, pScrn->display->modes, clockRanges,
NULL, 256, 2048,(8 * pScrn->bitsPerPixel), NULL, 256, DUMMY_MAX_WIDTH,
128, 2048, pScrn->display->virtualX, (8 * pScrn->bitsPerPixel),
128, DUMMY_MAX_HEIGHT, pScrn->display->virtualX,
pScrn->display->virtualY, apertureSize, pScrn->display->virtualY, apertureSize,
LOOKUP_BEST_REFRESH); LOOKUP_BEST_REFRESH);