wined3d: Move float_32_to_16() to surface_base.c which is the only place where it's used, and because it needs port.h for isinf().

Francois Gouget fgouget at
Wed Jul 9 17:23:07 CDT 2008


If we leave it in wined3d_private.h then we'll need to either include 
config.h in that header or in every file that uses it (because of the 
reference to isinf()). Either way it's wrong. float_32_to_16() is used 
in only one place so it seems best to move it there (even though that 
means separating it from float_16_to_32() :-( ).

  dlls/wined3d/surface_base.c    |   51 
  dlls/wined3d/wined3d_private.h |   51 
  2 files changed, 53 insertions(+), 49 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0ee9e97e48a830863cd023cb51be87d77dc2023a.diff
Type: text/x-patch
Size: 4027 bytes
Desc: not available
Url : 

More information about the wine-patches mailing list