http://bugs.winehq.org/show_bug.cgi?id=12248
Summary: Ufo Aftermath cursor issue: starting from version 0.9.44 the cursor is invisible ingame Product: Wine Version: 0.9.58. Platform: PC URL: http://appdb.winehq.org/objectManager.php?sClass=version &iId=1961 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: razahel@gmx.net
UFO Aftermath and probably UFO Afterlight bug I tested the game against different versions of wine and found that starting from Version 0.9.44 the cursor is invisible ingame which makes the game quite unplayable.
I tested against my source builds of versions 0.9.43 .44 .48 .56 .57 .58
In Version .43 the game runs well in later versions there are performance and sound enhancements but the cursor is invisible.
http://bugs.winehq.org/show_bug.cgi?id=12248
--- Comment #1 from Swen razahel@gmx.net 2008-03-27 06:13:35 --- I forgot to mention that the cursor is even in 0.9.43 only visible in virtual desktop mode. Fullscreen gives the same result as all newer versions.
http://bugs.winehq.org/show_bug.cgi?id=12248
--- Comment #2 from Swen razahel@gmx.net 2008-03-27 07:06:29 --- Created an attachment (id=11687) --> (http://bugs.winehq.org/attachment.cgi?id=11687) WINEDEBUG=+cursor
log regarding mouse issue created with wine 0.9.44
http://bugs.winehq.org/show_bug.cgi?id=12248
--- Comment #3 from Swen razahel@gmx.net 2008-03-27 07:07:13 --- Created an attachment (id=11688) --> (http://bugs.winehq.org/attachment.cgi?id=11688) WINEDEBUG=+cursor
log regarding mouse issue created with wine 0.9.43
http://bugs.winehq.org/show_bug.cgi?id=12248
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Ufo Aftermath cursor issue: |Ufo Aftermath cursor issue: |starting from version 0.9.44|the cursor is invisible |the cursor is invisible |ingame |ingame |
--- Comment #4 from Lei Zhang thestig@google.com 2008-03-27 10:28:14 --- Does the demo have the same problem?
Can you run a regression test between Wine 0.9.43 and 0.9.44?
http://wiki.winehq.org/RegressionTesting
http://bugs.winehq.org/show_bug.cgi?id=12248
--- Comment #5 from Swen razahel@gmx.net 2008-03-27 10:43:58 --- I do not know about the demo, because I only have the full version, but I think it should be there. I will do both, test the demo and do a regression test ;)
http://bugs.winehq.org/show_bug.cgi?id=12248
Swen razahel@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |julliard@winehq.org
--- Comment #6 from Swen razahel@gmx.net 2008-03-29 14:15:20 --- Did Regression Testing to find the bug between version 0.9.43 and 0.9.44 where the cursor went invisible and found following commit which creates the invisible cursor. THe cursor is not visible in fullscreen mode it is only visible on virtual desktop , but better a cursor there than no where ;)
f3ae5f5215011db6095bc64d5028993cf4e0c5da is first bad commit commit f3ae5f5215011db6095bc64d5028993cf4e0c5da Author: Alexandre Julliard julliard@winehq.org Date: Mon Aug 20 14:04:53 2007 +0200
winex11: Don't set the cursor on the desktop window since it's managed by another process.
:040000 040000 eeb22eed61416c1fef62f3a35cdd0ff61db9114c f2cfb9806ab4efbc632e923319d9f52af9e6fe5b M dlls
Next thing is that I will take a look if this invisible cursor occurs in the demo of ufo aftermath
http://bugs.winehq.org/show_bug.cgi?id=12248
--- Comment #7 from Swen razahel@gmx.net 2008-03-29 14:46:17 ---
With 0.9.43 the Demo of the game is working there is the linux cursor visible and if you click with the mouse the custom cursor is visibleand the linux cursor missing. In 0.9.44 only the linux cursor is visible and the custom ingame cursor is not visible even after clicking
http://bugs.winehq.org/show_bug.cgi?id=12248
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, regression
--- Comment #8 from Austin English austinenglish@gmail.com 2008-03-29 15:00:55 --- Direct download link:
ftp://ftp.cenega.co.uk/UFO/UFO_Aftermath_Demo.exe
http://bugs.winehq.org/show_bug.cgi?id=12248
--- Comment #9 from Swen razahel@gmx.net 2008-06-07 13:39:59 --- as of version 1.0-rc4 the X system cursor is visible, but still not the original ingame cursor
http://bugs.winehq.org/show_bug.cgi?id=12248
--- Comment #10 from Bart b.zuidgeest@rocwb.nl 2008-08-17 12:27:25 --- (In reply to comment #9)
as of version 1.0-rc4 the X system cursor is visible, but still not the original ingame cursor
I tried 1.0 and 1.1.0 (1.0 with the animated cursor patch) and I still have no cursor. neither in fullscreen or virtual desktop mode
http://bugs.winehq.org/show_bug.cgi?id=12248
Viktor Mårtensson viktor.martensson@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |viktor.martensson@gmail.com
--- Comment #11 from Viktor Mårtensson viktor.martensson@gmail.com 2008-08-30 14:04:58 --- I have the same problem. UFO Aftermath 1.4 starts, but no cursor. (On one occasion I have been able to get a cursor showing, by switching back and forth between windows I believe...)
Symptoms: No cursor visible in game (but its active. You can use it to click, but its not visible.) No X cursor visible while mouse is wihthin the window.
Currenty trying to run it in a virtual desktop, but no luck.
Bought the UFO Aftermath CD-ROM a few days ago (no cracked funny binary)
Wine: 1.1.3 Ubuntu 8.04
http://bugs.winehq.org/show_bug.cgi?id=12248
Bob Igo bob@igo.name changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bob@igo.name
http://bugs.winehq.org/show_bug.cgi?id=12248
--- Comment #12 from Nick krna@rambler.ru 2008-10-31 05:24:16 --- In fact cursor is specific for application window. I.e. it is shared between all threads inside a process. But patch f3ae5f521... assumes(implicitly) that cursor is thread specific. It is ok for single-threaded apps, but in multi-threaded case it appears to slightly wrong. UFO Aftershock( maybe Afterlight too ) shows that. This app wants to change its cursor from at least 2 or 3 threads.
Alexandre, is it possible to fix this issue?
http://bugs.winehq.org/show_bug.cgi?id=12248
Marek Kierdelewicz marek@piasta.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |marek@piasta.pl
--- Comment #13 from Marek Kierdelewicz marek@piasta.pl 2008-12-28 16:58:01 --- Hi, I'm trying to run Ufo Aftermath on Ubuntu Hardy 64bit and binary wine 1.1.11 from winehq. There's still a problem with invisible cursor. Is there any workaround?
http://bugs.winehq.org/show_bug.cgi?id=12248
nick ves vespenegeyser@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |vespenegeyser@hotmail.com
--- Comment #14 from nick ves vespenegeyser@hotmail.com 2009-01-30 12:46:11 --- some CONFIRM this bug as NEW ?
http://bugs.winehq.org/show_bug.cgi?id=12248
Tori x.rip@seznam.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |x.rip@seznam.cz
--- Comment #15 from Tori x.rip@seznam.cz 2009-02-01 05:56:28 --- I concur, this bug has been here long enough to be still marked as UNCONFIRMED.
http://bugs.winehq.org/show_bug.cgi?id=12248
--- Comment #16 from Tori x.rip@seznam.cz 2009-02-01 07:06:14 --- Created an attachment (id=19148) --> (http://bugs.winehq.org/attachment.cgi?id=19148) crude workaround to show a cursor in virtual desktop mode
This is a crude hack that reintroduces some of the pre-0.9.44 code back into mouse.c and makes the cursor visible.
http://bugs.winehq.org/show_bug.cgi?id=12248
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
--- Comment #17 from Austin English austinenglish@gmail.com 2009-02-01 14:49:21 --- Confirming.
http://bugs.winehq.org/show_bug.cgi?id=12248
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #18 from Austin English austinenglish@gmail.com 2009-02-01 14:49:28 --- Grr..
http://bugs.winehq.org/show_bug.cgi?id=12248
--- Comment #19 from Tori x.rip@seznam.cz 2009-02-02 04:07:55 --- This bug also affects UFO: Aftershock (the second in the series, running on the same engine, improved).
http://bugs.winehq.org/show_bug.cgi?id=12248
Oleg Tsarev zabivator@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zabivator@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=12248
--- Comment #20 from Oleg Tsarev zabivator@gmail.com 2009-03-01 11:09:12 --- Confirmed on wine 1.16
http://bugs.winehq.org/show_bug.cgi?id=12248
Rafał Rzepecki divided.mind@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |divided.mind@gmail.com
--- Comment #21 from Rafał Rzepecki divided.mind@gmail.com 2009-03-02 17:56:44 ---
From reading MSDN (
http://msdn.microsoft.com/en-us/library/ms648393(VS.85).aspx ) it seems that current cursor is system-global ("The cursor is a shared resource"), but on every mouse move it gets reset to the window default and then window handling mouse has a chance to change it before it gets drawn; that's exactly how wine currently handles it, EXCEPT it keeps cursor state separated on per-thread basis, not global.
Making cursor state global fixes this bug, at least in UFO: AfterShock. Patches will follow.
http://bugs.winehq.org/show_bug.cgi?id=12248
--- Comment #22 from Rafał Rzepecki divided.mind@gmail.com 2009-03-02 17:58:00 --- Created an attachment (id=19753) --> (http://bugs.winehq.org/attachment.cgi?id=19753) 0001-Current-cursor-is-global-in-user32.patch
This patch makes cursor state in user32 global.
http://bugs.winehq.org/show_bug.cgi?id=12248
--- Comment #23 from Rafał Rzepecki divided.mind@gmail.com 2009-03-02 17:58:51 --- Created an attachment (id=19754) --> (http://bugs.winehq.org/attachment.cgi?id=19754) 0002-Cursor-state-is-global-in-winex11.patch
This patch makes the cursor state in winex11.drv global. You need both this and patch #19753 to fix this bug.
http://bugs.winehq.org/show_bug.cgi?id=12248
--- Comment #24 from Oleg Tsarev zabivator@gmail.com 2009-03-03 00:30:11 --- (In reply to comment #23)
Created an attachment (id=19754)
--> (http://bugs.winehq.org/attachment.cgi?id=19754) [details]
0002-Cursor-state-is-global-in-winex11.patch
This patch makes the cursor state in winex11.drv global. You need both this and patch #19753 to fix this bug.
Tnaks! I wiil try today evening. Are you include this patch in wine 1.17?
http://bugs.winehq.org/show_bug.cgi?id=12248
--- Comment #25 from Oleg Tsarev zabivator@gmail.com 2009-03-07 08:53:02 --- (In reply to comment #23)
Created an attachment (id=19754)
--> (http://bugs.winehq.org/attachment.cgi?id=19754) [details]
0002-Cursor-state-is-global-in-winex11.patch
This patch makes the cursor state in winex11.drv global. You need both this and patch #19753 to fix this bug.
Great work! I apply two your patches on wine-1.16 and now i look cursor! Animated! But i have some troubles... cursor paint as rectangle with grey background... But background in windows is invisible... I try make screenshot, but on screenshot cursor invisible. Can you same ideas, how make screenshot or fix problem with grey background?
http://bugs.winehq.org/show_bug.cgi?id=12248
--- Comment #26 from Oleg Tsarev zabivator@gmail.com 2009-03-07 08:56:24 --- (In reply to comment #25)
(In reply to comment #23)
Created an attachment (id=19754)
--> (http://bugs.winehq.org/attachment.cgi?id=19754) [details] [details]
0002-Cursor-state-is-global-in-winex11.patch
This patch makes the cursor state in winex11.drv global. You need both this and patch #19753 to fix this bug.
Great work! I apply two your patches on wine-1.16 and now i look cursor! Animated! But i have some troubles... cursor paint as rectangle with grey background... But background in windows is invisible... I try make screenshot, but on screenshot cursor invisible. Can you same ideas, how make screenshot or fix problem with grey background?
If say more really, background isn't grey, background of rectangle contain many small white and grey squares. Look like game say "this background invisible", but wine don't process this settings. So, i install native directX 9.0c, but it's not critical, it's true?
http://bugs.winehq.org/show_bug.cgi?id=12248
--- Comment #27 from Oleg Tsarev zabivator@gmail.com 2009-03-07 09:03:15 --- (In reply to comment #26)
(In reply to comment #25)
(In reply to comment #23)
Created an attachment (id=19754)
--> (http://bugs.winehq.org/attachment.cgi?id=19754) [details] [details] [details]
0002-Cursor-state-is-global-in-winex11.patch
This patch makes the cursor state in winex11.drv global. You need both this and patch #19753 to fix this bug.
Great work! I apply two your patches on wine-1.16 and now i look cursor! Animated! But i have some troubles... cursor paint as rectangle with grey background... But background in windows is invisible... I try make screenshot, but on screenshot cursor invisible. Can you same ideas, how make screenshot or fix problem with grey background?
If say more really, background isn't grey, background of rectangle contain many small white and grey squares. Look like game say "this background invisible", but wine don't process this settings. So, i install native directX 9.0c, but it's not critical, it's true?
I try install UFO: Aftershock without install native directx. Work as native directx.
http://bugs.winehq.org/show_bug.cgi?id=12248
hellgast helgast@post.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |helgast@post.cz
--- Comment #28 from hellgast helgast@post.cz 2009-05-08 04:56:11 --- Confirming this bug in wine 1.1.20, no ingame mouse cursor visible...
http://bugs.winehq.org/show_bug.cgi?id=12248
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dusty@luogocomune.net
--- Comment #29 from Vitaliy Margolen vitaliy@kievinfo.com 2009-08-11 20:17:24 --- *** Bug 19027 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=12248
Panno julipanno@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |julipanno@gmail.com
--- Comment #30 from Panno julipanno@gmail.com 2010-03-20 06:36:31 --- I can confirm that this bug still is present in Wine 1.40
http://bugs.winehq.org/show_bug.cgi?id=12248
--- Comment #31 from Nick krna@rambler.ru 2010-04-21 13:36:27 --- Finally fixed by 2 series of commits:
5efe996c6af9b7812cde0fdceb127dc0bf6b9676 8159d4eb99819858b6791436a4b355881d2d965e 49de5ca39f6474ed15dc22e4b8ffa53bedb4acf7
and
d676bf246da0c15d46d685598191b1146b764460 9485f0b75680fc53a7218077cef417fad8a3aea2 776527f38f2ff89f354e49aa8df795440677376a cd28e2be7c79644e02babb509247a453e0153390 eed9c63ac7650293523da5c8d067c74258568ba8 8ec6359bbbd969960cae828d665459aa3a8add39 33e6f7dca355d98620fa3460d8739bbbc339eab3
Thank you, Alexandre!
http://bugs.winehq.org/show_bug.cgi?id=12248
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #32 from Austin English austinenglish@gmail.com 2010-04-21 14:31:59 --- Reported fixed.
http://bugs.winehq.org/show_bug.cgi?id=12248
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #33 from Alexandre Julliard julliard@winehq.org 2010-05-07 13:29:05 --- Closing bugs fixed in 1.1.44.