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
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
January 2009
----- 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
3 participants
1348 discussions
Start a n
N
ew thread
Henri Verbeet : ddraw: Fix Thunk_IDirect3DDeviceImpl_2_GetCurrentViewport() .
by Alexandre Julliard
20 Jan '09
20 Jan '09
Module: wine Branch: master Commit: ba771f0facf8fce276a8e75be021a7eca24eb258 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ba771f0facf8fce276a8e75be…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue Jan 20 10:00:20 2009 +0100 ddraw: Fix Thunk_IDirect3DDeviceImpl_2_GetCurrentViewport(). --- dlls/ddraw/device.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c index c4f5861..f4d86ac 100644 --- a/dlls/ddraw/device.c +++ b/dlls/ddraw/device.c @@ -1964,7 +1964,7 @@ static HRESULT WINAPI Thunk_IDirect3DDeviceImpl_2_GetCurrentViewport(IDirect3DDevice2 *iface, IDirect3DViewport2 **Direct3DViewport2) { - ICOM_THIS_FROM(IDirect3DDeviceImpl, IDirect3DDevice3, iface); + ICOM_THIS_FROM(IDirect3DDeviceImpl, IDirect3DDevice2, iface); HRESULT hr; TRACE_(ddraw_thunk)("(%p)->(%p) thunking to IDirect3DDevice3 interface.\n", This, Direct3DViewport2); hr = IDirect3DDevice3_GetCurrentViewport(ICOM_INTERFACE(This, IDirect3DDevice3),
1
0
0
0
Henri Verbeet : d3d9: Remove some superfluous pointer casts.
by Alexandre Julliard
20 Jan '09
20 Jan '09
Module: wine Branch: master Commit: 9e7b5676a7ac162fe69e92750c67f5d024b5e6f8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9e7b5676a7ac162fe69e92750…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue Jan 20 10:00:20 2009 +0100 d3d9: Remove some superfluous pointer casts. --- dlls/d3d9/device.c | 2 +- dlls/d3d9/tests/device.c | 2 +- dlls/d3d9/tests/visual.c | 20 ++++++++++---------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c index 768bf9d..aff0643 100644 --- a/dlls/d3d9/device.c +++ b/dlls/d3d9/device.c @@ -265,7 +265,7 @@ static BOOL WINAPI IDirect3DDevice9Impl_ShowCursor(LPDIRECT3DDEVICE9EX ifac } static HRESULT WINAPI reset_enum_callback(IWineD3DResource *resource, void *data) { - BOOL *resources_ok = (BOOL *) data; + BOOL *resources_ok = data; WINED3DRESOURCETYPE type; HRESULT ret = S_OK; WINED3DSURFACE_DESC surface_desc; diff --git a/dlls/d3d9/tests/device.c b/dlls/d3d9/tests/device.c index a934974..135ceba 100644 --- a/dlls/d3d9/tests/device.c +++ b/dlls/d3d9/tests/device.c @@ -1770,7 +1770,7 @@ static void test_vertex_buffer_alignment(void) } if(FAILED(hr)) continue; - hr = IDirect3DVertexBuffer9_Lock(buffer, 0, 0, (void **) &data, 0); + hr = IDirect3DVertexBuffer9_Lock(buffer, 0, 0, &data, 0); ok(SUCCEEDED(hr), "IDirect3DVertexBuffer9_Lock failed (0x%08x)\n", hr); ok(((DWORD_PTR) data & 31) == 0, "Vertex buffer start address is not 32 byte aligned(size: %d, pool: %s, data: %p)\n", sizes[i], debug_d3dpool(pools[j]), data); diff --git a/dlls/d3d9/tests/visual.c b/dlls/d3d9/tests/visual.c index 1504a53..57dfab1 100644 --- a/dlls/d3d9/tests/visual.c +++ b/dlls/d3d9/tests/visual.c @@ -6490,13 +6490,13 @@ static void shademode_test(IDirect3DDevice9 *device) hr = IDirect3DDevice9_SetFVF(device, D3DFVF_XYZ | D3DFVF_DIFFUSE); ok(hr == D3D_OK, "IDirect3DDevice9_SetFVF failed with %08x\n", hr); - hr = IDirect3DVertexBuffer9_Lock(vb_strip, 0, sizeof(quad_strip), (void **) &data, 0); + hr = IDirect3DVertexBuffer9_Lock(vb_strip, 0, sizeof(quad_strip), &data, 0); ok(hr == D3D_OK, "IDirect3DVertexBuffer9_Lock failed with %08x\n", hr); memcpy(data, quad_strip, sizeof(quad_strip)); hr = IDirect3DVertexBuffer9_Unlock(vb_strip); ok(hr == D3D_OK, "IDirect3DVertexBuffer9_Unlock failed with %08x\n", hr); - hr = IDirect3DVertexBuffer9_Lock(vb_list, 0, sizeof(quad_list), (void **) &data, 0); + hr = IDirect3DVertexBuffer9_Lock(vb_list, 0, sizeof(quad_list), &data, 0); ok(hr == D3D_OK, "IDirect3DVertexBuffer9_Lock failed with %08x\n", hr); memcpy(data, quad_list, sizeof(quad_list)); hr = IDirect3DVertexBuffer9_Unlock(vb_list); @@ -7087,7 +7087,7 @@ static void fixed_function_decl_test(IDirect3DDevice9 *device) ok(hr == D3D_OK, "IDirect3DDevice9_BeginScene failed (%08x)\n", hr); if(SUCCEEDED(hr)) { if(dcl_color) { - hr = IDirect3DVertexBuffer9_Lock(vb, 0, sizeof(quad1), (void **) &data, 0); + hr = IDirect3DVertexBuffer9_Lock(vb, 0, sizeof(quad1), &data, 0); ok(hr == D3D_OK, "IDirect3DVertexBuffer9_Lock failed with %08x\n", hr); memcpy(data, quad1, sizeof(quad1)); hr = IDirect3DVertexBuffer9_Unlock(vb); @@ -7101,7 +7101,7 @@ static void fixed_function_decl_test(IDirect3DDevice9 *device) } if(dcl_ubyte) { - hr = IDirect3DVertexBuffer9_Lock(vb, 0, sizeof(quad2), (void **) &data, 0); + hr = IDirect3DVertexBuffer9_Lock(vb, 0, sizeof(quad2), &data, 0); ok(hr == D3D_OK, "IDirect3DVertexBuffer9_Lock failed with %08x\n", hr); memcpy(data, quad2, sizeof(quad2)); hr = IDirect3DVertexBuffer9_Unlock(vb); @@ -7117,7 +7117,7 @@ static void fixed_function_decl_test(IDirect3DDevice9 *device) } if(dcl_short) { - hr = IDirect3DVertexBuffer9_Lock(vb, 0, sizeof(quad3), (void **) &data, 0); + hr = IDirect3DVertexBuffer9_Lock(vb, 0, sizeof(quad3), &data, 0); ok(hr == D3D_OK, "IDirect3DVertexBuffer9_Lock failed with %08x\n", hr); memcpy(data, quad3, sizeof(quad3)); hr = IDirect3DVertexBuffer9_Unlock(vb); @@ -7133,7 +7133,7 @@ static void fixed_function_decl_test(IDirect3DDevice9 *device) } if(dcl_float) { - hr = IDirect3DVertexBuffer9_Lock(vb, 0, sizeof(quad4), (void **) &data, 0); + hr = IDirect3DVertexBuffer9_Lock(vb, 0, sizeof(quad4), &data, 0); ok(hr == D3D_OK, "IDirect3DVertexBuffer9_Lock failed with %08x\n", hr); memcpy(data, quad4, sizeof(quad4)); hr = IDirect3DVertexBuffer9_Unlock(vb); @@ -7182,7 +7182,7 @@ static void fixed_function_decl_test(IDirect3DDevice9 *device) hr = IDirect3DDevice9_Clear(device, 0, NULL, D3DCLEAR_TARGET, 0xff0000ff, 0.0, 0); ok(hr == D3D_OK, "IDirect3DDevice9_Clear failed with %08x\n", hr); - hr = IDirect3DVertexBuffer9_Lock(vb, 0, sizeof(quad_transformed), (void **) &data, 0); + hr = IDirect3DVertexBuffer9_Lock(vb, 0, sizeof(quad_transformed), &data, 0); ok(hr == D3D_OK, "IDirect3DVertexBuffer9_Lock failed with %08x\n", hr); memcpy(data, quad_transformed, sizeof(quad_transformed)); hr = IDirect3DVertexBuffer9_Unlock(vb); @@ -7262,7 +7262,7 @@ static void fixed_function_decl_test(IDirect3DDevice9 *device) goto out; } - hr = IDirect3DVertexBuffer9_Lock(vb, 0, sizeof(quads), (void **) &data, 0); + hr = IDirect3DVertexBuffer9_Lock(vb, 0, sizeof(quads), &data, 0); ok(hr == D3D_OK, "IDirect3DVertexBuffer9_Lock failed with %08x\n", hr); memcpy(data, quads, sizeof(quads)); hr = IDirect3DVertexBuffer9_Unlock(vb); @@ -7270,7 +7270,7 @@ static void fixed_function_decl_test(IDirect3DDevice9 *device) hr = IDirect3DDevice9_CreateVertexBuffer(device, sizeof(colors), 0, 0, D3DPOOL_MANAGED, &vb2, NULL); ok(hr == D3D_OK, "CreateVertexBuffer failed with %08x\n", hr); - hr = IDirect3DVertexBuffer9_Lock(vb2, 0, sizeof(colors), (void **) &data, 0); + hr = IDirect3DVertexBuffer9_Lock(vb2, 0, sizeof(colors), &data, 0); ok(hr == D3D_OK, "IDirect3DVertexBuffer9_Lock failed with %08x\n", hr); memcpy(data, colors, sizeof(colors)); hr = IDirect3DVertexBuffer9_Unlock(vb2); @@ -7455,7 +7455,7 @@ static void test_vshader_float16(IDirect3DDevice9 *device) hr = IDirect3DDevice9_CreateVertexBuffer(device, sizeof(quad), 0, 0, D3DPOOL_MANAGED, &buffer, NULL); ok(hr == D3D_OK, "IDirect3DDevice9_CreateVertexBuffer failed, hr=%08x\n", hr); - hr = IDirect3DVertexBuffer9_Lock(buffer, 0, sizeof(quad), (void **) &data, 0); + hr = IDirect3DVertexBuffer9_Lock(buffer, 0, sizeof(quad), &data, 0); ok(hr == D3D_OK, "IDirect3DVertexBuffer9_Lock failed, hr=%08x\n", hr); memcpy(data, quad, sizeof(quad)); hr = IDirect3DVertexBuffer9_Unlock(buffer);
1
0
0
0
Henri Verbeet : ddraw: Compare the against the correct IID in IDirect3DExecuteBufferImpl_QueryInterface ().
by Alexandre Julliard
20 Jan '09
20 Jan '09
Module: wine Branch: master Commit: b2d42ad665363f67228a90d354be66a0ec0842d8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b2d42ad665363f67228a90d35…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue Jan 20 10:00:20 2009 +0100 ddraw: Compare the against the correct IID in IDirect3DExecuteBufferImpl_QueryInterface(). --- dlls/ddraw/executebuffer.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ddraw/executebuffer.c b/dlls/ddraw/executebuffer.c index 4dfc679..8d6ba26 100644 --- a/dlls/ddraw/executebuffer.c +++ b/dlls/ddraw/executebuffer.c @@ -603,7 +603,7 @@ IDirect3DExecuteBufferImpl_QueryInterface(IDirect3DExecuteBuffer *iface, TRACE(" Creating IUnknown interface at %p.\n", *obj); return S_OK; } - if ( IsEqualGUID( &IID_IDirect3DMaterial, riid ) ) { + if ( IsEqualGUID( &IID_IDirect3DExecuteBuffer, riid ) ) { IDirect3DExecuteBuffer_AddRef(ICOM_INTERFACE(This, IDirect3DExecuteBuffer)); *obj = ICOM_INTERFACE(This, IDirect3DExecuteBuffer); TRACE(" Creating IDirect3DExecuteBuffer interface %p\n", *obj);
1
0
0
0
Henri Verbeet : d3d10core: Remove a superfluous pointer cast.
by Alexandre Julliard
20 Jan '09
20 Jan '09
Module: wine Branch: master Commit: 3dbe0f9a826369983720be420cdfa1c25276c28a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3dbe0f9a826369983720be420…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue Jan 20 10:00:20 2009 +0100 d3d10core: Remove a superfluous pointer cast. --- dlls/d3d10core/d3d10core_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/d3d10core/d3d10core_main.c b/dlls/d3d10core/d3d10core_main.c index ba4cba5..273f15d 100644 --- a/dlls/d3d10core/d3d10core_main.c +++ b/dlls/d3d10core/d3d10core_main.c @@ -80,7 +80,7 @@ static HRESULT WINAPI layer_create(enum dxgi_device_layer_id id, void **layer_ba return E_NOTIMPL; } - object = (struct d3d10_device *)*layer_base; + object = *layer_base; object->vtbl = &d3d10_device_vtbl; object->inner_unknown_vtbl = &d3d10_device_inner_unknown_vtbl;
1
0
0
0
Henri Verbeet : wined3d: Remove some superfluous pointer casts.
by Alexandre Julliard
20 Jan '09
20 Jan '09
Module: wine Branch: master Commit: 5d875906c1f164fed2538f8f18105ce6aa8136ed URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5d875906c1f164fed2538f8f1…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue Jan 20 10:00:20 2009 +0100 wined3d: Remove some superfluous pointer casts. --- dlls/wined3d/drawprim.c | 28 ++++++++++++++-------------- dlls/wined3d/glsl_shader.c | 8 ++++---- dlls/wined3d/utils.c | 6 +++--- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c index b78078f..929565f 100644 --- a/dlls/wined3d/drawprim.c +++ b/dlls/wined3d/drawprim.c @@ -324,8 +324,8 @@ static void drawStridedSlow(IWineD3DDevice *iface, const WineDirect3DVertexStrid idxData = ((IWineD3DIndexBufferImpl *) This->stateBlock->pIndexData)->resource.allocatedMemory; } - if (idxSize == 2) pIdxBufS = (const WORD *) idxData; - else pIdxBufL = (const DWORD *) idxData; + if (idxSize == 2) pIdxBufS = idxData; + else pIdxBufL = idxData; } else if (idxData) { ERR("non-NULL idxData with 0 idxSize, this should never happen\n"); return; @@ -519,16 +519,16 @@ static void drawStridedSlow(IWineD3DDevice *iface, const WineDirect3DVertexStrid static inline void send_attribute(IWineD3DDeviceImpl *This, const DWORD type, const UINT index, const void *ptr) { switch(type) { case WINED3DDECLTYPE_FLOAT1: - GL_EXTCALL(glVertexAttrib1fvARB(index, (const float *)ptr)); + GL_EXTCALL(glVertexAttrib1fvARB(index, ptr)); break; case WINED3DDECLTYPE_FLOAT2: - GL_EXTCALL(glVertexAttrib2fvARB(index, (const float *)ptr)); + GL_EXTCALL(glVertexAttrib2fvARB(index, ptr)); break; case WINED3DDECLTYPE_FLOAT3: - GL_EXTCALL(glVertexAttrib3fvARB(index, (const float *)ptr)); + GL_EXTCALL(glVertexAttrib3fvARB(index, ptr)); break; case WINED3DDECLTYPE_FLOAT4: - GL_EXTCALL(glVertexAttrib4fvARB(index, (const float *)ptr)); + GL_EXTCALL(glVertexAttrib4fvARB(index, ptr)); break; case WINED3DDECLTYPE_UBYTE4: @@ -540,10 +540,10 @@ static inline void send_attribute(IWineD3DDeviceImpl *This, const DWORD type, co break; case WINED3DDECLTYPE_SHORT2: - GL_EXTCALL(glVertexAttrib4svARB(index, (const GLshort *)ptr)); + GL_EXTCALL(glVertexAttrib4svARB(index, ptr)); break; case WINED3DDECLTYPE_SHORT4: - GL_EXTCALL(glVertexAttrib4svARB(index, (const GLshort *)ptr)); + GL_EXTCALL(glVertexAttrib4svARB(index, ptr)); break; case WINED3DDECLTYPE_SHORT2N: @@ -559,10 +559,10 @@ static inline void send_attribute(IWineD3DDeviceImpl *This, const DWORD type, co break; } case WINED3DDECLTYPE_SHORT4N: - GL_EXTCALL(glVertexAttrib4NsvARB(index, (const GLshort *)ptr)); + GL_EXTCALL(glVertexAttrib4NsvARB(index, ptr)); break; case WINED3DDECLTYPE_USHORT4N: - GL_EXTCALL(glVertexAttrib4NusvARB(index, (const GLushort *)ptr)); + GL_EXTCALL(glVertexAttrib4NusvARB(index, ptr)); break; case WINED3DDECLTYPE_UDEC3: @@ -579,7 +579,7 @@ static inline void send_attribute(IWineD3DDeviceImpl *This, const DWORD type, co * byte float according to the IEEE standard */ if (GL_SUPPORT(NV_HALF_FLOAT)) { - GL_EXTCALL(glVertexAttrib2hvNV(index, (const GLhalfNV *)ptr)); + GL_EXTCALL(glVertexAttrib2hvNV(index, ptr)); } else { float x = float_16_to_32(((const unsigned short *)ptr) + 0); float y = float_16_to_32(((const unsigned short *)ptr) + 1); @@ -588,7 +588,7 @@ static inline void send_attribute(IWineD3DDeviceImpl *This, const DWORD type, co break; case WINED3DDECLTYPE_FLOAT16_4: if (GL_SUPPORT(NV_HALF_FLOAT)) { - GL_EXTCALL(glVertexAttrib4hvNV(index, (const GLhalfNV *)ptr)); + GL_EXTCALL(glVertexAttrib4hvNV(index, ptr)); } else { float x = float_16_to_32(((const unsigned short *)ptr) + 0); float y = float_16_to_32(((const unsigned short *)ptr) + 1); @@ -626,8 +626,8 @@ static void drawStridedSlowVs(IWineD3DDevice *iface, const WineDirect3DVertexStr idxData = ((IWineD3DIndexBufferImpl *) stateblock->pIndexData)->resource.allocatedMemory; } - if (idxSize == 2) pIdxBufS = (const WORD *) idxData; - else pIdxBufL = (const DWORD *) idxData; + if (idxSize == 2) pIdxBufS = idxData; + else pIdxBufL = idxData; } else if (idxData) { ERR("non-NULL idxData with 0 idxSize, this should never happen\n"); return; diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c index 8dfb416..d1e1bae 100644 --- a/dlls/wined3d/glsl_shader.c +++ b/dlls/wined3d/glsl_shader.c @@ -471,7 +471,7 @@ static void shader_glsl_load_constantsB(IWineD3DBaseShaderImpl *This, const Wine static void reset_program_constant_version(void *value, void *context) { - struct glsl_shader_prog_link *entry = (struct glsl_shader_prog_link *)value; + struct glsl_shader_prog_link *entry = value; entry->constant_version = 0; } @@ -3665,7 +3665,7 @@ static void shader_glsl_destroy(IWineD3DBaseShader *iface) { static unsigned int glsl_program_key_hash(const void *key) { - const glsl_program_key_t *k = (const glsl_program_key_t *)key; + const glsl_program_key_t *k = key; unsigned int hash = k->vshader | ((DWORD_PTR) k->pshader) << 16; hash += ~(hash << 15); @@ -3680,8 +3680,8 @@ static unsigned int glsl_program_key_hash(const void *key) static BOOL glsl_program_key_compare(const void *keya, const void *keyb) { - const glsl_program_key_t *ka = (const glsl_program_key_t *)keya; - const glsl_program_key_t *kb = (const glsl_program_key_t *)keyb; + const glsl_program_key_t *ka = keya; + const glsl_program_key_t *kb = keyb; return ka->vshader == kb->vshader && ka->pshader == kb->pshader && (memcmp(&ka->ps_args, &kb->ps_args, sizeof(kb->ps_args)) == 0); diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c index cc09584..3036ef2 100644 --- a/dlls/wined3d/utils.c +++ b/dlls/wined3d/utils.c @@ -2241,7 +2241,7 @@ void sampler_texdim(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DCont unsigned int ffp_frag_program_key_hash(const void *key) { - const struct ffp_frag_settings *k = (const struct ffp_frag_settings *)key; + const struct ffp_frag_settings *k = key; unsigned int hash = 0, i; const DWORD *blob; @@ -2268,8 +2268,8 @@ unsigned int ffp_frag_program_key_hash(const void *key) BOOL ffp_frag_program_key_compare(const void *keya, const void *keyb) { - const struct ffp_frag_settings *ka = (const struct ffp_frag_settings *)keya; - const struct ffp_frag_settings *kb = (const struct ffp_frag_settings *)keyb; + const struct ffp_frag_settings *ka = keya; + const struct ffp_frag_settings *kb = keyb; return memcmp(ka, kb, sizeof(*ka)) == 0; }
1
0
0
0
Francois Gouget : wineconsole: Make WINECON_SetHistory{Mode, Size}() static.
by Alexandre Julliard
20 Jan '09
20 Jan '09
Module: wine Branch: master Commit: de58df0e8d0c83c57d094c5b9fb4ee6a75844752 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=de58df0e8d0c83c57d094c5b9…
Author: Francois Gouget <fgouget(a)free.fr> Date: Tue Jan 20 09:16:20 2009 +0100 wineconsole: Make WINECON_SetHistory{Mode,Size}() static. --- programs/wineconsole/winecon_private.h | 2 -- programs/wineconsole/wineconsole.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/programs/wineconsole/winecon_private.h b/programs/wineconsole/winecon_private.h index 9823a8b..ca33ec6 100644 --- a/programs/wineconsole/winecon_private.h +++ b/programs/wineconsole/winecon_private.h @@ -79,9 +79,7 @@ struct inner_data { extern void WINECON_Fatal(const char* msg); extern void WINECON_NotifyWindowChange(struct inner_data* data); extern int WINECON_GetHistorySize(HANDLE hConIn); -extern BOOL WINECON_SetHistorySize(HANDLE hConIn, int size); extern int WINECON_GetHistoryMode(HANDLE hConIn); -extern BOOL WINECON_SetHistoryMode(HANDLE hConIn, int mode); extern BOOL WINECON_GetConsoleTitle(HANDLE hConIn, WCHAR* buffer, size_t len); extern int WINECON_GrabChanges(struct inner_data* data); extern VOID WINECON_SetConfig(struct inner_data* data, diff --git a/programs/wineconsole/wineconsole.c b/programs/wineconsole/wineconsole.c index c5381af..1c146df 100644 --- a/programs/wineconsole/wineconsole.c +++ b/programs/wineconsole/wineconsole.c @@ -124,7 +124,7 @@ int WINECON_GetHistorySize(HANDLE hConIn) * * */ -BOOL WINECON_SetHistorySize(HANDLE hConIn, int size) +static BOOL WINECON_SetHistorySize(HANDLE hConIn, int size) { BOOL ret; @@ -163,7 +163,7 @@ int WINECON_GetHistoryMode(HANDLE hConIn) * * */ -BOOL WINECON_SetHistoryMode(HANDLE hConIn, int mode) +static BOOL WINECON_SetHistoryMode(HANDLE hConIn, int mode) { BOOL ret;
1
0
0
0
Francois Gouget : wineconsole: Make some functions static.
by Alexandre Julliard
20 Jan '09
20 Jan '09
Module: wine Branch: master Commit: e7ec428c479b4f10163a3f5b54e809f3bb70eb53 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e7ec428c479b4f10163a3f5b5…
Author: Francois Gouget <fgouget(a)free.fr> Date: Tue Jan 20 09:15:26 2009 +0100 wineconsole: Make some functions static. --- programs/wineconsole/user.c | 2 +- programs/wineconsole/winecon_private.h | 1 - programs/wineconsole/winecon_user.h | 2 -- programs/wineconsole/wineconsole.c | 2 +- 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/programs/wineconsole/user.c b/programs/wineconsole/user.c index 1c00f31..391e833 100644 --- a/programs/wineconsole/user.c +++ b/programs/wineconsole/user.c @@ -318,7 +318,7 @@ void WCUSER_DumpTextMetric(const TEXTMETRIC* tm, DWORD ft) * * */ -BOOL WCUSER_AreFontsEqual(const struct config_data* config, const LOGFONT* lf) +static BOOL WCUSER_AreFontsEqual(const struct config_data* config, const LOGFONT* lf) { return lf->lfHeight == config->cell_height && lf->lfWeight == config->font_weight && diff --git a/programs/wineconsole/winecon_private.h b/programs/wineconsole/winecon_private.h index 7ea5dc0..9823a8b 100644 --- a/programs/wineconsole/winecon_private.h +++ b/programs/wineconsole/winecon_private.h @@ -83,7 +83,6 @@ extern BOOL WINECON_SetHistorySize(HANDLE hConIn, int size); extern int WINECON_GetHistoryMode(HANDLE hConIn); extern BOOL WINECON_SetHistoryMode(HANDLE hConIn, int mode); extern BOOL WINECON_GetConsoleTitle(HANDLE hConIn, WCHAR* buffer, size_t len); -extern void WINECON_FetchCells(struct inner_data* data, int upd_tp, int upd_bm); extern int WINECON_GrabChanges(struct inner_data* data); extern VOID WINECON_SetConfig(struct inner_data* data, const struct config_data* cfg); diff --git a/programs/wineconsole/winecon_user.h b/programs/wineconsole/winecon_user.h index b630499..51db26c 100644 --- a/programs/wineconsole/winecon_user.h +++ b/programs/wineconsole/winecon_user.h @@ -48,8 +48,6 @@ extern BOOL WCUSER_GetProperties(struct inner_data*, BOOL); extern BOOL WCUSER_ValidateFont(const struct inner_data* data, const LOGFONT* lf); extern BOOL WCUSER_ValidateFontMetric(const struct inner_data* data, const TEXTMETRIC* tm, DWORD fontType); -extern BOOL WCUSER_AreFontsEqual(const struct config_data* config, - const LOGFONT* lf); extern HFONT WCUSER_CopyFont(struct config_data* config, HWND hWnd, const LOGFONT* lf, LONG* el); extern void WCUSER_FillLogFont(LOGFONT* lf, const WCHAR* name, diff --git a/programs/wineconsole/wineconsole.c b/programs/wineconsole/wineconsole.c index 3626383..c5381af 100644 --- a/programs/wineconsole/wineconsole.c +++ b/programs/wineconsole/wineconsole.c @@ -64,7 +64,7 @@ static void WINECON_Usage(void) * * updates the local copy of cells (band to update) */ -void WINECON_FetchCells(struct inner_data* data, int upd_tp, int upd_bm) +static void WINECON_FetchCells(struct inner_data* data, int upd_tp, int upd_bm) { SERVER_START_REQ( read_console_output ) {
1
0
0
0
Francois Gouget : wineconsole: WCUSER_OptionDlgProc(): use the given configuration information.
by Alexandre Julliard
20 Jan '09
20 Jan '09
Module: wine Branch: master Commit: cf92ee98be2128e5ebe0ee11ae3643ec1ee6a409 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cf92ee98be2128e5ebe0ee11a…
Author: Francois Gouget <fgouget(a)free.fr> Date: Tue Jan 20 09:15:15 2009 +0100 wineconsole: WCUSER_OptionDlgProc(): use the given configuration information. --- programs/wineconsole/dialog.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/programs/wineconsole/dialog.c b/programs/wineconsole/dialog.c index 5c27017..cde013f 100644 --- a/programs/wineconsole/dialog.c +++ b/programs/wineconsole/dialog.c @@ -73,7 +73,7 @@ static INT_PTR WINAPI WCUSER_OptionDlgProc(HWND hDlg, UINT msg, WPARAM wParam, L else if (di->config.cursor_size <= 50) idc = IDC_OPT_CURSOR_MEDIUM; else idc = IDC_OPT_CURSOR_LARGE; SendDlgItemMessage(hDlg, idc, BM_SETCHECK, BST_CHECKED, 0L); - SetDlgItemInt(hDlg, IDC_OPT_HIST_SIZE, WINECON_GetHistorySize(di->data->hConIn), FALSE); + SetDlgItemInt(hDlg, IDC_OPT_HIST_SIZE, di->config.history_size, FALSE); SendDlgItemMessage(hDlg, IDC_OPT_HIST_NODOUBLE, BM_SETCHECK, (di->config.history_nodup) ? BST_CHECKED : BST_UNCHECKED, 0L); SendDlgItemMessage(hDlg, IDC_OPT_CONF_CTRL, BM_SETCHECK,
1
0
0
0
Francois Gouget : winedbg: Make lexeme_alloc() static in debug.l.
by Alexandre Julliard
20 Jan '09
20 Jan '09
Module: wine Branch: master Commit: 4061d1f8d87682d05168590dfe78f0c7e98cf1c4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4061d1f8d87682d05168590df…
Author: Francois Gouget <fgouget(a)free.fr> Date: Tue Jan 20 09:13:55 2009 +0100 winedbg: Make lexeme_alloc() static in debug.l. --- programs/winedbg/debug.l | 56 +++++++++++++++++++++--------------------- programs/winedbg/debugger.h | 1 - 2 files changed, 28 insertions(+), 29 deletions(-) diff --git a/programs/winedbg/debug.l b/programs/winedbg/debug.l index 3a47a17..4332989 100644 --- a/programs/winedbg/debug.l +++ b/programs/winedbg/debug.l @@ -36,6 +36,34 @@ #undef YY_INPUT +static char** local_lexemes /* = NULL */; +static int next_lexeme /* = 0 */; +static int alloc_lexeme /* = 0 */; + +char* lexeme_alloc_size(int size) +{ + assert(0 <= next_lexeme && next_lexeme < alloc_lexeme + 1); + if (next_lexeme >= alloc_lexeme) + { + alloc_lexeme += 32; + local_lexemes = dbg_heap_realloc(local_lexemes, alloc_lexeme * sizeof(local_lexemes[0])); + assert(local_lexemes); + } + return local_lexemes[next_lexeme++] = HeapAlloc(GetProcessHeap(), 0, size + 1); +} + +static char* lexeme_alloc(const char* lexeme) +{ + char* ptr = lexeme_alloc_size(strlen(lexeme) + 1); + return strcpy(ptr, lexeme); +} + +void lexeme_flush(void) +{ + while (--next_lexeme >= 0) HeapFree(GetProcessHeap(), 0, local_lexemes[next_lexeme]); + next_lexeme = 0; +} + static int read_input(const char* pfx, char* buf, int size) { int len; @@ -234,31 +262,3 @@ all { return tALL; } #ifndef dbg_wrap int dbg_wrap(void) { return 1; } #endif - -static char** local_lexemes /* = NULL */; -static int next_lexeme /* = 0 */; -static int alloc_lexeme /* = 0 */; - -char* lexeme_alloc_size(int size) -{ - assert(0 <= next_lexeme && next_lexeme < alloc_lexeme + 1); - if (next_lexeme >= alloc_lexeme) - { - alloc_lexeme += 32; - local_lexemes = dbg_heap_realloc(local_lexemes, alloc_lexeme * sizeof(local_lexemes[0])); - assert(local_lexemes); - } - return local_lexemes[next_lexeme++] = HeapAlloc(GetProcessHeap(), 0, size + 1); -} - -char* lexeme_alloc(const char* lexeme) -{ - char* ptr = lexeme_alloc_size(strlen(lexeme) + 1); - return strcpy(ptr, lexeme); -} - -void lexeme_flush(void) -{ - while (--next_lexeme >= 0) HeapFree(GetProcessHeap(), 0, local_lexemes[next_lexeme]); - next_lexeme = 0; -} diff --git a/programs/winedbg/debugger.h b/programs/winedbg/debugger.h index 2c7ef4e..0d34ddf 100644 --- a/programs/winedbg/debugger.h +++ b/programs/winedbg/debugger.h @@ -308,7 +308,6 @@ extern HANDLE parser_generate_command_file(const char*, ...); /* debug.l */ extern void lexeme_flush(void); -extern char* lexeme_alloc(const char*); extern char* lexeme_alloc_size(int); /* display.c */
1
0
0
0
Francois Gouget : winedbg: Make some functions static.
by Alexandre Julliard
20 Jan '09
20 Jan '09
Module: wine Branch: master Commit: 5012a57268762ed6a738ad51cc1ea6871304666d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5012a57268762ed6a738ad51c…
Author: Francois Gouget <fgouget(a)free.fr> Date: Tue Jan 20 09:13:23 2009 +0100 winedbg: Make some functions static. --- programs/winedbg/dbg.y | 5 +++-- programs/winedbg/debugger.h | 2 -- programs/winedbg/tgt_minidump.c | 2 +- programs/winedbg/winedbg.c | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/programs/winedbg/dbg.y b/programs/winedbg/dbg.y index 33ca896..7d1e44e 100644 --- a/programs/winedbg/dbg.y +++ b/programs/winedbg/dbg.y @@ -37,6 +37,7 @@ int dbg_lex(void); static int dbg_error(const char*); +static void parser(const char*); %} @@ -548,7 +549,7 @@ void parser_handle(HANDLE input) dbg_parser_output = out_copy; } -void parser(const char* filename) +static void parser(const char* filename) { HANDLE h = CreateFile(filename, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0L, 0); if (h != INVALID_HANDLE_VALUE) @@ -558,7 +559,7 @@ void parser(const char* filename) } } -int dbg_error(const char* s) +static int dbg_error(const char* s) { dbg_printf("%s\n", s); return 0; diff --git a/programs/winedbg/debugger.h b/programs/winedbg/debugger.h index 319f0dc..2c7ef4e 100644 --- a/programs/winedbg/debugger.h +++ b/programs/winedbg/debugger.h @@ -301,7 +301,6 @@ extern void break_restart_execution(int count); extern int break_add_condition(int bpnum, struct expr* exp); /* dbg.y */ -extern void parser(const char*); extern void parser_handle(HANDLE); extern int input_read_line(const char* pfx, char* buffer, int size); extern int input_fetch_entire_line(const char* pfx, char** line); @@ -436,7 +435,6 @@ extern struct dbg_type types_find_pointer(const struct dbg_type* type); extern struct dbg_type types_find_type(unsigned long linear, const char* name, enum SymTagEnum tag); /* winedbg.c */ -extern void dbg_outputA(const char* buffer, int len); extern void dbg_outputW(const WCHAR* buffer, int len); extern const char* dbg_W2A(const WCHAR* buffer, unsigned len); #ifdef __GNUC__ diff --git a/programs/winedbg/tgt_minidump.c b/programs/winedbg/tgt_minidump.c index a9f92db..bcdadcf 100644 --- a/programs/winedbg/tgt_minidump.c +++ b/programs/winedbg/tgt_minidump.c @@ -133,7 +133,7 @@ static BOOL WINAPI tgt_process_minidump_write(HANDLE hProcess, void* addr, return FALSE; } -BOOL CALLBACK validate_file(PCWSTR name, void* user) +static BOOL CALLBACK validate_file(PCWSTR name, void* user) { return FALSE; /* get the first file we find !! */ } diff --git a/programs/winedbg/winedbg.c b/programs/winedbg/winedbg.c index d1df695..a801425 100644 --- a/programs/winedbg/winedbg.c +++ b/programs/winedbg/winedbg.c @@ -99,7 +99,7 @@ struct dbg_internal_var dbg_internal_vars[DBG_IV_LAST]; const struct dbg_internal_var* dbg_context_vars; static HANDLE dbg_houtput; -void dbg_outputA(const char* buffer, int len) +static void dbg_outputA(const char* buffer, int len) { static char line_buff[4096]; static unsigned int line_pos;
1
0
0
0
← Newer
1
...
50
51
52
53
54
55
56
...
135
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
Results per page:
10
25
50
100
200