[Bug 22533] Half Life: loading screen rendering is wrong (msrle32 does not handle frames with 0 biClrUsed)

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Mar 10 04:02:39 CST 2016


https://bugs.winehq.org/show_bug.cgi?id=22533

--- Comment #21 from Bruno Jesus <00cpxxx at gmail.com> ---
Created attachment 53911
  --> https://bugs.winehq.org/attachment.cgi?id=53911
ugly hack for gray rubish

I have no idea why but the problem happens while the games print some specific
(maybe key frames?) frames using StretchBlt.

While calling nulldrv_StretchBlt (gdi32/bitblt.c) Wine will fail with
ERROR_BAD_FORMAT on function dst_dev->funcs->pPutImage (line 271). Then it will
attempt to get the correct colors and try again by calling get_mono_dc_colors
(line 278). This will result in the incorrect color and then gray rubish.

If I change get_mono_dc_colors to return the text color instead of the back
color it will work, most likely by pure luck.

Something wrong is happening way before all this but I couldn't trace back to
the origin.

Can you try to see if the hack works for the logo video for you? This probably
won't help TFC and REQUIRES the other patch attached here.

-- 
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