winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
April
March
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
July 2011
----- 2025 -----
April 2025
March 2025
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
2 participants
838 discussions
Start a n
N
ew thread
Henri Verbeet : wined3d: Make the device parameter to context_resource_unloaded() const.
by Alexandre Julliard
01 Jul '11
01 Jul '11
Module: wine Branch: master Commit: 2257a70e3796b6ed8ea2bd5ba14c03beb8ec5292 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2257a70e3796b6ed8ea2bd5ba…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Jun 29 23:14:14 2011 +0200 wined3d: Make the device parameter to context_resource_unloaded() const. --- dlls/wined3d/context.c | 2 +- dlls/wined3d/wined3d_private.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index 4040083..0391672 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -626,7 +626,7 @@ static void context_detach_fbo_entry(struct wined3d_context *context, struct fbo entry->attached = FALSE; } -void context_resource_unloaded(struct wined3d_device *device, +void context_resource_unloaded(const struct wined3d_device *device, struct wined3d_resource *resource, WINED3DRESOURCETYPE type) { switch (type) diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index ad75c62..4420e13 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -1238,7 +1238,7 @@ DWORD context_get_tls_idx(void) DECLSPEC_HIDDEN; void context_release(struct wined3d_context *context) DECLSPEC_HIDDEN; void context_resource_released(const struct wined3d_device *device, struct wined3d_resource *resource, WINED3DRESOURCETYPE type) DECLSPEC_HIDDEN; -void context_resource_unloaded(struct wined3d_device *device, +void context_resource_unloaded(const struct wined3d_device *device, struct wined3d_resource *resource, WINED3DRESOURCETYPE type) DECLSPEC_HIDDEN; BOOL context_set_current(struct wined3d_context *ctx) DECLSPEC_HIDDEN; void context_set_draw_buffer(struct wined3d_context *context, GLenum buffer) DECLSPEC_HIDDEN;
1
0
0
0
Henri Verbeet : wined3d: Make the device parameter to context_resource_released() const.
by Alexandre Julliard
01 Jul '11
01 Jul '11
Module: wine Branch: master Commit: 6894d8022a13b5258172222e31d4dbd670aa5a21 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6894d8022a13b5258172222e3…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Jun 29 23:14:13 2011 +0200 wined3d: Make the device parameter to context_resource_released() const. --- dlls/wined3d/context.c | 2 +- dlls/wined3d/wined3d_private.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index a37c664..4040083 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -604,7 +604,7 @@ static void context_queue_fbo_entry_destruction(struct wined3d_context *context, list_add_head(&context->fbo_destroy_list, &entry->entry); } -void context_resource_released(struct wined3d_device *device, +void context_resource_released(const struct wined3d_device *device, struct wined3d_resource *resource, WINED3DRESOURCETYPE type) { if (!device->d3d_initialized) return; diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index 81b5119..ad75c62 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -1236,7 +1236,7 @@ void context_free_occlusion_query(struct wined3d_occlusion_query *query) DECLSPE struct wined3d_context *context_get_current(void) DECLSPEC_HIDDEN; DWORD context_get_tls_idx(void) DECLSPEC_HIDDEN; void context_release(struct wined3d_context *context) DECLSPEC_HIDDEN; -void context_resource_released(struct wined3d_device *device, +void context_resource_released(const struct wined3d_device *device, struct wined3d_resource *resource, WINED3DRESOURCETYPE type) DECLSPEC_HIDDEN; void context_resource_unloaded(struct wined3d_device *device, struct wined3d_resource *resource, WINED3DRESOURCETYPE type) DECLSPEC_HIDDEN;
1
0
0
0
Henri Verbeet : wined3d: Make the device and surface parameters to context_enum_surface_fbo_entries () const.
by Alexandre Julliard
01 Jul '11
01 Jul '11
Module: wine Branch: master Commit: 53b99dde14c7eef31d948a98d9a8822ffd9f4a8f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=53b99dde14c7eef31d948a98d…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Jun 29 23:14:12 2011 +0200 wined3d: Make the device and surface parameters to context_enum_surface_fbo_entries() const. --- dlls/wined3d/context.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index 51a77ef..a37c664 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -563,8 +563,8 @@ void context_free_event_query(struct wined3d_event_query *query) typedef void (context_fbo_entry_func_t)(struct wined3d_context *context, struct fbo_entry *entry); -static void context_enum_surface_fbo_entries(struct wined3d_device *device, - struct wined3d_surface *surface, context_fbo_entry_func_t *callback) +static void context_enum_surface_fbo_entries(const struct wined3d_device *device, + const struct wined3d_surface *surface, context_fbo_entry_func_t *callback) { UINT i;
1
0
0
0
Henri Verbeet : wined3d: Make the context parameter to context_check_fbo_status() const.
by Alexandre Julliard
01 Jul '11
01 Jul '11
Module: wine Branch: master Commit: b3b1d205628de3118dea44a3b1849366f0eac09a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b3b1d205628de3118dea44a3b…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Jun 29 23:14:11 2011 +0200 wined3d: Make the context parameter to context_check_fbo_status() const. --- dlls/wined3d/context.c | 4 ++-- dlls/wined3d/wined3d_private.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index f52609c..51a77ef 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -219,7 +219,7 @@ static void context_attach_surface_fbo(const struct wined3d_context *context, } /* GL locking is done by the caller */ -void context_check_fbo_status(struct wined3d_context *context, GLenum target) +void context_check_fbo_status(const struct wined3d_context *context, GLenum target) { const struct wined3d_gl_info *gl_info = context->gl_info; GLenum status; @@ -233,7 +233,7 @@ void context_check_fbo_status(struct wined3d_context *context, GLenum target) } else { - struct wined3d_surface *attachment; + const struct wined3d_surface *attachment; unsigned int i; FIXME("FBO status %s (%#x)\n", debug_fbostatus(status), status); diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index ceae2fd..81b5119 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -1227,7 +1227,7 @@ void context_apply_fbo_state_blit(struct wined3d_context *context, GLenum target void context_attach_depth_stencil_fbo(const struct wined3d_context *context, GLenum fbo_target, struct wined3d_surface *depth_stencil, BOOL use_render_buffer) DECLSPEC_HIDDEN; void context_bind_fbo(struct wined3d_context *context, GLenum target, GLuint *fbo) DECLSPEC_HIDDEN; -void context_check_fbo_status(struct wined3d_context *context, GLenum target) DECLSPEC_HIDDEN; +void context_check_fbo_status(const struct wined3d_context *context, GLenum target) DECLSPEC_HIDDEN; struct wined3d_context *context_create(struct wined3d_swapchain *swapchain, struct wined3d_surface *target, const struct wined3d_format *ds_format) DECLSPEC_HIDDEN; void context_destroy(struct wined3d_device *device, struct wined3d_context *context) DECLSPEC_HIDDEN;
1
0
0
0
Michael Stefaniuc : shell32: Don't pass an unitialized size to RegGetValue( ).
by Alexandre Julliard
01 Jul '11
01 Jul '11
Module: wine Branch: master Commit: c2c0bec0e3c70ea9435a7b84e394980d849e8d70 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c2c0bec0e3c70ea9435a7b84e…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Wed Jun 29 21:55:57 2011 +0200 shell32: Don't pass an unitialized size to RegGetValue(). --- dlls/shell32/shellpath.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/shell32/shellpath.c b/dlls/shell32/shellpath.c index ef1a0de..66c376e 100644 --- a/dlls/shell32/shellpath.c +++ b/dlls/shell32/shellpath.c @@ -3315,7 +3315,8 @@ static HRESULT WINAPI knownfolder_GetCategory( { struct knownfolder *knownfolder = impl_from_IKnownFolder(iface); HRESULT hr = S_OK; - DWORD dwSize, dwType; + DWORD dwSize = sizeof(DWORD); + DWORD dwType; TRACE("%p, %p\n", knownfolder, pCategory);
1
0
0
0
Misha Koshelev : d3dx9_36: Implement and add tests for D3DXFloat16To32Array .
by Alexandre Julliard
01 Jul '11
01 Jul '11
Module: wine Branch: master Commit: a6b40624dbc457ba7b0b4b307b1eb88617c67197 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a6b40624dbc457ba7b0b4b307…
Author: Misha Koshelev <misha680(a)gmail.com> Date: Wed Jun 29 11:16:29 2011 -0400 d3dx9_36: Implement and add tests for D3DXFloat16To32Array. --- dlls/d3dx9_36/d3dx9_36.spec | 2 +- dlls/d3dx9_36/math.c | 32 +++++++++++++++++++++++ dlls/d3dx9_36/tests/math.c | 60 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+), 1 deletions(-) diff --git a/dlls/d3dx9_36/d3dx9_36.spec b/dlls/d3dx9_36/d3dx9_36.spec index a9b98a7..5973d20 100644 --- a/dlls/d3dx9_36/d3dx9_36.spec +++ b/dlls/d3dx9_36/d3dx9_36.spec @@ -130,7 +130,7 @@ @ stub D3DXFillVolumeTextureTX(ptr ptr) @ stdcall D3DXFilterTexture(ptr ptr long long) @ stdcall D3DXFindShaderComment(ptr long ptr ptr) -@ stub D3DXFloat16To32Array(ptr ptr long) +@ stdcall D3DXFloat16To32Array(ptr ptr long) @ stub D3DXFloat32To16Array(ptr ptr long) @ stub D3DXFrameAppendChild(ptr ptr) @ stub D3DXFrameCalculateBoundingSphere(ptr ptr ptr) diff --git a/dlls/d3dx9_36/math.c b/dlls/d3dx9_36/math.c index fdb5f92..fde3e4e 100644 --- a/dlls/d3dx9_36/math.c +++ b/dlls/d3dx9_36/math.c @@ -1769,3 +1769,35 @@ D3DXVECTOR4* WINAPI D3DXVec4TransformArray(D3DXVECTOR4* out, UINT outstride, CON } return out; } + +/* Native d3dx9's D3DXFloat16to32Array lacks support for NaN and Inf. Specifically, e = 16 is treated as a + * regular number - e.g., 0x7fff is converted to 131008.0 and 0xffff to -131008.0. */ +static inline float float_16_to_32(const unsigned short in) +{ + const unsigned short s = (in & 0x8000); + const unsigned short e = (in & 0x7C00) >> 10; + const unsigned short m = in & 0x3FF; + const float sgn = (s ? -1.0f : 1.0f); + + if (e == 0) + { + if (m == 0) return sgn * 0.0f; /* +0.0 or -0.0 */ + else return sgn * powf(2, -14.0f) * (m / 1024.0f); + } + else + { + return sgn * powf(2, e - 15.0f) * (1.0f + (m / 1024.0f)); + } +} + +FLOAT *WINAPI D3DXFloat16To32Array(FLOAT *pout, CONST D3DXFLOAT16 *pin, UINT n) +{ + unsigned int i; + + for (i = 0; i < n; ++i) + { + pout[i] = float_16_to_32(pin[i].value); + } + + return pout; +} diff --git a/dlls/d3dx9_36/tests/math.c b/dlls/d3dx9_36/tests/math.c index 5ad1924..aa3f135 100644 --- a/dlls/d3dx9_36/tests/math.c +++ b/dlls/d3dx9_36/tests/math.c @@ -21,6 +21,7 @@ #include "wine/test.h" #include "d3dx9.h" +#include <math.h> #define ARRAY_SIZE 5 @@ -2215,6 +2216,64 @@ static void test_D3DXVec_Array(void) compare_planes(exp_plane, out_plane); } +static void test_D3DXFloat_Array(void) +{ + unsigned int i; + void *out = NULL; + D3DXFLOAT16 half; + FLOAT single; + struct + { + FLOAT single_in; + + /* half_ver2 occurs on WXPPROSP3 (32 bit math), WVISTAADM (32 bit math), W7PRO (32 bit math) */ + WORD half_ver1, half_ver2; + + /* single_out_ver2 confirms that half -> single conversion is consistent across platforms */ + FLOAT single_out_ver1, single_out_ver2; + } testdata[] = { + { 80000.0f, 0x7c00, 0x7ce2, 65536.0f, 80000.0f }, + { 65503.0f, 0x7bff, 0x7bff, 65504.0f, 65504.0f }, + { 65504.0f, 0x7bff, 0x7bff, 65504.0f, 65504.0f }, + { 65520.0f, 0x7bff, 0x7c00, 65504.0f, 65536.0f }, + { 65521.0f, 0x7c00, 0x7c00, 65536.0f, 65536.0f }, + { 65534.0f, 0x7c00, 0x7c00, 65536.0f, 65536.0f }, + { 65535.0f, 0x7c00, 0x7c00, 65535.0f, 65536.0f }, + { 65536.0f, 0x7c00, 0x7c00, 65536.0f, 65536.0f }, + { -80000.0f, 0xfc00, 0xfce2, -65536.0f, -80000.0f }, + { -65503.0f, 0xfbff, 0xfbff, -65504.0f, -65504.0f }, + { -65504.0f, 0xfbff, 0xfbff, -65504.0f, -65504.0f }, + { -65520.0f, 0xfbff, 0xfc00, -65504.0f, -65536.0f }, + { -65521.0f, 0xfc00, 0xfc00, -65536.0f, -65536.0f }, + { -65534.0f, 0xfc00, 0xfc00, -65536.0f, -65536.0f }, + { -65535.0f, 0xfc00, 0xfc00, -65535.0f, -65536.0f }, + { -65536.0f, 0xfc00, 0xfc00, -65536.0f, -65536.0f }, + { INFINITY, 0x7c00, 0x7fff, 65536.0f, 131008.0f }, + { -INFINITY, 0xffff, 0xffff, -131008.0f, -131008.0f }, + { NAN, 0x7fff, 0x7fff, 131008.0f, 131008.0f }, + { -NAN, 0xffff, 0xffff, -131008.0f, -131008.0f }, + { 0.0f, 0x0, 0x0, 0.0f, 0.0f }, + { -0.0f, 0x8000, 0x8000, 0.0f, 0.0f }, + }; + + /* exception on NULL out or in parameter */ + out = D3DXFloat16To32Array(&single, (D3DXFLOAT16 *)&half, 0); + ok(out == &single, "Got %p, expected %p.\n", out, &single); + + for (i = 0; i < sizeof(testdata)/sizeof(testdata[0]); i++) + { + out = D3DXFloat16To32Array(&single, (D3DXFLOAT16 *)&testdata[i].half_ver1, 1); + ok(out == &single, "Got %p, expected %p.\n", out, &single); + ok(relative_error(single, testdata[i].single_out_ver1) < admitted_error, + "Got %g, expected %g for index %d.\n", single, testdata[i].single_out_ver1, i); + + out = D3DXFloat16To32Array(&single, (D3DXFLOAT16 *)&testdata[i].half_ver2, 1); + ok(out == &single, "Got %p, expected %p.\n", out, &single); + ok(relative_error(single, testdata[i].single_out_ver2) < admitted_error, + "Got %g, expected %g for index %d.\n", single, testdata[i].single_out_ver2, i); + } +} + START_TEST(math) { D3DXColorTest(); @@ -2230,4 +2289,5 @@ START_TEST(math) test_Matrix_Decompose(); test_Matrix_Transformation2D(); test_D3DXVec_Array(); + test_D3DXFloat_Array(); }
1
0
0
0
Misha Koshelev : include: Add declarations related to D3DXFLOAT16.
by Alexandre Julliard
01 Jul '11
01 Jul '11
Module: wine Branch: master Commit: e35f1a4babd2fd3d09fcdec93d6d6a2fcdf58f44 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e35f1a4babd2fd3d09fcdec93…
Author: Misha Koshelev <misha680(a)gmail.com> Date: Wed Jun 29 11:16:29 2011 -0400 include: Add declarations related to D3DXFLOAT16. --- include/d3dx9math.h | 18 ++++++++++++++++++ include/d3dx9math.inl | 31 +++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 0 deletions(-) diff --git a/include/d3dx9math.h b/include/d3dx9math.h index f28ffd1..79a7e66 100644 --- a/include/d3dx9math.h +++ b/include/d3dx9math.h @@ -261,6 +261,21 @@ typedef struct D3DXCOLOR FLOAT r, g, b, a; } D3DXCOLOR, *LPD3DXCOLOR; +typedef struct D3DXFLOAT16 +{ +#ifdef __cplusplus + D3DXFLOAT16(); + D3DXFLOAT16(FLOAT f); + D3DXFLOAT16(CONST D3DXFLOAT16 &f); + + operator FLOAT (); + + BOOL operator == (CONST D3DXFLOAT16 &) const; + BOOL operator != (CONST D3DXFLOAT16 &) const; +#endif /* __cplusplus */ + WORD value; +} D3DXFLOAT16, *LPD3DXFLOAT16; + #ifdef __cplusplus extern "C" { #endif @@ -357,6 +372,9 @@ D3DXVECTOR4* WINAPI D3DXVec4Normalize(D3DXVECTOR4 *pout, CONST D3DXVECTOR4 *pv); D3DXVECTOR4* WINAPI D3DXVec4Transform(D3DXVECTOR4 *pout, CONST D3DXVECTOR4 *pv, CONST D3DXMATRIX *pm); D3DXVECTOR4* WINAPI D3DXVec4TransformArray(D3DXVECTOR4 *pout, UINT outstride, CONST D3DXVECTOR4 *pv, UINT vstride, CONST D3DXMATRIX *pm, UINT n); +D3DXFLOAT16 *WINAPI D3DXFloat32To16Array(D3DXFLOAT16 *pout, CONST FLOAT *pin, UINT n); +FLOAT *WINAPI D3DXFloat16To32Array(FLOAT *pout, CONST D3DXFLOAT16 *pin, UINT n); + #ifdef __cplusplus } #endif diff --git a/include/d3dx9math.inl b/include/d3dx9math.inl index 3cd078a..3f55aef 100644 --- a/include/d3dx9math.inl +++ b/include/d3dx9math.inl @@ -851,6 +851,37 @@ inline BOOL D3DXCOLOR::operator != (CONST D3DXCOLOR& col) const return r != col.r || g != col.g || b != col.b || a != col.a; } +inline D3DXFLOAT16::D3DXFLOAT16() +{ +} + +inline D3DXFLOAT16::D3DXFLOAT16(FLOAT f) +{ + D3DXFloat32To16Array(this, &f, 1); +} + +inline D3DXFLOAT16::D3DXFLOAT16(CONST D3DXFLOAT16 &f) +{ + value = f.value; +} + +inline D3DXFLOAT16::operator FLOAT () +{ + FLOAT f; + D3DXFloat16To32Array(&f, this, 1); + return f; +} + +inline BOOL D3DXFLOAT16::operator == (CONST D3DXFLOAT16 &f) const +{ + return value == f.value; +} + +inline BOOL D3DXFLOAT16::operator != (CONST D3DXFLOAT16 &f) const +{ + return value != f.value; +} + #endif /* __cplusplus */ /*_______________D3DXCOLOR_____________________*/
1
0
0
0
Frédéric Delanoy : hhctrl.ocx: Remove misplaced semicolon after an if condition.
by Alexandre Julliard
01 Jul '11
01 Jul '11
Module: wine Branch: master Commit: c7a46f5d3e37843c44b01ed807d4b0c2119307a7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c7a46f5d3e37843c44b01ed80…
Author: Frédéric Delanoy <frederic.delanoy(a)gmail.com> Date: Thu Jun 30 16:46:34 2011 +0200 hhctrl.ocx: Remove misplaced semicolon after an if condition. --- dlls/hhctrl.ocx/hhctrl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/hhctrl.ocx/hhctrl.c b/dlls/hhctrl.ocx/hhctrl.c index 33cc1f1..f93fecc 100644 --- a/dlls/hhctrl.ocx/hhctrl.c +++ b/dlls/hhctrl.ocx/hhctrl.c @@ -126,7 +126,7 @@ static BOOL resolve_filename(const WCHAR *filename, WCHAR *fullname, DWORD bufle extra = strstrW(filename, delimW); if (extra) { - if (filename != chm_file); + if (filename != chm_file) memcpy(chm_file, filename, (extra-filename)*sizeof(WCHAR)); chm_file[extra-filename] = 0; filename = chm_file;
1
0
0
0
← Newer
1
...
81
82
83
84
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
Results per page:
10
25
50
100
200