http://bugs.winehq.org/show_bug.cgi?id=5535
--- Comment #73 from Alex Bradbury asb@asbradbury.org 2011-06-27 10:08:26 CDT --- (In reply to comment #72)
I can reproduce the issue. The game tries to fill the entire video memory with surfaces. Each surface gets a DIB section, and GDI runs out of handles. In the old ddraw code it worked because it faked only 8 MB of video memory. Wined3d tries to make a reasonable guess based on your GPU, so usually you have up to two gigs of emulated vidmem.
There are two workarounds: The first is to use the opengl renderer for directdraw, which doesn't need DIB sections for most of its surfaces. Or you could limit the video memory to a small size. See the useful registry keys wiki page for details on both settings.
Thanks for taking a look. What do you propose should happen to this bug? At the very least I suggest changing the title to reflect the GDI running out of handles issue that it seems to focus on (the current summary is far too vague).
It looks like comment 65-67 describes graphical glitches occurring with DirectDrawRenderer=opengl - that sounds like it should be a separate bug report.