[Bug 42727] New: obsolete 128MB bitmap size limit
wine-bugs at winehq.org
wine-bugs at winehq.org
Tue Mar 28 10:42:51 CDT 2017
https://bugs.winehq.org/show_bug.cgi?id=42727
Bug ID: 42727
Summary: obsolete 128MB bitmap size limit
Product: Wine
Version: unspecified
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gdi32
Assignee: wine-bugs at winehq.org
Reporter: claude at mathr.co.uk
Distribution: ---
Created attachment 57708
--> https://bugs.winehq.org/attachment.cgi?id=57708
source code to probe supported bitmap size
The current WINE bitmap implementation has a size limit of 128MiB dating back
to 2008 with a comment about Windows XP:
https://source.winehq.org/git/wine.git/blob/39935fe5ad889d537d828cc82771bdb969cdb2d4:/dlls/gdi32/bitmap.c#l197
197 /* XP doesn't allow creating bitmaps larger than 128 MB */
198 if (bm.bmHeight > 128 * 1024 * 1024 / bm.bmWidthBytes)
199 {
200 SetLastError( ERROR_NOT_ENOUGH_MEMORY );
201 return 0;
202 }
However, recent versions of Windows seem to have a higher limit, of 2GiB.
Attached source code tries to create bitmaps with increasing sizes (each just
under 2^N bytes) and prints successes and eventual failure.
The bitmap test code seems to have a test for individual maximum dimension
(width), but not for maximum total bitmap size:
https://source.winehq.org/git/wine.git/blob/39935fe5ad889d537d828cc82771bdb969cdb2d4:/dlls/gdi32/tests/bitmap.c#l1487
Thanks for testing to users at
http://www.fractalforums.com/windows-fractal-software/windows-bitmap-size-test/
- I'll attach their results after submitting.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list