http://bugs.winehq.org/show_bug.cgi?id=29545
Bug #: 29545 Summary: Black Mirror 2: mouse pointer hidden behind a white box Product: Wine Version: 1.3.36 Platform: x86 URL: http://www.fileplanet.com/206087/200000/fileinfo/Black -Mirror-2-Demo-%28German%29 OS/Version: Linux Status: NEW Keywords: download, regression Severity: minor Priority: P2 Component: winex11.drv AssignedTo: wine-bugs@winehq.org ReportedBy: gyebro69@gmail.com CC: stefandoesinger@gmx.at Classification: Unclassified Regression SHA1: 7f97af2e2e40e39371dd1c847fdeec4d2b012d71
Created attachment 38277 --> http://bugs.winehq.org/attachment.cgi?id=38277 terminal output
Black Mirror 2 is a point-n-click adventure game. When there is nothing of interest under the mouse pointer, the pointer is shown as a silver (grey) arrow (this appears correctly in Wine). When the mouse pointer hits a "hotspot" in the game (e.g. an object with which you can interact) it turns red. This red arrow is covered by a solid white box in Wine. I can't show you a picture of this artefact simply because the white box doesn't appear in the screenshots.
Steps to reproduce the problem with the demo: 1. Install the demo as usual (DirectX installation is not needed). 2. Launch the demo. You will be greeted with an error message. Click on the <Ignore> button 7 times to get rid of it (that's bug #24563). 3. You can see the white box on the screen while the game is loading to the menu. In the menus the pointer appears correctly (it's the default silver arrow). 4. Start a new game, skip the intro videos. When you gain control over your character move the mouse across the screen. There are several hotspots on the scene, when the pointer is hitting one of them it turns to a white box. If you move the mouse quickly you can spot the red arrow, hiding behind the white box.
I found that the mouse pointer appeared as it should have in Wine-0.9.50, and bisecting resulted:
7f97af2e2e40e39371dd1c847fdeec4d2b012d71 is the first bad commit commit 7f97af2e2e40e39371dd1c847fdeec4d2b012d71 Author: Stefan Dösinger stefan@codeweavers.com Date: Thu Dec 13 12:12:23 2007 +0100
winex11: Ignore the alpha if all pixels are 0.
:040000 040000 b600b1a61b3478db4810b1855845770556534133 ef19db01eb504badaa04120868098925203c3230 M dlls
The demo has a huge download size (1.3 Gb). I willingly provide logs or tests if they are needed.
Fedora 16 Nvidia 250 / driver 290.10 X.Org X Server 1.11.3
http://bugs.winehq.org/show_bug.cgi?id=29545
Stefan Dösinger stefan@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |stefan@codeweavers.com
--- Comment #1 from Stefan Dösinger stefan@codeweavers.com 2012-01-21 14:49:20 CST --- My suspicion is that unlike user32, d3d9 does not show the cursor if all alpha pixels are 0.0. This needs more testing. Probably native d3d9 uses a mask for the cursor image and removes the alpha information.
http://bugs.winehq.org/show_bug.cgi?id=29545
--- Comment #2 from Stefan Dösinger stefan@codeweavers.com 2012-01-22 02:41:32 CST --- Created attachment 38489 --> http://bugs.winehq.org/attachment.cgi?id=38489 Proposed fix
Can you give this patch a try? It fixes the demo for me.
Before I send it to wine-patches I want to check if there's a way to test this behavior and make the bitmap creation nicer.
http://bugs.winehq.org/show_bug.cgi?id=29545
--- Comment #3 from GyB gyebro69@gmail.com 2012-01-22 04:45:21 CST ---
Can you give this patch a try? It fixes the demo for me.
The patch fixes the problem in the full version of the game too.
http://bugs.winehq.org/show_bug.cgi?id=29545
--- Comment #4 from Henri Verbeet hverbeet@gmail.com 2012-01-27 11:50:30 CST --- Should be fixed by 348c655b5cc670f53d3b266b3e21f61cc978faca.
http://bugs.winehq.org/show_bug.cgi?id=29545
GyB gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |348c655b5cc670f53d3b266b3e2 | |1f61cc978faca Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #5 from GyB gyebro69@gmail.com 2012-01-27 12:23:05 CST --- Fixed indeed (wine-1.3.37-491-gf3be288). Thanks to both of you!
http://bugs.winehq.org/show_bug.cgi?id=29545
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org 2012-01-27 14:18:00 CST --- Closing bugs fixed in 1.4-rc1.