https://bugs.winehq.org/show_bug.cgi?id=40276
Bug ID: 40276 Summary: Half-Life: Transparency problem when displaying the logo video Product: Wine Version: 1.9.5 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: 00cpxxx@gmail.com CC: xylem2020@gmail.com Distribution: ---
This is a split from bug 22533. It seems to be related to the way comctl32 determines the transparent color or maybe in how it applies the color. I'l add more info and workarounds later.
https://bugs.winehq.org/show_bug.cgi?id=40276
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://www.fileplanet.com/1 | |0360/download/Half-Life:-Up | |Link-Demo Component|-unknown |comctl32
https://bugs.winehq.org/show_bug.cgi?id=40276
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wylda@volny.cz
https://bugs.winehq.org/show_bug.cgi?id=40276
Johan Gardhage johan.gardhage@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |johan.gardhage@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=40276
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #1 from winetest@luukku.com --- The video is unskipable.
I quess fixme:mci:MCI_Break (0102) vkey 001B stub Would fix it.
I quess nothing has changed. I also tried wine-staging version once and I got a crash.
It printed multiple times this
err:clipboard:convert_selection Timed out waiting for SelectionNotify event.
wine 2.0rc5.
https://bugs.winehq.org/show_bug.cgi?id=40276
--- Comment #2 from Xylemon xylem2020@gmail.com --- (In reply to winetest from comment #1)
Hi winetest,
I believe you are referring to the intro videos (the ones that play upon launching the game yes?), if so then it's a different bug. This bug is actually about Half-Life's menu. The logo that displays on the game's menu is an AVI file that isn't playing correctly due to Wine's implementation of comctl32 (using the library from a copy of Windows works around this problem).
The video is unskipable.
You can skip the intro videos if you launch HL with the "-novid" or "-dev -console" parameters, the latter launches in "developer mode" thus skipping the videos.
I also tried wine-staging version once and I got a crash.
It may be worth trying out the latest Staging version of Wine again (don't launch it in fullscreen mode in a virtual window however, it will crash), as I was suffering from the intro videos crashing as well but it was fixed for me not too long ago.
Hope this was helpful.
https://bugs.winehq.org/show_bug.cgi?id=40276
--- Comment #3 from Xylemon xylem2020@gmail.com ---
It may be worth trying out the latest Staging version of Wine again (don't launch it in fullscreen mode in a virtual window however, it will crash)
Correction, launching Half-Life in fullscreen regardless of a virtual window will cause it to crash in Staging.
https://bugs.winehq.org/show_bug.cgi?id=40276
--- Comment #4 from winetest@luukku.com --- (In reply to Xylemon from comment #3)
It may be worth trying out the latest Staging version of Wine again (don't launch it in fullscreen mode in a virtual window however, it will crash)
Correction, launching Half-Life in fullscreen regardless of a virtual window will cause it to crash in Staging.
I think Sebastian already fixed this. See bug 42262.
https://bugs.winehq.org/show_bug.cgi?id=40276
--- Comment #5 from Bruno Jesus 00cpxxx@gmail.com --- The specific problem in this bug seems to be that Wine's comctl32 chooses the wrong background color to use as transparency. While Windows chooses 0x80808 Wine chooses 0xb0b0b.
0xb0b0b is indeed the color at GetPixel(0,0) from the first frame in the movie so I don't know where the Windows value came from (my tests may be wrong).
By forcing the color to any color that is not in the video it works correctly as it won't "draw" any transparency.
This is the code I'm talking about: http://source.winehq.org/source/dlls/comctl32/animate.c#0303
https://bugs.winehq.org/show_bug.cgi?id=40276
--- Comment #6 from Wylda wylda@volny.cz ---
Hi Bruno, is this still an issue? It seems to be fine in wine-4.0-rc2 (definitely not blue as used to be in bug 22533). Unfortunately there are no pictures of what you encountered.
https://bugs.winehq.org/show_bug.cgi?id=40276
--- Comment #9 from Chebanenko Igor chebanenkoigor93@gmail.com --- We have Wine 7.0 right now. Any updates?
https://bugs.winehq.org/show_bug.cgi?id=40276
--- Comment #10 from Xylemon xylemon@posteo.net --- Just want to say this bug is still an issue in 7.1
Screenshot of how it appears in WINE:
https://i.imgur.com/CkmVShU.png
How it should look:
https://www.youtube.com/watch?v=wGJzMp7b-MY
Remember that this is for the CD Version, it's very different from Steam. This menu is done via Windows MFC (CWnd) where as the Steam version of HL is all in-game via OpenGL.