http://bugs.winehq.org/show_bug.cgi?id=17172
Summary: IDirect3DDevice9::Present ignores pDestRect Product: Wine Version: 1.1.13 Platform: PC-x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: alex.hultman@skola.helsingborg.se
IDirect3DDevice9::Present function in d3d9.dll ignores any value of pDestRect. If pDestRect is NULL, all client area should be drawn to but this does not happen. Not even if you explicitly set the pDestRect to the size of the client area. This is a major problem with games that want to make pixel-like graphics, retro games.
http://bugs.winehq.org/show_bug.cgi?id=17172
--- Comment #1 from joaopa jeremielapuree@yahoo.fr 2009-01-28 14:39:54 --- Can you give a game (with a demo) that suffers of this bug?
http://bugs.winehq.org/show_bug.cgi?id=17172
--- Comment #2 from Alex alex.hultman@skola.helsingborg.se 2009-01-31 09:10:41 --- (In reply to comment #1)
Can you give a game (with a demo) that suffers of this bug?
It's my own game I'm developing. It runs perfectly on Windows 7, Vista, XP, 2000 and more, but in Wine it is drawn without being stretched (it's a retro game with pixel graphics), since pDestRect is ignored in Wine.
http://bugs.winehq.org/show_bug.cgi?id=17172
--- Comment #3 from Alex alex.hultman@skola.helsingborg.se 2009-02-03 12:54:44 --- Bug #13968 seems to be almost the same.
http://bugs.winehq.org/show_bug.cgi?id=17172
--- Comment #4 from joaopa jeremielapuree@yahoo.fr 2009-02-03 15:38:53 --- Is your game freely downloadable? If yes, can you write the URL to the URL place?
http://bugs.winehq.org/show_bug.cgi?id=17172
--- Comment #5 from H. Verbeet hverbeet@gmail.com 2009-02-09 04:49:05 --- Yeah, this is a known issue. It shouldn't be particularly hard to fix, but I don't think anyone is currently working on it. I should probably also mention that typically StretchRect() is used for things like this.
http://bugs.winehq.org/show_bug.cgi?id=17172
--- Comment #6 from Alex alex.hultman@skola.helsingborg.se 2009-02-13 17:37:33 --- (In reply to comment #4)
Is your game freely downloadable? If yes, can you write the URL to the URL place?
Does it matter? The thing is that Wine has a bug and i am willing to send feedback, be glad im not just ignoring the bug and only developing for Windows users.
(In reply to comment #5)
Yeah, this is a known issue. It shouldn't be particularly hard to fix, but I don't think anyone is currently working on it. I should probably also mention that typically StretchRect() is used for things like this.
I know that StretchRect is the preferred way; im am actually using that method in my game. However i have a "compatibility mode" where i let DirectX resize the scene, which is much easier on the hardware than StretchRect is (maby not in all cases but im ny case it is). I am also using StretchRect with some filters that require DirectX 9-compatible graphics adapter, which the normal DirectX "auto resize" does not.
This is a bug in Wine; fix it if you want better compatibility.
http://bugs.winehq.org/show_bug.cgi?id=17172
--- Comment #7 from Alex alex.hultman@skola.helsingborg.se 2009-02-13 17:39:12 --- Can someone set it to "CONFIRMED"?
http://bugs.winehq.org/show_bug.cgi?id=17172
--- Comment #8 from H. Verbeet hverbeet@gmail.com 2009-02-13 18:34:26 --- (In reply to comment #6)
(In reply to comment #4)
Is your game freely downloadable? If yes, can you write the URL to the URL place?
Does it matter? The thing is that Wine has a bug and i am willing to send feedback, be glad im not just ignoring the bug and only developing for Windows users.
The idea (in general) is that if there's a freely downloadable application that has the bug we can use that to test against. I don't think that's needed in this case though, the problem is pretty well defined, and we've got a reasonable idea of how to implement the solution.
http://bugs.winehq.org/show_bug.cgi?id=17172
Tom Kaminski ttkaminski@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ttkaminski@gmail.com
--- Comment #9 from Tom Kaminski ttkaminski@gmail.com 2009-03-02 10:42:00 --- I just want to add that when in windowed mode, and the back buffer is not the same size as the client area of the window, then calling:
pD3dDevice->Present(NULL,NULL,NULL,NULL);
will not stretch the surface to fit the contents of the client area (but it should). As a result, when in windowed mode, and you dynamically resize the window, you either get black borders, or clipping on the edges will occur.
Every D3D Sample application that I tried (that comes with the DirectX SDK) exhibits this problem under wine.
http://bugs.winehq.org/show_bug.cgi?id=17172
--- Comment #10 from Austin English austinenglish@gmail.com 2009-09-03 12:23:06 --- Is this still an issue in current (1.1.29 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=17172
--- Comment #11 from Tom Kaminski ttkaminski@gmail.com 2009-11-23 22:44:19 --- I've just installed wine-1.1.33 and this problem still exists.
http://bugs.winehq.org/show_bug.cgi?id=17172
--- Comment #12 from Henri Verbeet hverbeet@gmail.com 2010-01-06 04:46:13 --- This and similar bugs should be fixed in current git.
http://bugs.winehq.org/show_bug.cgi?id=17172
Jeff Zaroyko jeffz@jeffz.name changed:
What |Removed |Added ---------------------------------------------------------------------------- Alias|alex |
http://bugs.winehq.org/show_bug.cgi?id=17172
Jeff Zaroyko jeffz@jeffz.name changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |me100313@gmail.com
--- Comment #13 from Jeff Zaroyko jeffz@jeffz.name 2010-01-10 21:16:57 --- *** Bug 15268 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=17172
Jeff Zaroyko jeffz@jeffz.name changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #14 from Jeff Zaroyko jeffz@jeffz.name 2010-01-10 21:19:18 --- Looks fixed to me, the scaling issue in GM games is gone.
http://bugs.winehq.org/show_bug.cgi?id=17172
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #15 from Alexandre Julliard julliard@winehq.org 2010-01-22 11:02:06 --- Closing bugs fixed in 1.1.37.