[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Re: [PATCH 4/5] quartz: Make the vmr-9 implementation work
From: "Maarten Lankhorst" <m.b.lankhorst () gmail ! com>
Date: 2008-07-30 16:35:41
Message-ID: b130c85e0807300935r4c6f073dnbb82a7bec791baa9 () mail ! gmail ! com
[Download RAW message or body]
Hoi Henri,
2008/7/30 H. Verbeet <hverbeet@gmail.com>:
> I just looked the patch over quickly since you mentioned d3d9, but
> here are a few things I noticed:
>
> > + hr = IDirect3DSurface9_LockRect(info->lpSurf, &lock, NULL, D3DLOCK_DISCARD);
> > + assert(hr == S_OK);
> ...
> > + hr = IDirect3DDevice9_Clear(This->d3d9_dev, 0, NULL, D3DCLEAR_TARGET, \
> > D3DCOLOR_XRGB(0, 0, 0), 1.0f, 0); + if (hr != S_OK)
>
> I realize D3D_OK and S_OK have the same value, but using
> SUCCEEDED()/FAILED() would probably be more appropriate. Happens in a
> few other places as well.
I was just trying to be pedanctic with the return values, but
SUCCEEDED is probably ok too.
> > +// info.dwFlags = VMR9AllocFlag_TextureSurface;
> ...
> > + FIXME("SendMessageW: %08x\n", hr);
> You'll probably want to remove these.
There is a reason I use C++ style comments, mainly because they make
sure those lines never make it in the wine tree, it should just be
removed, when I grepped vmr9.c after patch 5/5 I couldn't find that
line any more, so I probably immediately removed it there, thanks for
catching it.
Cheers,
Maarten
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic