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
April 2011
----- 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
937 discussions
Start a n
N
ew thread
Dylan Smith : d3dx9: Implement GetAttributeTable and SetAttributeTable.
by Alexandre Julliard
28 Apr '11
28 Apr '11
Module: wine Branch: master Commit: e2d7fdf1f91ea669e599f7b5ab8dd53aafb68af0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e2d7fdf1f91ea669e599f7b5a…
Author: Dylan Smith <dylan.ah.smith(a)gmail.com> Date: Wed Apr 27 18:12:14 2011 -0400 d3dx9: Implement GetAttributeTable and SetAttributeTable. --- dlls/d3dx9_36/mesh.c | 40 ++++++++++++++++++++++++++++++++++++---- 1 files changed, 36 insertions(+), 4 deletions(-) diff --git a/dlls/d3dx9_36/mesh.c b/dlls/d3dx9_36/mesh.c index 8928536..e67dffa 100644 --- a/dlls/d3dx9_36/mesh.c +++ b/dlls/d3dx9_36/mesh.c @@ -50,6 +50,8 @@ typedef struct ID3DXMeshImpl IDirect3DIndexBuffer9 *index_buffer; DWORD *attrib_buffer; int attrib_buffer_lock_count; + DWORD attrib_table_size; + D3DXATTRIBUTERANGE *attrib_table; } ID3DXMeshImpl; static inline ID3DXMeshImpl *impl_from_ID3DXMesh(ID3DXMesh *iface) @@ -100,6 +102,7 @@ static ULONG WINAPI ID3DXMeshImpl_Release(ID3DXMesh *iface) IDirect3DVertexDeclaration9_Release(This->vertex_declaration); IDirect3DDevice9_Release(This->device); HeapFree(GetProcessHeap(), 0, This->attrib_buffer); + HeapFree(GetProcessHeap(), 0, This->attrib_table); HeapFree(GetProcessHeap(), 0, This); } @@ -278,9 +281,15 @@ static HRESULT WINAPI ID3DXMeshImpl_GetAttributeTable(ID3DXMesh *iface, D3DXATTR { ID3DXMeshImpl *This = impl_from_ID3DXMesh(iface); - FIXME("(%p)->(%p,%p): stub\n", This, attrib_table, attrib_table_size); + TRACE("(%p)->(%p,%p)\n", This, attrib_table, attrib_table_size); - return E_NOTIMPL; + if (attrib_table_size) + *attrib_table_size = This->attrib_table_size; + + if (attrib_table) + CopyMemory(attrib_table, This->attrib_table, This->attrib_table_size * sizeof(*attrib_table)); + + return D3D_OK; } static HRESULT WINAPI ID3DXMeshImpl_ConvertPointRepsToAdjacency(ID3DXMesh *iface, CONST DWORD *point_reps, DWORD *adjacency) @@ -480,6 +489,13 @@ static HRESULT WINAPI ID3DXMeshImpl_LockAttributeBuffer(ID3DXMesh *iface, DWORD InterlockedIncrement(&This->attrib_buffer_lock_count); + if (!(flags & D3DLOCK_READONLY)) { + D3DXATTRIBUTERANGE *attrib_table = This->attrib_table; + This->attrib_table_size = 0; + This->attrib_table = NULL; + HeapFree(GetProcessHeap(), 0, attrib_table); + } + *data = This->attrib_buffer; return D3D_OK; @@ -525,10 +541,26 @@ static HRESULT WINAPI ID3DXMeshImpl_OptimizeInplace(ID3DXMesh *iface, DWORD flag static HRESULT WINAPI ID3DXMeshImpl_SetAttributeTable(ID3DXMesh *iface, CONST D3DXATTRIBUTERANGE *attrib_table, DWORD attrib_table_size) { ID3DXMeshImpl *This = impl_from_ID3DXMesh(iface); + D3DXATTRIBUTERANGE *new_table = NULL; - FIXME("(%p)->(%p,%u): stub\n", This, attrib_table, attrib_table_size); + TRACE("(%p)->(%p,%u)\n", This, attrib_table, attrib_table_size); - return E_NOTIMPL; + if (attrib_table_size) { + size_t size = attrib_table_size * sizeof(*attrib_table); + + new_table = HeapAlloc(GetProcessHeap(), 0, size); + if (!new_table) + return E_OUTOFMEMORY; + + CopyMemory(new_table, attrib_table, size); + } else if (attrib_table) { + return D3DERR_INVALIDCALL; + } + HeapFree(GetProcessHeap(), 0, This->attrib_table); + This->attrib_table = new_table; + This->attrib_table_size = attrib_table_size; + + return D3D_OK; } static const struct ID3DXMeshVtbl D3DXMesh_Vtbl =
1
0
0
0
Dylan Smith : d3dx9: Implement LockAttributeBuffer & UnlockAttributeBuffer.
by Alexandre Julliard
28 Apr '11
28 Apr '11
Module: wine Branch: master Commit: 8baf96bb2216a063ce41804b124ca588ed3ae90d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8baf96bb2216a063ce41804b1…
Author: Dylan Smith <dylan.ah.smith(a)gmail.com> Date: Wed Apr 27 18:12:05 2011 -0400 d3dx9: Implement LockAttributeBuffer & UnlockAttributeBuffer. --- dlls/d3dx9_36/mesh.c | 29 ++++++++++++++++++++++++----- 1 files changed, 24 insertions(+), 5 deletions(-) diff --git a/dlls/d3dx9_36/mesh.c b/dlls/d3dx9_36/mesh.c index 404f447..8928536 100644 --- a/dlls/d3dx9_36/mesh.c +++ b/dlls/d3dx9_36/mesh.c @@ -48,6 +48,8 @@ typedef struct ID3DXMeshImpl IDirect3DVertexDeclaration9 *vertex_declaration; IDirect3DVertexBuffer9 *vertex_buffer; IDirect3DIndexBuffer9 *index_buffer; + DWORD *attrib_buffer; + int attrib_buffer_lock_count; } ID3DXMeshImpl; static inline ID3DXMeshImpl *impl_from_ID3DXMesh(ID3DXMesh *iface) @@ -97,6 +99,7 @@ static ULONG WINAPI ID3DXMeshImpl_Release(ID3DXMesh *iface) IDirect3DVertexBuffer9_Release(This->vertex_buffer); IDirect3DVertexDeclaration9_Release(This->vertex_declaration); IDirect3DDevice9_Release(This->device); + HeapFree(GetProcessHeap(), 0, This->attrib_buffer); HeapFree(GetProcessHeap(), 0, This); } @@ -473,18 +476,30 @@ static HRESULT WINAPI ID3DXMeshImpl_LockAttributeBuffer(ID3DXMesh *iface, DWORD { ID3DXMeshImpl *This = impl_from_ID3DXMesh(iface); - FIXME("(%p)->(%u,%p): stub\n", This, flags, data); + TRACE("(%p)->(%u,%p)\n", This, flags, data); - return E_NOTIMPL; + InterlockedIncrement(&This->attrib_buffer_lock_count); + + *data = This->attrib_buffer; + + return D3D_OK; } static HRESULT WINAPI ID3DXMeshImpl_UnlockAttributeBuffer(ID3DXMesh *iface) { ID3DXMeshImpl *This = impl_from_ID3DXMesh(iface); + int lock_count; + + TRACE("(%p)\n", This); - FIXME("(%p): stub\n", This); + lock_count = InterlockedDecrement(&This->attrib_buffer_lock_count); - return E_NOTIMPL; + if (lock_count < 0) { + InterlockedIncrement(&This->attrib_buffer_lock_count); + return D3DERR_INVALIDCALL; + } + + return D3D_OK; } static HRESULT WINAPI ID3DXMeshImpl_Optimize(ID3DXMesh *iface, DWORD flags, CONST DWORD *adjacency_in, DWORD *adjacency_out, @@ -1131,6 +1146,7 @@ HRESULT WINAPI D3DXCreateMesh(DWORD numfaces, DWORD numvertices, DWORD options, IDirect3DVertexDeclaration9 *vertex_declaration; IDirect3DVertexBuffer9 *vertex_buffer; IDirect3DIndexBuffer9 *index_buffer; + DWORD *attrib_buffer; ID3DXMeshImpl *object; DWORD index_usage = 0; D3DPOOL index_pool = D3DPOOL_DEFAULT; @@ -1242,9 +1258,11 @@ HRESULT WINAPI D3DXCreateMesh(DWORD numfaces, DWORD numvertices, DWORD options, return hr; } + attrib_buffer = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, numfaces * sizeof(*attrib_buffer)); object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(ID3DXMeshImpl)); - if (object == NULL) + if (object == NULL || attrib_buffer == NULL) { + HeapFree(GetProcessHeap(), 0, attrib_buffer); IDirect3DIndexBuffer9_Release(index_buffer); IDirect3DVertexBuffer9_Release(vertex_buffer); IDirect3DVertexDeclaration9_Release(vertex_declaration); @@ -1264,6 +1282,7 @@ HRESULT WINAPI D3DXCreateMesh(DWORD numfaces, DWORD numvertices, DWORD options, object->vertex_declaration = vertex_declaration; object->vertex_buffer = vertex_buffer; object->index_buffer = index_buffer; + object->attrib_buffer = attrib_buffer; *mesh = &object->ID3DXMesh_iface;
1
0
0
0
Dylan Smith : d3dx9: Implement GetNumBytesPerVertex using the vertex declaration.
by Alexandre Julliard
28 Apr '11
28 Apr '11
Module: wine Branch: master Commit: b2dac1df27a773ab4d63f92aa3248b97e1e56076 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b2dac1df27a773ab4d63f92aa…
Author: Dylan Smith <dylan.ah.smith(a)gmail.com> Date: Wed Apr 27 18:11:58 2011 -0400 d3dx9: Implement GetNumBytesPerVertex using the vertex declaration. If a declaration without a corresponding FVF is used to create the mesh, then its declaration must be used to get the vertex size. --- dlls/d3dx9_36/mesh.c | 7 ++++++- dlls/d3dx9_36/tests/mesh.c | 3 +++ 2 files changed, 9 insertions(+), 1 deletions(-) diff --git a/dlls/d3dx9_36/mesh.c b/dlls/d3dx9_36/mesh.c index 432db1d..404f447 100644 --- a/dlls/d3dx9_36/mesh.c +++ b/dlls/d3dx9_36/mesh.c @@ -157,10 +157,15 @@ static HRESULT WINAPI ID3DXMeshImpl_GetDeclaration(ID3DXMesh *iface, D3DVERTEXEL static DWORD WINAPI ID3DXMeshImpl_GetNumBytesPerVertex(ID3DXMesh *iface) { ID3DXMeshImpl *This = impl_from_ID3DXMesh(iface); + UINT numelements; + D3DVERTEXELEMENT9 declaration[MAX_FVF_DECL_SIZE] = { D3DDECL_END() }; TRACE("iface (%p)\n", This); - return D3DXGetFVFVertexSize(This->fvf); + IDirect3DVertexDeclaration9_GetDeclaration(This->vertex_declaration, + declaration, + &numelements); + return D3DXGetDeclVertexSize(declaration, 0); } static DWORD WINAPI ID3DXMeshImpl_GetOptions(ID3DXMesh *iface) diff --git a/dlls/d3dx9_36/tests/mesh.c b/dlls/d3dx9_36/tests/mesh.c index 88ac59c..bde8595 100644 --- a/dlls/d3dx9_36/tests/mesh.c +++ b/dlls/d3dx9_36/tests/mesh.c @@ -1216,6 +1216,9 @@ static void D3DXCreateMeshTest(void) free_mesh(&mesh); } + mesh.vertex_size = d3dxmesh->lpVtbl->GetNumBytesPerVertex(d3dxmesh); + ok(mesh.vertex_size == 60, "Got vertex size %u, expected %u\n", mesh.vertex_size, 60); + d3dxmesh->lpVtbl->Release(d3dxmesh); }
1
0
0
0
Dylan Smith : d3dx9: D3DXCreateMesh rejects declarations with non-zero streams.
by Alexandre Julliard
28 Apr '11
28 Apr '11
Module: wine Branch: master Commit: 96d5d06f2bbe39e189a183f22298ec6c0474ff35 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=96d5d06f2bbe39e189a183f22…
Author: Dylan Smith <dylan.ah.smith(a)gmail.com> Date: Wed Apr 27 18:11:48 2011 -0400 d3dx9: D3DXCreateMesh rejects declarations with non-zero streams. --- dlls/d3dx9_36/mesh.c | 4 ++++ dlls/d3dx9_36/tests/mesh.c | 10 ++++++++++ 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/dlls/d3dx9_36/mesh.c b/dlls/d3dx9_36/mesh.c index abcdcc8..432db1d 100644 --- a/dlls/d3dx9_36/mesh.c +++ b/dlls/d3dx9_36/mesh.c @@ -1132,6 +1132,7 @@ HRESULT WINAPI D3DXCreateMesh(DWORD numfaces, DWORD numvertices, DWORD options, D3DFORMAT index_format = D3DFMT_INDEX16; DWORD vertex_usage = 0; D3DPOOL vertex_pool = D3DPOOL_DEFAULT; + int i; TRACE("(%d, %d, %x, %p, %p, %p)\n", numfaces, numvertices, options, declaration, device, mesh); @@ -1141,6 +1142,9 @@ HRESULT WINAPI D3DXCreateMesh(DWORD numfaces, DWORD numvertices, DWORD options, { return D3DERR_INVALIDCALL; } + for (i = 0; declaration[i].Stream != 0xff; i++) + if (declaration[i].Stream != 0) + return D3DERR_INVALIDCALL; if (options & D3DXMESH_32BIT) index_format = D3DFMT_INDEX32; diff --git a/dlls/d3dx9_36/tests/mesh.c b/dlls/d3dx9_36/tests/mesh.c index 570e186..88ac59c 100644 --- a/dlls/d3dx9_36/tests/mesh.c +++ b/dlls/d3dx9_36/tests/mesh.c @@ -1036,6 +1036,12 @@ static void D3DXCreateMeshTest(void) D3DDECL_END(), }; + static const D3DVERTEXELEMENT9 decl3[] = { + {0, 0, D3DDECLTYPE_FLOAT3, D3DDECLMETHOD_DEFAULT, D3DDECLUSAGE_POSITION, 0}, + {1, 0, D3DDECLTYPE_FLOAT3, D3DDECLMETHOD_DEFAULT, D3DDECLUSAGE_NORMAL, 0}, + D3DDECL_END(), + }; + hr = D3DXCreateMesh(0, 0, 0, NULL, NULL, NULL); ok(hr == D3DERR_INVALIDCALL, "Got result %x, expected %x (D3DERR_INVALIDCALL)\n", hr, D3DERR_INVALIDCALL); @@ -1213,6 +1219,10 @@ static void D3DXCreateMeshTest(void) d3dxmesh->lpVtbl->Release(d3dxmesh); } + /* Test a declaration with multiple streams. */ + hr = D3DXCreateMesh(1, 3, D3DXMESH_MANAGED, decl3, device, &d3dxmesh); + ok(hr == D3DERR_INVALIDCALL, "Got result %x, expected %x (D3DERR_INVALIDCALL)\n", hr, D3DERR_INVALIDCALL); + IDirect3DDevice9_Release(device); IDirect3D9_Release(d3d); DestroyWindow(wnd);
1
0
0
0
Henri Verbeet : wined3d: Merge the IWineD3DSurface::SetFormat() implementations.
by Alexandre Julliard
28 Apr '11
28 Apr '11
Module: wine Branch: master Commit: c5baf8f237a4682910147e174a16aa3200268a47 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c5baf8f237a4682910147e174…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Apr 27 20:21:43 2011 +0200 wined3d: Merge the IWineD3DSurface::SetFormat() implementations. --- dlls/wined3d/surface.c | 21 ++++----------------- 1 files changed, 4 insertions(+), 17 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index b1cbcd7..80c9263 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -2712,9 +2712,12 @@ static HRESULT WINAPI IWineD3DBaseSurfaceImpl_SetFormat(IWineD3DSurface *iface, surface->resource.size = wined3d_format_calculate_size(format, surface->resource.device->surface_alignment, surface->pow2Width, surface->pow2Height); surface->flags |= (WINED3DFMT_D16_LOCKABLE == format_id) ? SFLAG_LOCKABLE : 0; + surface->flags &= ~(SFLAG_ALLOCATED | SFLAG_SRGBALLOCATED); surface->resource.format = format; TRACE("size %u, byte_count %u\n", surface->resource.size, format->byte_count); + TRACE("glFormat %#x, glInternal %#x, glType %#x.\n", + format->glFormat, format->glInternal, format->glType); return WINED3D_OK; } @@ -4993,22 +4996,6 @@ BOOL palette9_changed(IWineD3DSurfaceImpl *This) return TRUE; } -static HRESULT WINAPI IWineD3DSurfaceImpl_SetFormat(IWineD3DSurface *iface, enum wined3d_format_id format) -{ - IWineD3DSurfaceImpl *This = (IWineD3DSurfaceImpl *)iface; - HRESULT hr; - - TRACE("(%p) : Calling base function first\n", This); - hr = IWineD3DBaseSurfaceImpl_SetFormat(iface, format); - if (SUCCEEDED(hr)) - { - This->flags &= ~(SFLAG_ALLOCATED | SFLAG_SRGBALLOCATED); - TRACE("(%p) : glFormat %d, glFormatInternal %d, glType %d\n", This, This->resource.format->glFormat, - This->resource.format->glInternal, This->resource.format->glType); - } - return hr; -} - void flip_surface(IWineD3DSurfaceImpl *front, IWineD3DSurfaceImpl *back) { /* Flip the surface contents */ @@ -7114,7 +7101,7 @@ const IWineD3DSurfaceVtbl IWineD3DSurface_Vtbl = IWineD3DBaseSurfaceImpl_SetClipper, IWineD3DBaseSurfaceImpl_GetClipper, /* Internal use: */ - IWineD3DSurfaceImpl_SetFormat, + IWineD3DBaseSurfaceImpl_SetFormat, }; static HRESULT ffp_blit_alloc(IWineD3DDeviceImpl *device) { return WINED3D_OK; }
1
0
0
0
Henri Verbeet : wined3d: Merge the IWineD3DSurface::SetMem() implementations.
by Alexandre Julliard
28 Apr '11
28 Apr '11
Module: wine Branch: master Commit: 92120cb52782579b92d79852e43b3ce3042602ef URL:
http://source.winehq.org/git/wine.git/?a=commit;h=92120cb52782579b92d79852e…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Apr 27 20:21:42 2011 +0200 wined3d: Merge the IWineD3DSurface::SetMem() implementations. --- dlls/wined3d/surface.c | 240 ++++++++++++++++++++------------------- dlls/wined3d/wined3d_private.h | 1 + 2 files changed, 124 insertions(+), 117 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=92120cb52782579b92d79…
1
0
0
0
Henri Verbeet : wined3d: Merge the IWineD3DSurface::ReleaseDC() implementations.
by Alexandre Julliard
28 Apr '11
28 Apr '11
Module: wine Branch: master Commit: a5febcf7a1cc84ae43fe1ed18fb3265fe3164abd URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a5febcf7a1cc84ae43fe1ed18…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Apr 27 20:21:41 2011 +0200 wined3d: Merge the IWineD3DSurface::ReleaseDC() implementations. --- dlls/wined3d/surface.c | 86 ++++++++++++++++++------------------------------ 1 files changed, 32 insertions(+), 54 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index d384f6e..48bb253 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -3979,6 +3979,36 @@ static HRESULT WINAPI IWineD3DBaseSurfaceImpl_GetDC(IWineD3DSurface *iface, HDC return WINED3D_OK; } +static HRESULT WINAPI IWineD3DBaseSurfaceImpl_ReleaseDC(IWineD3DSurface *iface, HDC dc) +{ + IWineD3DSurfaceImpl *surface = (IWineD3DSurfaceImpl *)iface; + + TRACE("iface %p, dc %p.\n", iface, dc); + + if (!(surface->flags & SFLAG_DCINUSE)) + return WINEDDERR_NODC; + + if (surface->hDC != dc) + { + WARN("Application tries to release invalid DC %p, surface DC is %p.\n", + dc, surface->hDC); + return WINEDDERR_NODC; + } + + if ((surface->flags & SFLAG_PBO) && surface->resource.allocatedMemory) + { + /* Copy the contents of the DIB over to the PBO. */ + memcpy(surface->resource.allocatedMemory, surface->dib.bitmap_data, surface->dib.bitmap_size); + } + + /* We locked first, so unlock now. */ + IWineD3DSurface_Unmap(iface); + + surface->flags &= ~SFLAG_DCINUSE; + + return WINED3D_OK; +} + /* **************************************************** IWineD3DSurface IWineD3DResource parts follow **************************************************** */ @@ -4469,34 +4499,6 @@ static void flush_to_framebuffer_drawpixels(IWineD3DSurfaceImpl *surface, context_release(context); } -static HRESULT WINAPI IWineD3DSurfaceImpl_ReleaseDC(IWineD3DSurface *iface, HDC hDC) -{ - IWineD3DSurfaceImpl *This = (IWineD3DSurfaceImpl *)iface; - - TRACE("(%p)->(%p)\n",This,hDC); - - if (!(This->flags & SFLAG_DCINUSE)) - return WINEDDERR_NODC; - - if (This->hDC !=hDC) { - WARN("Application tries to release an invalid DC(%p), surface dc is %p\n", hDC, This->hDC); - return WINEDDERR_NODC; - } - - if ((This->flags & SFLAG_PBO) && This->resource.allocatedMemory) - { - /* Copy the contents of the DIB over to the PBO */ - memcpy(This->resource.allocatedMemory, This->dib.bitmap_data, This->dib.bitmap_size); - } - - /* we locked first, so unlock now */ - IWineD3DSurface_Unmap(iface); - - This->flags &= ~SFLAG_DCINUSE; - - return WINED3D_OK; -} - /* ****************************************************** IWineD3DSurface Internal (No mapping to directx api) parts follow ****************************************************** */ @@ -7033,7 +7035,7 @@ const IWineD3DSurfaceVtbl IWineD3DSurface_Vtbl = IWineD3DBaseSurfaceImpl_Map, IWineD3DBaseSurfaceImpl_Unmap, IWineD3DBaseSurfaceImpl_GetDC, - IWineD3DSurfaceImpl_ReleaseDC, + IWineD3DBaseSurfaceImpl_ReleaseDC, IWineD3DSurfaceImpl_Flip, IWineD3DSurfaceImpl_Blt, IWineD3DBaseSurfaceImpl_GetBltStatus, @@ -7333,30 +7335,6 @@ static HRESULT WINAPI IWineGDISurfaceImpl_Flip(IWineD3DSurface *iface, IWineD3DS return hr; } -static HRESULT WINAPI IWineGDISurfaceImpl_ReleaseDC(IWineD3DSurface *iface, HDC dc) -{ - IWineD3DSurfaceImpl *surface = (IWineD3DSurfaceImpl *)iface; - - TRACE("iface %p, dc %p.\n", iface, dc); - - if (!(surface->flags & SFLAG_DCINUSE)) - return WINEDDERR_NODC; - - if (surface->hDC != dc) - { - WARN("Application tries to release invalid DC %p, surface DC is %p.\n", - dc, surface->hDC); - return WINEDDERR_NODC; - } - - /* We locked first, so unlock now. */ - IWineD3DSurface_Unmap(iface); - - surface->flags &= ~SFLAG_DCINUSE; - - return WINED3D_OK; -} - static HRESULT WINAPI IWineGDISurfaceImpl_SetMem(IWineD3DSurface *iface, void *mem) { IWineD3DSurfaceImpl *surface = (IWineD3DSurfaceImpl *)iface; @@ -7429,7 +7407,7 @@ static const IWineD3DSurfaceVtbl IWineGDISurface_Vtbl = IWineD3DBaseSurfaceImpl_Map, IWineD3DBaseSurfaceImpl_Unmap, IWineD3DBaseSurfaceImpl_GetDC, - IWineGDISurfaceImpl_ReleaseDC, + IWineD3DBaseSurfaceImpl_ReleaseDC, IWineGDISurfaceImpl_Flip, IWineD3DBaseSurfaceImpl_Blt, IWineD3DBaseSurfaceImpl_GetBltStatus,
1
0
0
0
Henri Verbeet : wined3d: Merge the IWineD3DSurface::GetDC() implementations .
by Alexandre Julliard
28 Apr '11
28 Apr '11
Module: wine Branch: master Commit: dcaca7225b6653952afcbf514cf8c547fb2f2936 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=dcaca7225b6653952afcbf514…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Apr 27 20:21:40 2011 +0200 wined3d: Merge the IWineD3DSurface::GetDC() implementations. --- dlls/wined3d/surface.c | 443 ++++++++++++++++++---------------------- dlls/wined3d/wined3d_private.h | 1 + 2 files changed, 200 insertions(+), 244 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=dcaca7225b6653952afcb…
1
0
0
0
Henri Verbeet : wined3d: Merge the IWineD3DSurface::PreLoad() implementations.
by Alexandre Julliard
28 Apr '11
28 Apr '11
Module: wine Branch: master Commit: 13146e216f0dd3e55326af74883fa23c9acd0a8e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=13146e216f0dd3e55326af748…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Apr 27 20:21:39 2011 +0200 wined3d: Merge the IWineD3DSurface::PreLoad() implementations. --- dlls/wined3d/surface.c | 41 ++++++++++++++++++++++++++------------- dlls/wined3d/wined3d_private.h | 1 + 2 files changed, 28 insertions(+), 14 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 09c07fc..34be870 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -755,6 +755,13 @@ static HRESULT surface_draw_overlay(IWineD3DSurfaceImpl *surface) return hr; } +static void surface_preload(IWineD3DSurfaceImpl *surface) +{ + TRACE("surface %p.\n", surface); + + surface_internal_preload(surface, SRGB_ANY); +} + static void surface_map(IWineD3DSurfaceImpl *surface, const RECT *rect, DWORD flags) { IWineD3DDeviceImpl *device = surface->resource.device; @@ -1036,6 +1043,7 @@ static const struct wined3d_surface_ops surface_ops = surface_cleanup, surface_realize_palette, surface_draw_overlay, + surface_preload, surface_map, surface_unmap, }; @@ -1153,6 +1161,13 @@ static HRESULT gdi_surface_draw_overlay(IWineD3DSurfaceImpl *surface) return E_FAIL; } +static void gdi_surface_preload(IWineD3DSurfaceImpl *surface) +{ + TRACE("surface %p.\n", surface); + + ERR("Preloading GDI surfaces is not supported.\n"); +} + static void gdi_surface_map(IWineD3DSurfaceImpl *surface, const RECT *rect, DWORD flags) { TRACE("surface %p, rect %s, flags %#x.\n", @@ -1190,6 +1205,7 @@ static const struct wined3d_surface_ops gdi_surface_ops = surface_gdi_cleanup, gdi_surface_realize_palette, gdi_surface_draw_overlay, + gdi_surface_preload, gdi_surface_map, gdi_surface_unmap, }; @@ -2097,6 +2113,15 @@ static DWORD WINAPI IWineD3DBaseSurfaceImpl_GetPriority(IWineD3DSurface *iface) return resource_get_priority(&((IWineD3DSurfaceImpl *)iface)->resource); } +static void WINAPI IWineD3DBaseSurfaceImpl_PreLoad(IWineD3DSurface *iface) +{ + IWineD3DSurfaceImpl *surface = (IWineD3DSurfaceImpl *)iface; + + TRACE("iface %p.\n", iface); + + surface->surface_ops->surface_preload(surface); +} + static void * WINAPI IWineD3DBaseSurfaceImpl_GetParent(IWineD3DSurface *iface) { TRACE("iface %p.\n", iface); @@ -3848,11 +3873,6 @@ void surface_internal_preload(IWineD3DSurfaceImpl *surface, enum WINED3DSRGB srg } } -static void WINAPI IWineD3DSurfaceImpl_PreLoad(IWineD3DSurface *iface) -{ - surface_internal_preload((IWineD3DSurfaceImpl *)iface, SRGB_ANY); -} - BOOL surface_init_sysmem(IWineD3DSurfaceImpl *surface) { if (!surface->resource.allocatedMemory) @@ -6969,7 +6989,7 @@ const IWineD3DSurfaceVtbl IWineD3DSurface_Vtbl = IWineD3DBaseSurfaceImpl_FreePrivateData, IWineD3DBaseSurfaceImpl_SetPriority, IWineD3DBaseSurfaceImpl_GetPriority, - IWineD3DSurfaceImpl_PreLoad, + IWineD3DBaseSurfaceImpl_PreLoad, /* IWineD3DSurface */ IWineD3DBaseSurfaceImpl_GetResource, IWineD3DBaseSurfaceImpl_Map, @@ -7243,13 +7263,6 @@ static BOOL fbo_blit_supported(const struct wined3d_gl_info *gl_info, enum wined return TRUE; } -static void WINAPI IWineGDISurfaceImpl_PreLoad(IWineD3DSurface *iface) -{ - ERR("(%p): PreLoad is not supported on X11 surfaces!\n", iface); - ERR("(%p): Most likely the parent library did something wrong.\n", iface); - ERR("(%p): Please report to wine-devel\n", iface); -} - /***************************************************************************** * IWineD3DSurface::Flip, GDI version * @@ -7455,7 +7468,7 @@ static const IWineD3DSurfaceVtbl IWineGDISurface_Vtbl = IWineD3DBaseSurfaceImpl_FreePrivateData, IWineD3DBaseSurfaceImpl_SetPriority, IWineD3DBaseSurfaceImpl_GetPriority, - IWineGDISurfaceImpl_PreLoad, + IWineD3DBaseSurfaceImpl_PreLoad, /* IWineD3DSurface */ IWineD3DBaseSurfaceImpl_GetResource, IWineD3DBaseSurfaceImpl_Map, diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index 45fcd91..e8208bd 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -2024,6 +2024,7 @@ struct wined3d_surface_ops void (*surface_cleanup)(struct IWineD3DSurfaceImpl *surface); void (*surface_realize_palette)(struct IWineD3DSurfaceImpl *surface); HRESULT (*surface_draw_overlay)(struct IWineD3DSurfaceImpl *surface); + void (*surface_preload)(struct IWineD3DSurfaceImpl *surface); void (*surface_map)(struct IWineD3DSurfaceImpl *surface, const RECT *rect, DWORD flags); void (*surface_unmap)(struct IWineD3DSurfaceImpl *surface); };
1
0
0
0
Piotr Caban : msvcrt: Added _set_printf_count_output and _get_printf_count_output implementation .
by Alexandre Julliard
28 Apr '11
28 Apr '11
Module: wine Branch: master Commit: 6ecabf7cae3145931889eed5466b51740eddd1c7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6ecabf7cae3145931889eed54…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Wed Apr 27 20:09:00 2011 +0200 msvcrt: Added _set_printf_count_output and _get_printf_count_output implementation. --- dlls/msvcr100/msvcr100.c | 3 ++- dlls/msvcr100/msvcr100.spec | 4 ++-- dlls/msvcr80/Makefile.in | 2 ++ dlls/msvcr80/msvcr80.c | 2 ++ dlls/msvcr80/msvcr80.spec | 4 ++-- dlls/msvcr90/msvcr90.c | 2 ++ dlls/msvcr90/msvcr90.spec | 4 ++-- dlls/msvcrt/msvcrt.spec | 2 ++ dlls/msvcrt/printf.h | 10 +++++++++- dlls/msvcrt/wcs.c | 16 ++++++++++++++++ include/msvcrt/stdio.h | 2 ++ 11 files changed, 43 insertions(+), 8 deletions(-) diff --git a/dlls/msvcr100/msvcr100.c b/dlls/msvcr100/msvcr100.c index 274d4c7..5ea84d1 100644 --- a/dlls/msvcr100/msvcr100.c +++ b/dlls/msvcr100/msvcr100.c @@ -20,7 +20,7 @@ #include <stdarg.h> -#include "stdlib.h" +#include "stdio.h" #include "windef.h" #include "winbase.h" @@ -37,6 +37,7 @@ BOOL WINAPI DllMain(HINSTANCE hdll, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hdll); + _set_printf_count_output(0); } return TRUE; } diff --git a/dlls/msvcr100/msvcr100.spec b/dlls/msvcr100/msvcr100.spec index 4a724bc..8ef8eac 100644 --- a/dlls/msvcr100/msvcr100.spec +++ b/dlls/msvcr100/msvcr100.spec @@ -686,7 +686,7 @@ @ cdecl _get_osfhandle(long) msvcrt._get_osfhandle @ cdecl _get_output_format() msvcrt._get_output_format @ stub _get_pgmptr -@ stub _get_printf_count_output +@ cdecl _get_printf_count_output() msvcrt._get_printf_count_output @ stub _get_purecall_handler @ cdecl _get_terminate() msvcrt._get_terminate @ stub _get_timezone @@ -1077,7 +1077,7 @@ @ cdecl _set_invalid_parameter_handler(ptr) msvcrt._set_invalid_parameter_handler @ stub _set_malloc_crt_max_wait @ stub _set_output_format -@ stub _set_printf_count_output +@ cdecl _set_printf_count_output(long) msvcrt._set_printf_count_output @ cdecl _set_purecall_handler(ptr) msvcrt._set_purecall_handler @ cdecl _seterrormode(long) msvcrt._seterrormode @ cdecl -arch=i386,x86_64 -norelay _setjmp(ptr) msvcrt._setjmp diff --git a/dlls/msvcr80/Makefile.in b/dlls/msvcr80/Makefile.in index 17f3f66..760f1bf 100644 --- a/dlls/msvcr80/Makefile.in +++ b/dlls/msvcr80/Makefile.in @@ -1,5 +1,7 @@ MODULE = msvcr80.dll IMPORTS = msvcrt +MODCFLAGS = @BUILTINFLAG@ +EXTRAINCL = -I$(top_srcdir)/include/msvcrt C_SRCS = \ msvcr80.c diff --git a/dlls/msvcr80/msvcr80.c b/dlls/msvcr80/msvcr80.c index 3f81dcb..3953e0e 100644 --- a/dlls/msvcr80/msvcr80.c +++ b/dlls/msvcr80/msvcr80.c @@ -20,6 +20,7 @@ #include <stdarg.h> +#include "stdio.h" #include "windef.h" #include "winbase.h" @@ -32,6 +33,7 @@ BOOL WINAPI DllMain(HINSTANCE hdll, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hdll); + _set_printf_count_output(0); } return TRUE; } diff --git a/dlls/msvcr80/msvcr80.spec b/dlls/msvcr80/msvcr80.spec index 3f5bd04..05e179a 100644 --- a/dlls/msvcr80/msvcr80.spec +++ b/dlls/msvcr80/msvcr80.spec @@ -530,7 +530,7 @@ @ stub _get_osver @ cdecl _get_output_format() msvcrt._get_output_format @ stub _get_pgmptr -@ stub _get_printf_count_output +@ cdecl _get_printf_count_output() msvcrt._get_printf_count_output @ stub _get_purecall_handler @ cdecl _get_sbh_threshold() msvcrt._get_sbh_threshold @ cdecl _get_terminate() msvcrt._get_terminate @@ -930,7 +930,7 @@ @ cdecl _set_invalid_parameter_handler(ptr) msvcrt._set_invalid_parameter_handler @ stub _set_malloc_crt_max_wait @ stub _set_output_format -@ stub _set_printf_count_output +@ cdecl _set_printf_count_output(long) msvcrt._set_printf_count_output @ cdecl _set_purecall_handler(ptr) msvcrt._set_purecall_handler @ cdecl _set_sbh_threshold(long) msvcrt._set_sbh_threshold @ cdecl _seterrormode(long) msvcrt._seterrormode diff --git a/dlls/msvcr90/msvcr90.c b/dlls/msvcr90/msvcr90.c index fe563e3..fd24f11 100644 --- a/dlls/msvcr90/msvcr90.c +++ b/dlls/msvcr90/msvcr90.c @@ -22,6 +22,7 @@ #include <stdarg.h> #include "stdlib.h" +#include "stdio.h" #include "errno.h" #include "malloc.h" #include "windef.h" @@ -101,6 +102,7 @@ BOOL WINAPI DllMain(HINSTANCE hdll, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hdll); + _set_printf_count_output(0); } return TRUE; } diff --git a/dlls/msvcr90/msvcr90.spec b/dlls/msvcr90/msvcr90.spec index c7efd3a..9bc984f 100644 --- a/dlls/msvcr90/msvcr90.spec +++ b/dlls/msvcr90/msvcr90.spec @@ -520,7 +520,7 @@ @ cdecl _get_osfhandle(long) msvcrt._get_osfhandle @ cdecl _get_output_format() msvcrt._get_output_format @ stub _get_pgmptr -@ stub _get_printf_count_output +@ cdecl _get_printf_count_output() msvcrt._get_printf_count_output @ stub _get_purecall_handler @ cdecl _get_sbh_threshold() msvcrt._get_sbh_threshold @ cdecl _get_terminate() msvcrt._get_terminate @@ -916,7 +916,7 @@ @ cdecl _set_invalid_parameter_handler(ptr) msvcrt._set_invalid_parameter_handler @ stub _set_malloc_crt_max_wait @ stub _set_output_format -@ stub _set_printf_count_output +@ cdecl _set_printf_count_output(long) msvcrt._set_printf_count_output @ cdecl _set_purecall_handler(ptr) msvcrt._set_purecall_handler @ cdecl _set_sbh_threshold(long) msvcrt._set_sbh_threshold @ cdecl _seterrormode(long) msvcrt._seterrormode diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec index 94064fe..8baa37e 100644 --- a/dlls/msvcrt/msvcrt.spec +++ b/dlls/msvcrt/msvcrt.spec @@ -1491,3 +1491,5 @@ @ cdecl -arch=i386 _statusfp2(ptr ptr) @ cdecl _wcstod_l(wstr ptr) MSVCRT__wcstod_l @ cdecl _wdupenv_s(ptr ptr str) +@ cdecl _get_printf_count_output() +@ cdecl _set_printf_count_output(long) diff --git a/dlls/msvcrt/printf.h b/dlls/msvcrt/printf.h index 0198756..64d159e 100644 --- a/dlls/msvcrt/printf.h +++ b/dlls/msvcrt/printf.h @@ -491,7 +491,15 @@ int FUNC_NAME(pf_printf)(FUNC_NAME(puts_clbk) pf_puts, void *puts_ctx, const API i = FUNC_NAME(pf_output_format_str)(pf_puts, puts_ctx, buf, -1, &flags, locale); #endif } else if(flags.Format == 'n') { - int *used = pf_args(args_ctx, pos, VT_PTR, &valist).get_ptr; + int *used; + + if(!n_format_enabled) { + MSVCRT_INVALID_PMT("\'n\' format specifier disabled"); + *MSVCRT__errno() = MSVCRT_EINVAL; + return -1; + } + + used = pf_args(args_ctx, pos, VT_PTR, &valist).get_ptr; *used = written; i = 0; } else if(flags.Format && strchr("diouxX", flags.Format)) { diff --git a/dlls/msvcrt/wcs.c b/dlls/msvcrt/wcs.c index 5a7a43c..527bcff 100644 --- a/dlls/msvcrt/wcs.c +++ b/dlls/msvcrt/wcs.c @@ -33,11 +33,27 @@ WINE_DEFAULT_DEBUG_CHANNEL(msvcrt); +static BOOL n_format_enabled = TRUE; + #include "printf.h" #define PRINTF_WIDE #include "printf.h" #undef PRINTF_WIDE +/* _get_printf_count_output - not exported in native msvcrt */ +int CDECL _get_printf_count_output( void ) +{ + return n_format_enabled ? 1 : 0; +} + +/* _set_printf_count_output - not exported in native msvcrt */ +int CDECL _set_printf_count_output( int enable ) +{ + BOOL old = n_format_enabled; + n_format_enabled = (enable ? TRUE : FALSE); + return old ? 1 : 0; +} + /********************************************************************* * _wcsdup (MSVCRT.@) */ diff --git a/include/msvcrt/stdio.h b/include/msvcrt/stdio.h index c167110..4e43635 100644 --- a/include/msvcrt/stdio.h +++ b/include/msvcrt/stdio.h @@ -108,12 +108,14 @@ int __cdecl _flsbuf(int,FILE*); int __cdecl _flushall(void); int __cdecl _fputchar(int); FILE* __cdecl _fsopen(const char*,const char*,int); +int __cdecl _get_printf_count_output(void); int __cdecl _getmaxstdio(void); int __cdecl _getw(FILE*); int __cdecl _pclose(FILE*); FILE* __cdecl _popen(const char*,const char*); int __cdecl _putw(int,FILE*); int __cdecl _rmtmp(void); +int __cdecl _set_printf_count_output(int); int __cdecl _setmaxstdio(int); int __cdecl _snprintf(char*,size_t,const char*,...); int __cdecl _snprintf_s(char*,size_t,size_t,const char*,...);
1
0
0
0
← Newer
1
...
5
6
7
8
9
10
11
...
94
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
Results per page:
10
25
50
100
200