http://bugs.winehq.org/show_bug.cgi?id=9259
Summary: Lord of the Rings Online - Switch to windowed mode causes program to abort Product: Wine Version: 0.9.43. Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-directx AssignedTo: wine-bugs@winehq.org ReportedBy: ajackson@bcs.org.uk
Got a strange problem that has started to occur since the changes to 0.9.43.
When you start the game in full screen mode and then try to switch to windowed mode the game client displays an error dialog box and when you click OK (it displays it 3 times) the game crashes and returns you to the command prompt.
The only error shown on the console is
err:d3d:IWineD3DImpl_CheckDeviceType unsupported format WINED3DFMT_X8R8G8B8
Having looked at the function in dlls/wined3d/directx.c I noticed something a bit strange.
The function contains a line of code that reads:
for (it = 0; it < nCfgs; ++i)
The function above it contains a very similar line which seems to be doing the same check.
for (it = 0; it < Adapters[Adapter].nCfgs; ++i)
I added the Adapters[Adapter] part to the function where the error was occuring and can now switch to windowed mode without getting an error message.
If you need any traces or regression testing let me know and I'll provide the information.
http://bugs.winehq.org/show_bug.cgi?id=9259
--- Comment #1 from Austin English austinenglish@gmail.com 2007-08-11 16:39:07 --- If it's a regression, please run the regression test to find the bad patch. You could probably save some time and see what patch made that change in directx.c, and see if reverting it fixes the problem for you.
http://wiki.winehq.org/RegressionTesting
http://bugs.winehq.org/show_bug.cgi?id=9259
--- Comment #2 from Alan Jackson ajackson@bcs.org.uk 2007-08-12 03:53:45 --- The patch that causes the problem is
Commit: 107ff2057de5fd8bf25feda05bb7bcbbfc93e64b URL: http://source.winehq.org/git/wine.git/?a=commit;h=107ff2057de5fd8bf25feda05b...
Author: Roderick Colenbrander <thunderbird2k at gmx.net> Date: Tue Aug 7 23:45:00 2007 +0200
wined3d: Move fake context code over to WGL.
http://bugs.winehq.org/show_bug.cgi?id=9259
Alan Jackson ajackson@bcs.org.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #3 from Alan Jackson ajackson@bcs.org.uk 2007-08-13 12:12:48 --- The recent commits to git (related in part to bug 9255) have fixed this problem as well. Thanks for the quick turnaround
http://bugs.winehq.org/show_bug.cgi?id=9259
Alan Jackson ajackson@bcs.org.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alan Jackson ajackson@bcs.org.uk 2007-08-13 12:13:26 --- Closing as fixed
http://bugs.winehq.org/show_bug.cgi?id=9259
James Hawkins truiken@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|_obsolete_directx |-unknown