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
October 2007
----- 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
4 participants
996 discussions
Start a n
N
ew thread
Alexandre Julliard : Release 0.9.48.
by Alexandre Julliard
26 Oct '07
26 Oct '07
Module: wine Branch: master Commit: 444b3c7a58951d3fa54f5817b477b4c8f5c99552 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=444b3c7a58951d3fa54f5817b…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Oct 26 19:21:15 2007 +0200 Release 0.9.48. --- ANNOUNCE | 989 ++++++++++++++++++------------ ChangeLog | 2025 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ VERSION | 2 +- configure | 18 +- 4 files changed, 2625 insertions(+), 409 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=444b3c7a58951d3fa54f5…
1
0
0
0
Marcus Meissner : Updated AUTHORS file.
by Alexandre Julliard
26 Oct '07
26 Oct '07
Module: wine Branch: master Commit: 438ca04607cb80a72a5cb85e779ce583b61138d2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=438ca04607cb80a72a5cb85e7…
Author: Marcus Meissner <meissner(a)suse.de> Date: Fri Oct 26 11:36:55 2007 +0200 Updated AUTHORS file. --- AUTHORS | 127 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 125 insertions(+), 2 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=438ca04607cb80a72a5cb…
1
0
0
0
Francois Gouget : cryptnet: Fix compilation on systems that don' t support nameless unions.
by Alexandre Julliard
26 Oct '07
26 Oct '07
Module: wine Branch: master Commit: ce9cc0ba5006140a293377cc85e48f3a3b76091e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ce9cc0ba5006140a293377cc8…
Author: Francois Gouget <fgouget(a)free.fr> Date: Fri Oct 26 15:08:40 2007 +0200 cryptnet: Fix compilation on systems that don't support nameless unions. --- dlls/cryptnet/cryptnet_main.c | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/dlls/cryptnet/cryptnet_main.c b/dlls/cryptnet/cryptnet_main.c index d280ca4..b83adb8 100644 --- a/dlls/cryptnet/cryptnet_main.c +++ b/dlls/cryptnet/cryptnet_main.c @@ -21,13 +21,15 @@ #include "config.h" #include "wine/port.h" #include <stdio.h> + +#define NONAMELESSUNION + #include "windef.h" #include "wine/debug.h" #include "winbase.h" #include "winnt.h" #include "winnls.h" #include "wininet.h" -#define NONAMELESSUNION #define CERT_REVOCATION_PARA_HAS_EXTRA_FIELDS #include "wincrypt.h" @@ -158,17 +160,17 @@ static BOOL WINAPI CRYPT_GetUrlFromCertificateCRLDistPoint(LPCSTR pszUrlOid, { DWORD j; CERT_ALT_NAME_INFO *name = - &info->rgDistPoint[i].DistPointName.FullName; + &info->rgDistPoint[i].DistPointName.u.FullName; for (j = 0; j < name->cAltEntry; j++) if (name->rgAltEntry[j].dwAltNameChoice == CERT_ALT_NAME_URL) { - if (name->rgAltEntry[j].pwszURL) + if (name->rgAltEntry[j].u.pwszURL) { cUrl++; bytesNeeded += sizeof(LPWSTR) + - (lstrlenW(name->rgAltEntry[j].pwszURL) + 1) + (lstrlenW(name->rgAltEntry[j].u.pwszURL) + 1) * sizeof(WCHAR); } } @@ -202,20 +204,20 @@ static BOOL WINAPI CRYPT_GetUrlFromCertificateCRLDistPoint(LPCSTR pszUrlOid, { DWORD j; CERT_ALT_NAME_INFO *name = - &info->rgDistPoint[i].DistPointName.FullName; + &info->rgDistPoint[i].DistPointName.u.FullName; for (j = 0; j < name->cAltEntry; j++) if (name->rgAltEntry[j].dwAltNameChoice == CERT_ALT_NAME_URL) { - if (name->rgAltEntry[j].pwszURL) + if (name->rgAltEntry[j].u.pwszURL) { lstrcpyW(nextUrl, - name->rgAltEntry[j].pwszURL); + name->rgAltEntry[j].u.pwszURL); pUrlArray->rgwszUrl[pUrlArray->cUrl++] = nextUrl; nextUrl += - (lstrlenW(name->rgAltEntry[j].pwszURL) + 1) + (lstrlenW(name->rgAltEntry[j].u.pwszURL) + 1) * sizeof(WCHAR); } }
1
0
0
0
Stefan Dösinger : wined3d: Move regular surface / texture downloading to LoadLocation.
by Alexandre Julliard
26 Oct '07
26 Oct '07
Module: wine Branch: master Commit: 20f1f50b2a20b5d8b033babd2a14a0e43c2a00b4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=20f1f50b2a20b5d8b033babd2…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Tue Sep 25 00:16:05 2007 +0200 wined3d: Move regular surface / texture downloading to LoadLocation. --- dlls/wined3d/surface.c | 47 +++++++++++++++++++++++++---------------------- 1 files changed, 25 insertions(+), 22 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index b825683..4f891c8 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -822,26 +822,7 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_LockRect(IWineD3DSurface *iface, WINED } else { /* This path is for normal surfaces, offscreen render targets and everything else that is in a gl texture */ TRACE("locking an ordinary surface\n"); - - if (0 != This->glDescription.textureName) { - /* Now I have to copy thing bits back */ - - if(myDevice->createParms.BehaviorFlags & WINED3DCREATE_MULTITHREADED) { - ActivateContext(myDevice, myDevice->lastActiveRenderTarget, CTXUSAGE_RESOURCELOAD); - } - - ENTER_GL(); - /* Make sure that a proper texture unit is selected, bind the texture and dirtify the sampler to restore the texture on the next draw */ - if (GL_SUPPORT(ARB_MULTITEXTURE)) { - GL_EXTCALL(glActiveTextureARB(GL_TEXTURE0_ARB)); - checkGLcall("glActiveTextureARB"); - } - IWineD3DDeviceImpl_MarkStateDirty(This->resource.wineD3DDevice, STATE_SAMPLER(0)); - IWineD3DSurface_PreLoad(iface); - - surface_download_data(This); - LEAVE_GL(); - } + IWineD3DSurface_LoadLocation(iface, SFLAG_INSYSMEM, NULL /* no partial locking for textures yet */); } lock_end: @@ -2426,8 +2407,9 @@ HRESULT WINAPI IWineD3DSurfaceImpl_SaveSnapshot(IWineD3DSurface *iface, const ch extern HRESULT WINAPI IWineD3DSurfaceImpl_AddDirtyRect(IWineD3DSurface *iface, CONST RECT* pDirtyRect) { IWineD3DSurfaceImpl *This = (IWineD3DSurfaceImpl *)iface; IWineD3DBaseTexture *baseTexture = NULL; + if (!(This->Flags & SFLAG_INSYSMEM) && (This->Flags & SFLAG_INTEXTURE)) - surface_download_data(This); + IWineD3DSurface_LoadLocation(iface, SFLAG_INSYSMEM, NULL /* no partial locking for textures yet */); IWineD3DSurface_ModifyLocation(iface, SFLAG_INSYSMEM, TRUE); if (NULL != pDirtyRect) { @@ -3551,6 +3533,8 @@ static void WINAPI IWineD3DSurfaceImpl_ModifyLocation(IWineD3DSurface *iface, DW static HRESULT WINAPI IWineD3DSurfaceImpl_LoadLocation(IWineD3DSurface *iface, DWORD flag, const RECT *rect) { IWineD3DSurfaceImpl *This = (IWineD3DSurfaceImpl *) iface; + IWineD3DDeviceImpl *myDevice; + TRACE("(%p)->(%s, %p)\n", iface, flag == SFLAG_INSYSMEM ? "SFLAG_INSYSMEM" : flag == SFLAG_INDRAWABLE ? "SFLAG_INDRAWABLE" : "SFLAG_INTEXTURE", rect); @@ -3569,11 +3553,30 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_LoadLocation(IWineD3DSurface *iface, D This->Flags |= SFLAG_LOST; return WINED3DERR_DEVICELOST; } + myDevice = This->resource.wineD3DDevice; if(flag == SFLAG_INSYSMEM) { /* Download the surface to system memory */ if(This->Flags & SFLAG_INTEXTURE) { - /* Download texture to sysmem */ + if (0 == This->glDescription.textureName) { + ERR("Surface does not have a texture, but SFLAG_INTEXTURE is set\n"); + } + + if(myDevice->createParms.BehaviorFlags & WINED3DCREATE_MULTITHREADED) { + ActivateContext(myDevice, myDevice->lastActiveRenderTarget, CTXUSAGE_RESOURCELOAD); + } + + ENTER_GL(); + /* Make sure that a proper texture unit is selected, bind the texture and dirtify the sampler to restore the texture on the next draw */ + if (GL_SUPPORT(ARB_MULTITEXTURE)) { + GL_EXTCALL(glActiveTextureARB(GL_TEXTURE0_ARB)); + checkGLcall("glActiveTextureARB"); + } + IWineD3DDeviceImpl_MarkStateDirty(This->resource.wineD3DDevice, STATE_SAMPLER(0)); + IWineD3DSurface_PreLoad(iface); + + surface_download_data(This); + LEAVE_GL(); } else { /* Download drawable to sysmem */ }
1
0
0
0
Stefan Dösinger : wined3d: Add a method for surface location updates.
by Alexandre Julliard
26 Oct '07
26 Oct '07
Module: wine Branch: master Commit: 123744910f2e805055732f1626b0a91664ed5ff0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=123744910f2e805055732f162…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Tue Sep 25 00:02:14 2007 +0200 wined3d: Add a method for surface location updates. --- dlls/wined3d/surface.c | 48 +++++++++++++++++++++++++++++++++++++- dlls/wined3d/surface_gdi.c | 12 ++++++++- include/wine/wined3d_interface.h | 2 + 3 files changed, 60 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 5fc00a6..b825683 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -3549,6 +3549,51 @@ static void WINAPI IWineD3DSurfaceImpl_ModifyLocation(IWineD3DSurface *iface, DW } } +static HRESULT WINAPI IWineD3DSurfaceImpl_LoadLocation(IWineD3DSurface *iface, DWORD flag, const RECT *rect) { + IWineD3DSurfaceImpl *This = (IWineD3DSurfaceImpl *) iface; + TRACE("(%p)->(%s, %p)\n", iface, + flag == SFLAG_INSYSMEM ? "SFLAG_INSYSMEM" : flag == SFLAG_INDRAWABLE ? "SFLAG_INDRAWABLE" : "SFLAG_INTEXTURE", + rect); + if(rect) { + TRACE("Rectangle: (%d,%d)-(%d,%d)\n", rect->left, rect->top, rect->right, rect->bottom); + } + + /* TODO: For fbo targets, texture == drawable */ + if(This->Flags & flag) { + TRACE("Location already up to date\n"); + return WINED3D_OK; + } + + if(!(This->Flags & SFLAG_LOCATIONS)) { + ERR("Surface does not have any up to date location\n"); + This->Flags |= SFLAG_LOST; + return WINED3DERR_DEVICELOST; + } + + if(flag == SFLAG_INSYSMEM) { + /* Download the surface to system memory */ + if(This->Flags & SFLAG_INTEXTURE) { + /* Download texture to sysmem */ + } else { + /* Download drawable to sysmem */ + } + } else if(flag == SFLAG_INDRAWABLE) { + if(This->Flags & SFLAG_INTEXTURE) { + /* Blit texture to drawable */ + } else { + /* Load drawable from sysmem */ + } + } else /* if(flag == SFLAG_INTEXTURE) */ { + if(This->Flags & SFLAG_INDRAWABLE) { + /* glCopyTexImage the drawable into the texture */ + } else { + /* Load the texture from sysmem */ + } + } + + return WINED3D_OK; +} + const IWineD3DSurfaceVtbl IWineD3DSurface_Vtbl = { /* IUnknown */ @@ -3601,5 +3646,6 @@ const IWineD3DSurfaceVtbl IWineD3DSurface_Vtbl = IWineD3DSurfaceImpl_GetData, IWineD3DSurfaceImpl_SetFormat, IWineD3DSurfaceImpl_PrivateSetup, - IWineD3DSurfaceImpl_ModifyLocation + IWineD3DSurfaceImpl_ModifyLocation, + IWineD3DSurfaceImpl_LoadLocation }; diff --git a/dlls/wined3d/surface_gdi.c b/dlls/wined3d/surface_gdi.c index 19c7ea3..263c603 100644 --- a/dlls/wined3d/surface_gdi.c +++ b/dlls/wined3d/surface_gdi.c @@ -796,6 +796,15 @@ static void WINAPI IWineGDISurfaceImpl_ModifyLocation(IWineD3DSurface *iface, DW } } +static HRESULT WINAPI IWineGDISurfaceImpl_LoadLocation(IWineD3DSurface *iface, DWORD flag, const RECT *rect) { + if(flag != SFLAG_INSYSMEM) { + ERR("GDI Surface requested to be copied to gl %s\n", flag == SFLAG_INTEXTURE ? "texture" : "drawable"); + } else { + TRACE("Surface requested in surface memory\n"); + } + return WINED3D_OK; +} + /* FIXME: This vtable should not use any IWineD3DSurface* implementation functions, * only IWineD3DBaseSurface and IWineGDISurface ones. */ @@ -851,5 +860,6 @@ const IWineD3DSurfaceVtbl IWineGDISurface_Vtbl = IWineD3DSurfaceImpl_GetData, IWineD3DBaseSurfaceImpl_SetFormat, IWineGDISurfaceImpl_PrivateSetup, - IWineGDISurfaceImpl_ModifyLocation + IWineGDISurfaceImpl_ModifyLocation, + IWineGDISurfaceImpl_LoadLocation }; diff --git a/include/wine/wined3d_interface.h b/include/wine/wined3d_interface.h index 9203200..d77a18f 100644 --- a/include/wine/wined3d_interface.h +++ b/include/wine/wined3d_interface.h @@ -1142,6 +1142,7 @@ DECLARE_INTERFACE_(IWineD3DSurface,IWineD3DResource) STDMETHOD(SetFormat)(THIS_ WINED3DFORMAT format) PURE; STDMETHOD(PrivateSetup)(THIS) PURE; STDMETHOD_(void,ModifyLocation)(THIS_ DWORD flag, BOOL persistent); + STDMETHOD(LoadLocation)(THIS_ DWORD flag, const RECT *rect); }; #undef INTERFACE @@ -1198,6 +1199,7 @@ DECLARE_INTERFACE_(IWineD3DSurface,IWineD3DResource) #define IWineD3DSurface_SetFormat(p,a) (p)->lpVtbl->SetFormat(p,a) #define IWineD3DSurface_PrivateSetup(p) (p)->lpVtbl->PrivateSetup(p) #define IWineD3DSurface_ModifyLocation(p,a,b) (p)->lpVtbl->ModifyLocation(p,a,b) +#define IWineD3DSurface_LoadLocation(p,a,b) (p)->lpVtbl->LoadLocation(p,a,b) #endif /*****************************************************************************
1
0
0
0
Stefan Dösinger : wined3d: Begin centralizing surface location management.
by Alexandre Julliard
26 Oct '07
26 Oct '07
Module: wine Branch: master Commit: dcff7dc213cfcc9541803dedd16ab2298837f416 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=dcff7dc213cfcc9541803dedd…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Tue Oct 9 22:17:59 2007 +0200 wined3d: Begin centralizing surface location management. --- dlls/wined3d/context.c | 2 +- dlls/wined3d/device.c | 10 +++----- dlls/wined3d/drawprim.c | 14 +++++------- dlls/wined3d/surface.c | 41 ++++++++++++++++++++++++++----------- dlls/wined3d/surface_base.c | 2 +- dlls/wined3d/surface_gdi.c | 16 +++++++++++++- dlls/wined3d/swapchain.c | 4 +- dlls/wined3d/wined3d_private.h | 3 ++ include/wine/wined3d_interface.h | 2 + 9 files changed, 63 insertions(+), 31 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=dcff7dc213cfcc9541803…
1
0
0
0
Louis Lenders : advapi32: Export RegOverridePredefKey.
by Alexandre Julliard
26 Oct '07
26 Oct '07
Module: wine Branch: master Commit: 27e8b829a4cc56969836c0dbbb4db4b775d52a9f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=27e8b829a4cc56969836c0dbb…
Author: Louis Lenders <xerox_xerox2000(a)yahoo.co.uk> Date: Fri Oct 26 12:06:08 2007 +0100 advapi32: Export RegOverridePredefKey. --- dlls/advapi32/advapi32.spec | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/advapi32/advapi32.spec b/dlls/advapi32/advapi32.spec index deed87a..7b820ac 100644 --- a/dlls/advapi32/advapi32.spec +++ b/dlls/advapi32/advapi32.spec @@ -499,7 +499,7 @@ @ stdcall RegOpenKeyExW(long wstr long long ptr) @ stdcall RegOpenKeyW(long wstr ptr) @ stdcall RegOpenUserClassesRoot(ptr long long ptr) -# @ stub RegOverridePredefKey +@ stub RegOverridePredefKey @ stdcall RegQueryInfoKeyA(long ptr ptr ptr ptr ptr ptr ptr ptr ptr ptr ptr) @ stdcall RegQueryInfoKeyW(long ptr ptr ptr ptr ptr ptr ptr ptr ptr ptr ptr) @ stdcall RegQueryMultipleValuesA(long ptr long ptr ptr)
1
0
0
0
Stefan Dösinger : wined3d: A point size fix.
by Alexandre Julliard
26 Oct '07
26 Oct '07
Module: wine Branch: master Commit: ee32ac575b8a16ae926f338531f1b5d1446cedfb URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ee32ac575b8a16ae926f33853…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Mon Oct 22 12:15:03 2007 +0200 wined3d: A point size fix. --- dlls/wined3d/state.c | 78 +++++++++++++++++++++++++++----------------------- 1 files changed, 42 insertions(+), 36 deletions(-) diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index 5fe1cec..7e847c9 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -1248,19 +1248,6 @@ static void state_normalize(DWORD state, IWineD3DStateBlockImpl *stateblock, Win } } -static void state_psize(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DContext *context) { - union { - DWORD d; - float f; - } tmpvalue; - - /* FIXME: check that pointSize isn't outside glGetFloatv( GL_POINT_SIZE_MAX_ARB, &maxSize ); or -ve */ - tmpvalue.d = stateblock->renderState[WINED3DRS_POINTSIZE]; - TRACE("Set point size to %f\n", tmpvalue.f); - glPointSize(tmpvalue.f); - checkGLcall("glPointSize(...);"); -} - static void state_psizemin(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DContext *context) { union { DWORD d; @@ -1311,31 +1298,45 @@ static void state_pscale(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3 /* Default values */ GLfloat att[3] = {1.0f, 0.0f, 0.0f}; + union { + DWORD d; + float f; + } pointSize, A, B, C; - /* - * Minimum valid point size for OpenGL is 1.0f. For Direct3D it is 0.0f. - * This means that OpenGL will clamp really small point sizes to 1.0f. - * To correct for this we need to multiply by the scale factor when sizes - * are less than 1.0f. scale_factor = 1.0f / point_size. - */ - GLfloat pointSize = *((float*)&stateblock->renderState[WINED3DRS_POINTSIZE]); - if(pointSize > 0.0f) { - GLfloat scaleFactor; + pointSize.d = stateblock->renderState[WINED3DRS_POINTSIZE]; + A.d = stateblock->renderState[WINED3DRS_POINTSCALE_A]; + B.d = stateblock->renderState[WINED3DRS_POINTSCALE_B]; + C.d = stateblock->renderState[WINED3DRS_POINTSCALE_C]; - if(pointSize < 1.0f) { - scaleFactor = pointSize * pointSize; + if(stateblock->renderState[WINED3DRS_POINTSCALEENABLE]) { + GLfloat scaleFactor; + float h = stateblock->viewport.Height; + + if(pointSize.f < 1.0f) { + /* + * Minimum valid point size for OpenGL is 1.0f. For Direct3D it is 0.0f. + * This means that OpenGL will clamp really small point sizes to 1.0f. + * To correct for this we need to multiply by the scale factor when sizes + * are less than 1.0f. scale_factor = 1.0f / point_size. + */ + scaleFactor = pointSize.f; + } else if(pointSize.f > GL_LIMITS(pointsize)) { + /* gl already scales the input to glPointSize, + * d3d scales the result after the point size scale. + * If the point size is bigger than the max size, use the + * scaling to scale it bigger, and set the gl point size to max + */ + scaleFactor = pointSize.f / GL_LIMITS(pointsize); + TRACE("scale: %f\n", scaleFactor); + pointSize.f = GL_LIMITS(pointsize); } else { scaleFactor = 1.0f; } + scaleFactor = pow(h * scaleFactor, 2); - if(stateblock->renderState[WINED3DRS_POINTSCALEENABLE]) { - att[0] = *((float*)&stateblock->renderState[WINED3DRS_POINTSCALE_A]) / - (stateblock->viewport.Height * stateblock->viewport.Height * scaleFactor); - att[1] = *((float*)&stateblock->renderState[WINED3DRS_POINTSCALE_B]) / - (stateblock->viewport.Height * stateblock->viewport.Height * scaleFactor); - att[2] = *((float*)&stateblock->renderState[WINED3DRS_POINTSCALE_C]) / - (stateblock->viewport.Height * stateblock->viewport.Height * scaleFactor); - } + att[0] = A.f / scaleFactor; + att[1] = B.f / scaleFactor; + att[2] = C.f / scaleFactor; } if(GL_SUPPORT(ARB_POINT_PARAMETERS)) { @@ -1345,9 +1346,12 @@ static void state_pscale(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3 else if(GL_SUPPORT(EXT_POINT_PARAMETERS)) { GL_EXTCALL(glPointParameterfvEXT)(GL_DISTANCE_ATTENUATION_EXT, att); checkGLcall("glPointParameterfvEXT(GL_DISTANCE_ATTENUATION_EXT, ..."); - } else { - TRACE("POINT_PARAMETERS not supported in this version of opengl\n"); + } else if(stateblock->renderState[WINED3DRS_POINTSCALEENABLE]) { + WARN("POINT_PARAMETERS not supported in this version of opengl\n"); } + + glPointSize(pointSize.f); + checkGLcall("glPointSize(...);"); } static void state_colorwrite(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DContext *context) { @@ -3468,7 +3472,9 @@ static void viewport(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DCon if(!isStateDirty(context, STATE_TRANSFORM(WINED3DTS_PROJECTION))) { transform_projection(STATE_TRANSFORM(WINED3DTS_PROJECTION), stateblock, context); } - + if(!isStateDirty(context, STATE_RENDER(WINED3DRS_POINTSCALEENABLE))) { + state_pscale(STATE_RENDER(WINED3DRS_POINTSCALEENABLE), stateblock, context); + } } static void light(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DContext *context) { @@ -3787,7 +3793,7 @@ const struct StateEntry StateTable[] = { /*151, WINED3DRS_VERTEXBLEND */ STATE_RENDER(WINED3DRS_VERTEXBLEND), state_vertexblend }, { /*152, WINED3DRS_CLIPPLANEENABLE */ STATE_RENDER(WINED3DRS_CLIPPING), state_clipping }, { /*153, WINED3DRS_SOFTWAREVERTEXPROCESSING */ 0, state_nogl }, - { /*154, WINED3DRS_POINTSIZE */ STATE_RENDER(WINED3DRS_POINTSIZE), state_psize }, + { /*154, WINED3DRS_POINTSIZE */ STATE_RENDER(WINED3DRS_POINTSCALEENABLE), state_pscale }, { /*155, WINED3DRS_POINTSIZE_MIN */ STATE_RENDER(WINED3DRS_POINTSIZE_MIN), state_psizemin }, { /*156, WINED3DRS_POINTSPRITEENABLE */ STATE_RENDER(WINED3DRS_POINTSPRITEENABLE), state_pointsprite }, { /*157, WINED3DRS_POINTSCALEENABLE */ STATE_RENDER(WINED3DRS_POINTSCALEENABLE), state_pscale },
1
0
0
0
Detlef Riekenberg : comdlg32/tests: Initial tests for PrintDlgExW.
by Alexandre Julliard
26 Oct '07
26 Oct '07
Module: wine Branch: master Commit: 23d78ff2b89ee8831a9edc2765138289aa581815 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=23d78ff2b89ee8831a9edc276…
Author: Detlef Riekenberg <wine.dev(a)web.de> Date: Fri Oct 26 00:33:48 2007 +0200 comdlg32/tests: Initial tests for PrintDlgExW. --- dlls/comdlg32/tests/printdlg.c | 100 ++++++++++++++++++++++++++++++++++++++- 1 files changed, 97 insertions(+), 3 deletions(-) diff --git a/dlls/comdlg32/tests/printdlg.c b/dlls/comdlg32/tests/printdlg.c index e458a2f..9842b17 100644 --- a/dlls/comdlg32/tests/printdlg.c +++ b/dlls/comdlg32/tests/printdlg.c @@ -33,12 +33,40 @@ #include "wine/test.h" -/* ######## */ +/* ########################### */ + +static HMODULE hcomdlg32; +static HRESULT (WINAPI * pPrintDlgExA)(LPPRINTDLGEXA); +static HRESULT (WINAPI * pPrintDlgExW)(LPPRINTDLGEXW); + +/* ########################### */ static const CHAR emptyA[] = ""; static const CHAR PrinterPortsA[] = "PrinterPorts"; -/* ######## */ +/* ########################### */ + +static LPCSTR load_functions(void) +{ + LPCSTR ptr; + + ptr = "comdlg32.dll"; + hcomdlg32 = LoadLibraryA(ptr); + if (!hcomdlg32) return ptr; + + ptr = "PrintDlgExA"; + pPrintDlgExA = (void *) GetProcAddress(hcomdlg32, ptr); + if (!pPrintDlgExA) return ptr; + + ptr = "PrintDlgExW"; + pPrintDlgExW = (void *) GetProcAddress(hcomdlg32, ptr); + if (!pPrintDlgExW) return ptr; + + return NULL; + +} + +/* ########################### */ static void test_PageSetupDlgA(void) { @@ -98,7 +126,7 @@ static void test_PageSetupDlgA(void) } -/* ##### */ +/* ########################### */ static void test_PrintDlgA(void) { @@ -210,10 +238,76 @@ static void test_PrintDlgA(void) } +/* ########################### */ + +static void test_PrintDlgExW(void) +{ + LPPRINTDLGEXW pDlg; + HRESULT res; + + /* Set CommDlgExtendedError != 0 */ + PrintDlg(NULL); + SetLastError(0xdeadbeef); + res = pPrintDlgExW(NULL); + ok( (res == E_INVALIDARG), + "got 0x%x with %u and %u (expected 'E_INVALIDARG')\n", + res, GetLastError(), CommDlgExtendedError()); + + + pDlg = HeapAlloc(GetProcessHeap(), 0, (sizeof(PRINTDLGEXW)) + 8); + if (!pDlg) return; + + /* lStructSize must be exact */ + ZeroMemory(pDlg, sizeof(PRINTDLGEXW)); + pDlg->lStructSize = sizeof(PRINTDLGEXW) - 1; + PrintDlg(NULL); + SetLastError(0xdeadbeef); + res = pPrintDlgExW(pDlg); + ok( (res == E_INVALIDARG), + "got 0x%x with %u and %u (expected 'E_INVALIDARG')\n", + res, GetLastError(), CommDlgExtendedError()); + + + ZeroMemory(pDlg, sizeof(PRINTDLGEXW)); + pDlg->lStructSize = sizeof(PRINTDLGEXW) + 1; + PrintDlg(NULL); + SetLastError(0xdeadbeef); + res = pPrintDlgExW(pDlg); + ok( (res == E_INVALIDARG), + "got 0x%x with %u and %u (expected 'E_INVALIDARG')\n", + res, GetLastError(), CommDlgExtendedError()); + + + ZeroMemory(pDlg, sizeof(PRINTDLGEXW)); + pDlg->lStructSize = sizeof(PRINTDLGEXW); + SetLastError(0xdeadbeef); + res = pPrintDlgExW(pDlg); + ok( (res == E_HANDLE), + "got 0x%x with %u and %u (expected 'E_HANDLE')\n", + res, GetLastError(), CommDlgExtendedError()); + + + HeapFree(GetProcessHeap(), 0, pDlg); + return; + +} + +/* ########################### */ START_TEST(printdlg) { + LPCSTR ptr; + + ptr = load_functions(); + test_PageSetupDlgA(); test_PrintDlgA(); + /* PrintDlgEx not present before w2k */ + if (ptr) { + skip("%s\n", ptr); + return; + } + + test_PrintDlgExW(); }
1
0
0
0
Detlef Riekenberg : comdlg32: Improve stub for PrintDlgEx.
by Alexandre Julliard
26 Oct '07
26 Oct '07
Module: wine Branch: master Commit: 429d7a27e068431cc274d630d1b80947e63c77c0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=429d7a27e068431cc274d630d…
Author: Detlef Riekenberg <wine.dev(a)web.de> Date: Fri Oct 26 00:31:47 2007 +0200 comdlg32: Improve stub for PrintDlgEx. --- dlls/comdlg32/printdlg.c | 53 +++++++++++++++++++++++++++++++++------------- 1 files changed, 38 insertions(+), 15 deletions(-) diff --git a/dlls/comdlg32/printdlg.c b/dlls/comdlg32/printdlg.c index 009af2a..e6c22cd 100644 --- a/dlls/comdlg32/printdlg.c +++ b/dlls/comdlg32/printdlg.c @@ -3568,25 +3568,33 @@ BOOL WINAPI PageSetupDlgW(LPPAGESETUPDLGW setupdlg) { } /*********************************************************************** - * PrintDlgExA (COMDLG32.@) + * PrintDlgExA (COMDLG32.@) * * See PrintDlgExW. * - * FIXME - * Stub + * BUGS + * Only a Stub + * */ -HRESULT WINAPI PrintDlgExA(LPPRINTDLGEXA lpPrintDlgExA) +HRESULT WINAPI PrintDlgExA(LPPRINTDLGEXA lppd) { - FIXME("stub\n"); - return E_NOTIMPL; + + FIXME("(%p) stub\n", lppd); + if ((lppd == NULL) || (lppd->lStructSize != sizeof(PRINTDLGEXA))) { + return E_INVALIDARG; + } + + if (!IsWindow(lppd->hwndOwner)) { + return E_HANDLE; + } + + return E_NOTIMPL; } /*********************************************************************** - * PrintDlgExW (COMDLG32.@) + * PrintDlgExW (COMDLG32.@) * - * Displays the PRINT dialog box, which enables the user to specify - * specific properties of the print job. The property sheet can also have - * additional application-specific and driver-specific property pages. + * Display the property sheet style PRINT dialog box * * PARAMS * lppd [IO] ptr to PRINTDLGEX struct @@ -3600,11 +3608,26 @@ HRESULT WINAPI PrintDlgExA(LPPRINTDLGEXA lpPrintDlgExA) * E_HANDLE Invalid handle. * E_FAIL Unspecified error. * - * FIXME - * Stub + * NOTES + * This Dialog enables the user to specify specific properties of the print job. + * The property sheet can also have additional application-specific and + * driver-specific property pages. + * + * BUGS + * Only a Stub + * */ -HRESULT WINAPI PrintDlgExW(LPPRINTDLGEXW lpPrintDlgExW) +HRESULT WINAPI PrintDlgExW(LPPRINTDLGEXW lppd) { - FIXME("stub\n"); - return E_NOTIMPL; + + FIXME("(%p) stub\n", lppd); + if ((lppd == NULL) || (lppd->lStructSize != sizeof(PRINTDLGEXW))) { + return E_INVALIDARG; + } + + if (!IsWindow(lppd->hwndOwner)) { + return E_HANDLE; + } + + return E_NOTIMPL; }
1
0
0
0
← Newer
1
...
10
11
12
13
14
15
16
...
100
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
Results per page:
10
25
50
100
200