Cygwin/X: Remove WIN_DIB_MAXIMUM_SIZE check
This is only relevant to pre-NT versions of Windows, which are all EOL. Also, it's in the wrong place now as framebuffer can get resized. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net> Tested-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
parent
981ad1f364
commit
8385c426f8
|
@ -74,9 +74,6 @@
|
|||
#endif
|
||||
#define WIN_DEFAULT_USER_GAVE_HEIGHT_AND_WIDTH FALSE
|
||||
|
||||
#define WIN_DIB_MAXIMUM_SIZE 0x08000000 /* 16 MB on Windows 95, 98, Me */
|
||||
#define WIN_DIB_MAXIMUM_SIZE_MB (WIN_DIB_MAXIMUM_SIZE / 8 / 1024 / 1024)
|
||||
|
||||
/*
|
||||
* Windows only supports 256 color palettes
|
||||
*/
|
||||
|
|
|
@ -949,19 +949,6 @@ winAdjustVideoModeShadowDD (ScreenPtr pScreen)
|
|||
/* We'll use GDI's depth */
|
||||
pScreenInfo->dwBPP = dwBPP;
|
||||
}
|
||||
|
||||
/* See if the shadow bitmap will be larger than the DIB size limit */
|
||||
if (pScreenInfo->dwWidth * pScreenInfo->dwHeight * pScreenInfo->dwBPP
|
||||
>= WIN_DIB_MAXIMUM_SIZE)
|
||||
{
|
||||
ErrorF ("winAdjustVideoModeShadowDD - Requested DirectDraw surface "
|
||||
"will be larger than %d MB. The surface may fail to be "
|
||||
"allocated on Windows 95, 98, or Me, due to a %d MB limit in "
|
||||
"DIB size. This limit does not apply to Windows NT/2000, and "
|
||||
"this message may be ignored on those platforms.\n",
|
||||
WIN_DIB_MAXIMUM_SIZE_MB, WIN_DIB_MAXIMUM_SIZE_MB);
|
||||
}
|
||||
|
||||
/* Release our DC */
|
||||
ReleaseDC (NULL, hdc);
|
||||
return TRUE;
|
||||
|
|
|
@ -1010,18 +1010,6 @@ winAdjustVideoModeShadowDDNL (ScreenPtr pScreen)
|
|||
pScreenInfo->dwBPP = dwBPP;
|
||||
}
|
||||
|
||||
/* See if the shadow bitmap will be larger than the DIB size limit */
|
||||
if (pScreenInfo->dwWidth * pScreenInfo->dwHeight * pScreenInfo->dwBPP
|
||||
>= WIN_DIB_MAXIMUM_SIZE)
|
||||
{
|
||||
winErrorFVerb (1, "winAdjustVideoModeShadowDDNL - Requested DirectDraw surface "
|
||||
"will be larger than %d MB. The surface may fail to be "
|
||||
"allocated on Windows 95, 98, or Me, due to a %d MB limit in "
|
||||
"DIB size. This limit does not apply to Windows NT/2000, and "
|
||||
"this message may be ignored on those platforms.\n",
|
||||
WIN_DIB_MAXIMUM_SIZE_MB, WIN_DIB_MAXIMUM_SIZE_MB);
|
||||
}
|
||||
|
||||
/* Release our DC */
|
||||
ReleaseDC (NULL, hdc);
|
||||
|
||||
|
|
|
@ -445,18 +445,6 @@ winAllocateFBShadowGDI (ScreenPtr pScreen)
|
|||
(int) pScreenInfo->dwStride);
|
||||
#endif
|
||||
|
||||
/* See if the shadow bitmap will be larger than the DIB size limit */
|
||||
if (pScreenInfo->dwWidth * pScreenInfo->dwHeight * pScreenInfo->dwBPP
|
||||
>= WIN_DIB_MAXIMUM_SIZE)
|
||||
{
|
||||
ErrorF ("winAllocateFBShadowGDI - Requested DIB (bitmap) "
|
||||
"will be larger than %d MB. The surface may fail to be "
|
||||
"allocated on Windows 95, 98, or Me, due to a %d MB limit in "
|
||||
"DIB size. This limit does not apply to Windows NT/2000, and "
|
||||
"this message may be ignored on those platforms.\n",
|
||||
WIN_DIB_MAXIMUM_SIZE_MB, WIN_DIB_MAXIMUM_SIZE_MB);
|
||||
}
|
||||
|
||||
/* Determine our color masks */
|
||||
if (!winQueryRGBBitsAndMasks (pScreen))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user