d3dxcreatebox patch

Matteo Bruni matteo.mystral at gmail.com
Wed Mar 9 18:06:47 CST 2011


2011/3/9 David Adam <david.adam.cnrs at gmail.com>:
> Hello,
>
> is there any problem with my d3dxcreatebox patch?
>
> Thanks in advance for any feedback.
>
> A+
>
> David
>

Do you refer to http://source.winehq.org/patches/data/71983 ? I just
had a cursory look at it: I presume there isn't anything fundamentally
broken with your patch (you are forcing a particular vertex ordering,
however that shouldn't be a problem for the D3DXCreateBox
implementation) but, for sure, code style and formatting should be
fixed.
I know mesh.c is already quite bad in that regard, but that doesn't
mean it needs more loose code. For example, in your patch there isn't
a consistent usage of whitespace-after-comma, the same for spaces
around operators or between the "if" and its condition. To compare
expected and actual vertex data you should probably use the
compare_vec3() function. Also, are "vertice", "normale" and "indice"
Italian words? That doesn't look right. :) (also, the first vertex
component is the position, not really "vertex")



More information about the wine-devel mailing list