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
May 2012
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
2 participants
737 discussions
Start a n
N
ew thread
Vincent Povirk : mscoree: Implement vtable fixups.
by Alexandre Julliard
09 May '12
09 May '12
Module: wine Branch: master Commit: a629ba4949e0cc5e908dd5a9c1cf0e4b0685487f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a629ba4949e0cc5e908dd5a9c…
Author: Vincent Povirk <vincent(a)codeweavers.com> Date: Mon May 7 10:48:33 2012 -0500 mscoree: Implement vtable fixups. --- dlls/mscoree/corruntimehost.c | 232 +++++++++++++++++++++++++++++++++++++++- dlls/mscoree/metahost.c | 1 + dlls/mscoree/mscoree_main.c | 3 + dlls/mscoree/mscoree_private.h | 4 + 4 files changed, 237 insertions(+), 3 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=a629ba4949e0cc5e908dd…
1
0
0
0
Andrew Eikum : dsound: Don' t destroy primary buffer until device is released.
by Alexandre Julliard
09 May '12
09 May '12
Module: wine Branch: master Commit: f0be44c82dca8760c787576e1bdf76383bac3ee7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f0be44c82dca8760c787576e1…
Author: Andrew Eikum <aeikum(a)codeweavers.com> Date: Wed May 9 08:48:56 2012 -0500 dsound: Don't destroy primary buffer until device is released. --- dlls/dsound/buffer.c | 44 ++++++++++++++++++++++++++--------------- dlls/dsound/dsound.c | 5 ---- dlls/dsound/dsound_private.h | 1 + dlls/dsound/primary.c | 33 +++++++++++++++++++++++------- dlls/dsound/sound3d.c | 9 ++++--- dlls/dsound/tests/dsound.c | 9 ++++++++ 6 files changed, 68 insertions(+), 33 deletions(-) diff --git a/dlls/dsound/buffer.c b/dlls/dsound/buffer.c index 5f9e455..08f4ba7 100644 --- a/dlls/dsound/buffer.c +++ b/dlls/dsound/buffer.c @@ -327,16 +327,22 @@ static ULONG WINAPI IDirectSoundBufferImpl_AddRef(IDirectSoundBuffer8 *iface) static ULONG WINAPI IDirectSoundBufferImpl_Release(IDirectSoundBuffer8 *iface) { IDirectSoundBufferImpl *This = impl_from_IDirectSoundBuffer8(iface); - ULONG ref = InterlockedDecrement(&This->ref); - - TRACE("(%p) ref was %d\n", This, ref + 1); + ULONG ref; + + if (is_primary_buffer(This)){ + ref = capped_refcount_dec(&This->ref); + if(!ref) + capped_refcount_dec(&This->numIfaces); + TRACE("(%p) ref is now: %d\n", This, ref); + return ref; + } - if (!ref && !InterlockedDecrement(&This->numIfaces)) { - if (is_primary_buffer(This)) - primarybuffer_destroy(This); - else + ref = InterlockedDecrement(&This->ref); + if (!ref && !InterlockedDecrement(&This->numIfaces)) secondarybuffer_destroy(This); - } + + TRACE("(%p) ref is now %d\n", This, ref); + return ref; } @@ -1077,16 +1083,22 @@ static ULONG WINAPI IKsPropertySetImpl_AddRef(IKsPropertySet *iface) static ULONG WINAPI IKsPropertySetImpl_Release(IKsPropertySet *iface) { IDirectSoundBufferImpl *This = impl_from_IKsPropertySet(iface); - ULONG ref = InterlockedDecrement(&This->refiks); + ULONG ref; + + if (is_primary_buffer(This)){ + ref = capped_refcount_dec(&This->refiks); + if(!ref) + capped_refcount_dec(&This->numIfaces); + TRACE("(%p) ref is now: %d\n", This, ref); + return ref; + } - TRACE("(%p) ref was %d\n", This, ref + 1); + ref = InterlockedDecrement(&This->refiks); + if (!ref && !InterlockedDecrement(&This->numIfaces)) + secondarybuffer_destroy(This); + + TRACE("(%p) ref is now %d\n", This, ref); - if (!ref && !InterlockedDecrement(&This->numIfaces)) { - if (is_primary_buffer(This)) - primarybuffer_destroy(This); - else - secondarybuffer_destroy(This); - } return ref; } diff --git a/dlls/dsound/dsound.c b/dlls/dsound/dsound.c index 91184c9..2429042 100644 --- a/dlls/dsound/dsound.c +++ b/dlls/dsound/dsound.c @@ -1255,11 +1255,6 @@ ULONG DirectSoundDevice_Release(DirectSoundDevice * device) secondarybuffer_destroy(device->buffers[i]); } - if (device->primary) { - WARN("primary buffer not released\n"); - IDirectSoundBuffer8_Release((LPDIRECTSOUNDBUFFER8)device->primary); - } - hr = DSOUND_PrimaryDestroy(device); if (hr != DS_OK) WARN("DSOUND_PrimaryDestroy failed\n"); diff --git a/dlls/dsound/dsound_private.h b/dlls/dsound/dsound_private.h index 8c6f60b..bed6959 100644 --- a/dlls/dsound/dsound_private.h +++ b/dlls/dsound/dsound_private.h @@ -288,6 +288,7 @@ HRESULT primarybuffer_create(DirectSoundDevice *device, IDirectSoundBufferImpl * const DSBUFFERDESC *dsbd) DECLSPEC_HIDDEN; void primarybuffer_destroy(IDirectSoundBufferImpl *This) DECLSPEC_HIDDEN; HRESULT primarybuffer_SetFormat(DirectSoundDevice *device, LPCWAVEFORMATEX wfex) DECLSPEC_HIDDEN; +LONG capped_refcount_dec(LONG *ref) DECLSPEC_HIDDEN; /* duplex.c */ diff --git a/dlls/dsound/primary.c b/dlls/dsound/primary.c index c39da8a..b5a09f8 100644 --- a/dlls/dsound/primary.c +++ b/dlls/dsound/primary.c @@ -258,6 +258,13 @@ HRESULT DSOUND_PrimaryDestroy(DirectSoundDevice *device) EnterCriticalSection(&(device->mixlock)); DSOUND_PrimaryClose(device); + + if(device->primary && (device->primary->ref || device->primary->numIfaces)) + WARN("Destroying primary buffer while references held (%u %u)\n", device->primary->ref, device->primary->numIfaces); + + HeapFree(GetProcessHeap(), 0, device->primary); + device->primary = NULL; + HeapFree(GetProcessHeap(),0,device->pwfx); device->pwfx=NULL; @@ -756,21 +763,31 @@ static ULONG WINAPI PrimaryBufferImpl_AddRef(IDirectSoundBuffer *iface) return ref; } -void primarybuffer_destroy(IDirectSoundBufferImpl *This) +/* Decreases *out by 1 to no less than 0. + * Returns the new value of *out. */ +LONG capped_refcount_dec(LONG *out) { - This->device->primary = NULL; - HeapFree(GetProcessHeap(), 0, This); - TRACE("(%p) released\n", This); + LONG ref, oldref; + do { + ref = *out; + if(!ref) + return 0; + oldref = InterlockedCompareExchange(out, ref - 1, ref); + } while(oldref != ref); + return ref - 1; } static ULONG WINAPI PrimaryBufferImpl_Release(IDirectSoundBuffer *iface) { IDirectSoundBufferImpl *This = impl_from_IDirectSoundBuffer(iface); - DWORD ref = InterlockedDecrement(&(This->ref)); - TRACE("(%p) ref was %d\n", This, ref + 1); + ULONG ref; + + ref = capped_refcount_dec(&This->ref); + if(!ref) + capped_refcount_dec(&This->numIfaces); + + TRACE("(%p) primary ref is now %d\n", This, ref); - if (!ref && !InterlockedDecrement(&This->numIfaces)) - primarybuffer_destroy(This); return ref; } diff --git a/dlls/dsound/sound3d.c b/dlls/dsound/sound3d.c index c57aa2e..604d19b 100644 --- a/dlls/dsound/sound3d.c +++ b/dlls/dsound/sound3d.c @@ -699,12 +699,13 @@ static ULONG WINAPI IDirectSound3DListenerImpl_AddRef(IDirectSound3DListener *if static ULONG WINAPI IDirectSound3DListenerImpl_Release(IDirectSound3DListener *iface) { IDirectSoundBufferImpl *This = impl_from_IDirectSound3DListener(iface); - ULONG ref = InterlockedDecrement(&This->ref3D); + ULONG ref; - TRACE("(%p) ref was %d\n", This, ref + 1); + ref = capped_refcount_dec(&This->ref3D); + if(!ref) + capped_refcount_dec(&This->numIfaces); - if (!ref && !InterlockedDecrement(&This->numIfaces)) - primarybuffer_destroy(This); + TRACE("(%p) ref is now %d\n", This, ref); return ref; } diff --git a/dlls/dsound/tests/dsound.c b/dlls/dsound/tests/dsound.c index c68a5de..4c46f67 100644 --- a/dlls/dsound/tests/dsound.c +++ b/dlls/dsound/tests/dsound.c @@ -493,6 +493,15 @@ static HRESULT test_primary(LPGUID lpGuid) !(dscaps.dwFlags & DSCAPS_EMULDRIVER),5.0,0,0,0,0,FALSE,0); ref=IDirectSoundBuffer_Release(primary); + ok(ref==0,"IDirectSoundBuffer_Release() primary has %d references\n",ref); + + ref=IDirectSoundBuffer_AddRef(primary); + ok(ref==1,"IDirectSoundBuffer_AddRef() primary has %d references\n",ref); + + ref=IDirectSoundBuffer_Release(primary); + ok(ref==0,"IDirectSoundBuffer_Release() primary has %d references\n",ref); + + ref=IDirectSoundBuffer_Release(primary); ok(ref==0,"IDirectSoundBuffer_Release() primary has %d references, " "should have 0\n",ref); }
1
0
0
0
Hans Leidekker : rpcrt4: Add a stub implementation of RpcServerInqDefaultPrincNameA/W.
by Alexandre Julliard
09 May '12
09 May '12
Module: wine Branch: master Commit: 4d6ff8543394981a34014f0359d4953c145fa1e7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4d6ff8543394981a34014f035…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Wed May 9 12:06:29 2012 +0200 rpcrt4: Add a stub implementation of RpcServerInqDefaultPrincNameA/W. --- dlls/rpcrt4/rpc_server.c | 40 +++++++++++++++++++++++++++++++++ dlls/rpcrt4/rpcrt4.spec | 4 +- dlls/rpcrt4/tests/rpc.c | 55 ++++++++++++++++++++++++++++++++++++++++++++++ include/rpcdce.h | 6 +++++ 4 files changed, 103 insertions(+), 2 deletions(-) diff --git a/dlls/rpcrt4/rpc_server.c b/dlls/rpcrt4/rpc_server.c index 6fd1a7b..91b7707 100644 --- a/dlls/rpcrt4/rpc_server.c +++ b/dlls/rpcrt4/rpc_server.c @@ -44,6 +44,7 @@ #include "rpc_message.h" #include "rpc_defs.h" #include "ncastatus.h" +#include "secext.h" WINE_DEFAULT_DEBUG_CHANNEL(rpc); @@ -1457,6 +1458,45 @@ RPC_STATUS WINAPI RpcServerRegisterAuthInfoW( RPC_WSTR ServerPrincName, ULONG Au return RPC_S_OK; } +/****************************************************************************** + * RpcServerInqDefaultPrincNameA (rpcrt4.@) + */ +RPC_STATUS RPC_ENTRY RpcServerInqDefaultPrincNameA(ULONG AuthnSvc, RPC_CSTR *PrincName) +{ + RPC_STATUS ret; + RPC_WSTR principalW; + + TRACE("%u, %p\n", AuthnSvc, PrincName); + + if ((ret = RpcServerInqDefaultPrincNameW( AuthnSvc, &principalW )) == RPC_S_OK) + { + if (!(*PrincName = (RPC_CSTR)RPCRT4_strdupWtoA( principalW ))) return RPC_S_OUT_OF_MEMORY; + RpcStringFreeW( &principalW ); + } + return ret; +} + +/****************************************************************************** + * RpcServerInqDefaultPrincNameW (rpcrt4.@) + */ +RPC_STATUS RPC_ENTRY RpcServerInqDefaultPrincNameW(ULONG AuthnSvc, RPC_WSTR *PrincName) +{ + ULONG len = 0; + + FIXME("%u, %p\n", AuthnSvc, PrincName); + + if (AuthnSvc != RPC_C_AUTHN_WINNT) return RPC_S_UNKNOWN_AUTHN_SERVICE; + + GetUserNameExW( NameSamCompatible, NULL, &len ); + if (GetLastError() != ERROR_MORE_DATA) return RPC_S_INTERNAL_ERROR; + + if (!(*PrincName = HeapAlloc( GetProcessHeap(), 0, len * sizeof(WCHAR) ))) + return RPC_S_OUT_OF_MEMORY; + + GetUserNameExW( NameSamCompatible, *PrincName, &len ); + return RPC_S_OK; +} + /*********************************************************************** * RpcServerListen (RPCRT4.@) */ diff --git a/dlls/rpcrt4/rpcrt4.spec b/dlls/rpcrt4/rpcrt4.spec index ac590bf..4b5b553 100644 --- a/dlls/rpcrt4/rpcrt4.spec +++ b/dlls/rpcrt4/rpcrt4.spec @@ -427,8 +427,8 @@ @ stdcall RpcServerInqBindings(ptr) @ stub RpcServerInqCallAttributesA # wxp @ stub RpcServerInqCallAttributesW # wxp -@ stub RpcServerInqDefaultPrincNameA -@ stub RpcServerInqDefaultPrincNameW +@ stdcall RpcServerInqDefaultPrincNameA(long ptr) +@ stdcall RpcServerInqDefaultPrincNameW(long ptr) @ stub RpcServerInqIf @ stdcall RpcServerListen(long long long) @ stdcall RpcServerRegisterAuthInfoA(str long ptr ptr) diff --git a/dlls/rpcrt4/tests/rpc.c b/dlls/rpcrt4/tests/rpc.c index d914c97..739a00e 100644 --- a/dlls/rpcrt4/tests/rpc.c +++ b/dlls/rpcrt4/tests/rpc.c @@ -31,6 +31,7 @@ #include "rpc.h" #include "rpcdce.h" +#include "secext.h" typedef unsigned int unsigned32; typedef struct twr_t @@ -854,6 +855,59 @@ static void test_RpcBindingFree(void) status); } +static void test_RpcServerInqDefaultPrincName(void) +{ + RPC_STATUS ret; + RPC_CSTR principal, saved_principal; + BOOLEAN (WINAPI *pGetUserNameExA)(EXTENDED_NAME_FORMAT,LPSTR,PULONG); + char *username; + ULONG len = 0; + + pGetUserNameExA = (void *)GetProcAddress( LoadLibraryA("secur32.dll"), "GetUserNameExA" ); + if (!pGetUserNameExA) + { + win_skip( "GetUserNameExA not exported\n" ); + return; + } + pGetUserNameExA( NameSamCompatible, NULL, &len ); + username = HeapAlloc( GetProcessHeap(), 0, len ); + pGetUserNameExA( NameSamCompatible, username, &len ); + + ret = RpcServerInqDefaultPrincNameA( 0, NULL ); + ok( ret == RPC_S_UNKNOWN_AUTHN_SERVICE, "got %u\n", ret ); + + ret = RpcServerInqDefaultPrincNameA( RPC_C_AUTHN_DEFAULT, NULL ); + ok( ret == RPC_S_UNKNOWN_AUTHN_SERVICE, "got %u\n", ret ); + + principal = (RPC_CSTR)0xdeadbeef; + ret = RpcServerInqDefaultPrincNameA( RPC_C_AUTHN_DEFAULT, &principal ); + ok( ret == RPC_S_UNKNOWN_AUTHN_SERVICE, "got %u\n", ret ); + ok( principal == (RPC_CSTR)0xdeadbeef, "got unexpected principal\n" ); + + saved_principal = (RPC_CSTR)0xdeadbeef; + ret = RpcServerInqDefaultPrincNameA( RPC_C_AUTHN_WINNT, &saved_principal ); + ok( ret == RPC_S_OK, "got %u\n", ret ); + ok( saved_principal != (RPC_CSTR)0xdeadbeef, "expected valid principal\n" ); + ok( !strcmp( (const char *)saved_principal, username ), "got \'%s\'\n", saved_principal ); + trace("%s\n", saved_principal); + + ret = RpcServerRegisterAuthInfoA( (RPC_CSTR)"wine\\test", RPC_C_AUTHN_WINNT, NULL, NULL ); + ok( ret == RPC_S_OK, "got %u\n", ret ); + + principal = (RPC_CSTR)0xdeadbeef; + ret = RpcServerInqDefaultPrincNameA( RPC_C_AUTHN_WINNT, &principal ); + ok( ret == RPC_S_OK, "got %u\n", ret ); + ok( principal != (RPC_CSTR)0xdeadbeef, "expected valid principal\n" ); + ok( !strcmp( (const char *)principal, username ), "got \'%s\'\n", principal ); + RpcStringFree( &principal ); + + ret = RpcServerRegisterAuthInfoA( saved_principal, RPC_C_AUTHN_WINNT, NULL, NULL ); + ok( ret == RPC_S_OK, "got %u\n", ret ); + + RpcStringFree( &saved_principal ); + HeapFree( GetProcessHeap(), 0, username ); +} + START_TEST( rpc ) { UuidConversionAndComparison(); @@ -867,4 +921,5 @@ START_TEST( rpc ) test_UuidCreate(); test_UuidCreateSequential(); test_RpcBindingFree(); + test_RpcServerInqDefaultPrincName(); } diff --git a/include/rpcdce.h b/include/rpcdce.h index bbdc42f..84f6330 100644 --- a/include/rpcdce.h +++ b/include/rpcdce.h @@ -611,6 +611,12 @@ RPCRTAPI unsigned short RPC_ENTRY RPCRTAPI int RPC_ENTRY UuidIsNil( UUID* Uuid, RPC_STATUS* Status_ ); +RPCRTAPI RPC_STATUS RPC_ENTRY + RpcServerInqDefaultPrincNameA( ULONG AuthnSvc, RPC_CSTR *PrincName ); +RPCRTAPI RPC_STATUS RPC_ENTRY + RpcServerInqDefaultPrincNameW( ULONG AuthnSvc, RPC_WSTR *PrincName ); +#define RpcServerInqDefaultPrincName WINELIB_NAME_AW(RpcServerInqDefaultPrincName) + #ifdef __cplusplus } #endif
1
0
0
0
Alexandre Julliard : opengl32/tests: Add some more tests for bitmap rendering.
by Alexandre Julliard
09 May '12
09 May '12
Module: wine Branch: master Commit: 1157ccccd7cceac6c3af7e3bf8ae88d3cfb24d9f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1157ccccd7cceac6c3af7e3bf…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed May 9 17:07:33 2012 +0200 opengl32/tests: Add some more tests for bitmap rendering. --- dlls/opengl32/tests/opengl.c | 117 +++++++++++++++++++++++++++++++++--------- 1 files changed, 92 insertions(+), 25 deletions(-) diff --git a/dlls/opengl32/tests/opengl.c b/dlls/opengl32/tests/opengl.c index e6e4881..a91dfb8 100644 --- a/dlls/opengl32/tests/opengl.c +++ b/dlls/opengl32/tests/opengl.c @@ -515,37 +515,49 @@ static void test_acceleration(HDC hdc) } } -static void test_bitmap_rendering(void) +static void test_bitmap_rendering( BOOL use_dib ) { PIXELFORMATDESCRIPTOR pfd; - int i, iPixelFormat=0; + int i, ret, bpp, iPixelFormat=0; unsigned int nFormats; - HGLRC hglrc; + HGLRC hglrc, hglrc2; BITMAPINFO biDst; - HBITMAP bmpDst, oldDst; + HBITMAP bmpDst, oldDst, bmp2; HDC hdcDst, hdcScreen; - UINT32 *dstBuffer; - - memset(&biDst, 0, sizeof(BITMAPINFO)); - biDst.bmiHeader.biSize = sizeof(BITMAPINFOHEADER); - biDst.bmiHeader.biWidth = 2; - biDst.bmiHeader.biHeight = -2; - biDst.bmiHeader.biPlanes = 1; - biDst.bmiHeader.biBitCount = 32; - biDst.bmiHeader.biCompression = BI_RGB; + UINT *dstBuffer = NULL; hdcScreen = CreateCompatibleDC(0); - if(GetDeviceCaps(hdcScreen, BITSPIXEL) != 32) + hdcDst = CreateCompatibleDC(0); + + if (use_dib) { - DeleteDC(hdcScreen); - trace("Skipping bitmap rendering test\n"); - return; + bpp = 32; + memset(&biDst, 0, sizeof(BITMAPINFO)); + biDst.bmiHeader.biSize = sizeof(BITMAPINFOHEADER); + biDst.bmiHeader.biWidth = 4; + biDst.bmiHeader.biHeight = -4; + biDst.bmiHeader.biPlanes = 1; + biDst.bmiHeader.biBitCount = 32; + biDst.bmiHeader.biCompression = BI_RGB; + + bmpDst = CreateDIBSection(0, &biDst, DIB_RGB_COLORS, (void**)&dstBuffer, NULL, 0); + + biDst.bmiHeader.biWidth = 12; + biDst.bmiHeader.biHeight = -12; + biDst.bmiHeader.biBitCount = 16; + bmp2 = CreateDIBSection(0, &biDst, DIB_RGB_COLORS, NULL, NULL, 0); + } + else + { + bpp = GetDeviceCaps( hdcScreen, BITSPIXEL ); + bmpDst = CreateBitmap( 4, 4, 1, bpp, NULL ); + bmp2 = CreateBitmap( 12, 12, 1, bpp, NULL ); } - hdcDst = CreateCompatibleDC(hdcScreen); - bmpDst = CreateDIBSection(hdcDst, &biDst, DIB_RGB_COLORS, (void**)&dstBuffer, NULL, 0); oldDst = SelectObject(hdcDst, bmpDst); + trace( "testing on %s\n", use_dib ? "DIB" : "DDB" ); + /* Pick a pixel format by hand because ChoosePixelFormat is unreliable */ nFormats = DescribePixelFormat(hdcDst, 0, 0, NULL); for(i=1; i<=nFormats; i++) @@ -555,7 +567,7 @@ static void test_bitmap_rendering(void) if((pfd.dwFlags & PFD_DRAW_TO_BITMAP) && (pfd.dwFlags & PFD_SUPPORT_OPENGL) && - (pfd.cColorBits == 32) && + (pfd.cColorBits == bpp) && (pfd.cAlphaBits == 8) ) { iPixelFormat = i; @@ -569,31 +581,85 @@ static void test_bitmap_rendering(void) } else { - SetPixelFormat(hdcDst, iPixelFormat, &pfd); + ret = SetPixelFormat(hdcDst, iPixelFormat, &pfd); + ok( ret, "SetPixelFormat failed\n" ); + ret = GetPixelFormat( hdcDst ); + ok( ret == iPixelFormat, "GetPixelFormat returned %d/%d\n", ret, iPixelFormat ); + ret = SetPixelFormat(hdcDst, iPixelFormat + 1, &pfd); + ok( !ret, "SetPixelFormat succeeded\n" ); hglrc = wglCreateContext(hdcDst); ok(hglrc != NULL, "Unable to create a context\n"); if(hglrc) { + GLint viewport[4]; wglMakeCurrent(hdcDst, hglrc); + hglrc2 = wglCreateContext(hdcDst); + ok(hglrc2 != NULL, "Unable to create a context\n"); /* Note this is RGBA but we read ARGB back */ glClearColor((float)0x22/0xff, (float)0x33/0xff, (float)0x44/0xff, (float)0x11/0xff); glClear(GL_COLOR_BUFFER_BIT); + glGetIntegerv( GL_VIEWPORT, viewport ); glFinish(); + ok( viewport[0] == 0 && viewport[1] == 0 && viewport[2] == 4 && viewport[3] == 4, + "wrong viewport %d,%d,%d,%d\n", viewport[0], viewport[1], viewport[2], viewport[3] ); /* Note apparently the alpha channel is not supported by the software renderer (bitmap only works using software) */ - ok(dstBuffer[0] == 0x223344 || dstBuffer[0] == 0x11223344, "Received color=%x\n", dstBuffer[0]); + if (dstBuffer) + for (i = 0; i < 16; i++) + ok(dstBuffer[i] == 0x223344 || dstBuffer[i] == 0x11223344, "Received color=%x at %u\n", + dstBuffer[i], i); + + SelectObject(hdcDst, bmp2); + ret = GetPixelFormat( hdcDst ); + ok( ret == iPixelFormat, "GetPixelFormat returned %d/%d\n", ret, iPixelFormat ); + ret = SetPixelFormat(hdcDst, iPixelFormat + 1, &pfd); + ok( !ret, "SetPixelFormat succeeded\n" ); + + /* context still uses the old pixel format and viewport */ + glClearColor((float)0x44/0xff, (float)0x33/0xff, (float)0x22/0xff, (float)0x11/0xff); + glClear(GL_COLOR_BUFFER_BIT); + glFinish(); + glGetIntegerv( GL_VIEWPORT, viewport ); + ok( viewport[0] == 0 && viewport[1] == 0 && viewport[2] == 4 && viewport[3] == 4, + "wrong viewport %d,%d,%d,%d\n", viewport[0], viewport[1], viewport[2], viewport[3] ); wglMakeCurrent(NULL, NULL); - wglDeleteContext(hglrc); + wglMakeCurrent(hdcDst, hglrc); + glClearColor((float)0x44/0xff, (float)0x55/0xff, (float)0x66/0xff, (float)0x11/0xff); + glClear(GL_COLOR_BUFFER_BIT); + glFinish(); + glGetIntegerv( GL_VIEWPORT, viewport ); + ok( viewport[0] == 0 && viewport[1] == 0 && viewport[2] == 4 && viewport[3] == 4, + "wrong viewport %d,%d,%d,%d\n", viewport[0], viewport[1], viewport[2], viewport[3] ); + + wglMakeCurrent(hdcDst, hglrc2); + glGetIntegerv( GL_VIEWPORT, viewport ); + ok( viewport[0] == 0 && viewport[1] == 0 && viewport[2] == 12 && viewport[3] == 12, + "wrong viewport %d,%d,%d,%d\n", viewport[0], viewport[1], viewport[2], viewport[3] ); + + wglMakeCurrent(hdcDst, hglrc); + glGetIntegerv( GL_VIEWPORT, viewport ); + ok( viewport[0] == 0 && viewport[1] == 0 && viewport[2] == 4 && viewport[3] == 4, + "wrong viewport %d,%d,%d,%d\n", viewport[0], viewport[1], viewport[2], viewport[3] ); + + SelectObject(hdcDst, bmpDst); + ret = GetPixelFormat( hdcDst ); + ok( ret == iPixelFormat, "GetPixelFormat returned %d/%d\n", ret, iPixelFormat ); + ret = SetPixelFormat(hdcDst, iPixelFormat + 1, &pfd); + ok( !ret, "SetPixelFormat succeeded\n" ); + wglMakeCurrent(hdcDst, hglrc2); + glGetIntegerv( GL_VIEWPORT, viewport ); + ok( viewport[0] == 0 && viewport[1] == 0 && viewport[2] == 12 && viewport[3] == 12, + "wrong viewport %d,%d,%d,%d\n", viewport[0], viewport[1], viewport[2], viewport[3] ); } } SelectObject(hdcDst, oldDst); + DeleteObject(bmp2); DeleteObject(bmpDst); DeleteDC(hdcDst); - DeleteDC(hdcScreen); } @@ -1305,7 +1371,8 @@ START_TEST(opengl) res = SetPixelFormat(hdc, iPixelFormat, &pfd); ok(res, "SetPixelformat failed: %x\n", GetLastError()); - test_bitmap_rendering(); + test_bitmap_rendering( TRUE ); + test_bitmap_rendering( FALSE ); test_minimized(); test_window_dc(); test_dc(hwnd, hdc);
1
0
0
0
Alexandre Julliard : gdi32: Pass OpenGL calls through to the display driver from the DIB engine.
by Alexandre Julliard
09 May '12
09 May '12
Module: wine Branch: master Commit: 1392bfce3c3811f885a070f1830836327eef00f4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1392bfce3c3811f885a070f18…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed May 9 17:07:15 2012 +0200 gdi32: Pass OpenGL calls through to the display driver from the DIB engine. --- dlls/gdi32/dibdrv/dc.c | 188 ++++-------------------------------------- dlls/opengl32/tests/opengl.c | 4 +- 2 files changed, 19 insertions(+), 173 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=1392bfce3c3811f885a07…
1
0
0
0
Alexandre Julliard : winex11: Use an intermediate pixmap also for DDBs to handle format mismatches.
by Alexandre Julliard
09 May '12
09 May '12
Module: wine Branch: master Commit: b082b3acba54c69db0338b000fa9ceded9ed94c9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b082b3acba54c69db0338b000…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed May 9 17:35:09 2012 +0200 winex11: Use an intermediate pixmap also for DDBs to handle format mismatches. --- dlls/winex11.drv/bitmap.c | 2 - dlls/winex11.drv/opengl.c | 56 +------------------------------------------- dlls/winex11.drv/x11drv.h | 1 - 3 files changed, 2 insertions(+), 57 deletions(-) diff --git a/dlls/winex11.drv/bitmap.c b/dlls/winex11.drv/bitmap.c index 883deba..f00e530 100644 --- a/dlls/winex11.drv/bitmap.c +++ b/dlls/winex11.drv/bitmap.c @@ -239,8 +239,6 @@ BOOL X11DRV_DeleteBitmap( HBITMAP hbitmap ) if (physBitmap) { - if (physBitmap->glxpixmap) - destroy_glxpixmap( gdi_display, physBitmap->glxpixmap ); wine_tsx11_lock(); if (physBitmap->pixmap) XFreePixmap( gdi_display, physBitmap->pixmap ); XDeleteContext( gdi_display, (XID)hbitmap, bitmap_context ); diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c index 1b5c7a9..95c1169 100644 --- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -1172,24 +1172,6 @@ Drawable create_glxpixmap(Display *display, XVisualInfo *vis, Pixmap parent) } -static XID create_bitmap_glxpixmap(X11DRV_PDEVICE *physDev, WineGLPixelFormat *fmt) -{ - GLXPixmap ret = 0; - XVisualInfo *vis; - - wine_tsx11_lock(); - - vis = pglXGetVisualFromFBConfig(gdi_display, fmt->fbconfig); - if(vis) { - if(vis->depth == physDev->bitmap->depth) - ret = pglXCreateGLXPixmap(gdi_display, vis, physDev->bitmap->pixmap); - XFree(vis); - } - wine_tsx11_unlock(); - TRACE("return %lx\n", ret); - return ret; -} - /** * glxdrv_ChoosePixelFormat * @@ -1610,16 +1592,6 @@ static BOOL internal_SetPixelFormat( struct glx_physdev *physdev, return FALSE; } - if (physdev->x11dev->bitmap->hbitmap == GetCurrentObject( physdev->dev.hdc, OBJ_BITMAP )) - { - physdev->x11dev->bitmap->glxpixmap = create_bitmap_glxpixmap(physdev->x11dev, fmt); - if(!physdev->x11dev->bitmap->glxpixmap) { - WARN("Couldn't create glxpixmap for pixel format %d\n", iPixelFormat); - return FALSE; - } - } - /* otherwise we have a DIB section */ - physdev->pixel_format = iPixelFormat; physdev->type = DC_GL_BITMAP; } @@ -1830,17 +1802,11 @@ static PROC glxdrv_wglGetProcAddress(LPCSTR lpszProc) static GLXPixmap get_context_pixmap( struct glx_physdev *physdev, struct wine_glcontext *ctx ) { - HBITMAP bitmap = GetCurrentObject( physdev->dev.hdc, OBJ_BITMAP ); - - if (physdev->x11dev->bitmap->hbitmap == bitmap) return physdev->x11dev->bitmap->glxpixmap; - - /* otherwise we have a DIB section */ - if (!ctx->pixmap) { BITMAP bmp; - GetObjectW( bitmap, sizeof(bmp), &bmp ); + GetObjectW( GetCurrentObject( physdev->dev.hdc, OBJ_BITMAP ), sizeof(bmp), &bmp ); wine_tsx11_lock(); ctx->pixmap = XCreatePixmap( gdi_display, root_window, @@ -3974,24 +3940,6 @@ static BOOL glxdrv_DeleteDC( PHYSDEV dev ) return TRUE; } -/*********************************************************************** - * glxdrv_SelectBitmap - */ -static HBITMAP glxdrv_SelectBitmap( PHYSDEV dev, HBITMAP hbitmap ) -{ - HBITMAP ret; - struct glx_physdev *physdev = get_glxdrv_dev( dev ); - - dev = GET_NEXT_PHYSDEV( dev, pSelectBitmap ); - ret = dev->funcs->pSelectBitmap( dev, hbitmap ); - if (ret) - { - if (hbitmap == BITMAP_stock_phys_bitmap.hbitmap) physdev->drawable = 0; - else physdev->drawable = X11DRV_get_phys_bitmap(hbitmap)->glxpixmap; - } - return ret; -} - /********************************************************************** * glxdrv_ExtEscape */ @@ -4122,7 +4070,7 @@ static const struct gdi_dc_funcs glxdrv_funcs = NULL, /* pSaveDC */ NULL, /* pScaleViewportExt */ NULL, /* pScaleWindowExt */ - glxdrv_SelectBitmap, /* pSelectBitmap */ + NULL, /* pSelectBitmap */ NULL, /* pSelectBrush */ NULL, /* pSelectClipPath */ NULL, /* pSelectFont */ diff --git a/dlls/winex11.drv/x11drv.h b/dlls/winex11.drv/x11drv.h index 5533c76..82889c2 100644 --- a/dlls/winex11.drv/x11drv.h +++ b/dlls/winex11.drv/x11drv.h @@ -108,7 +108,6 @@ typedef struct { HBITMAP hbitmap; Pixmap pixmap; - XID glxpixmap; int depth; /* depth of the X pixmap */ int format; /* color format (used by XRender) */ ColorShifts color_shifts; /* color shifts of the X pixmap */
1
0
0
0
Alexandre Julliard : winex11: Add support for OpenGL rendering in DIBs using an intermediate pixmap.
by Alexandre Julliard
09 May '12
09 May '12
Module: wine Branch: master Commit: ba7db0998ccaafc2c5b0939110a570688a01106d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ba7db0998ccaafc2c5b093911…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed May 9 17:06:50 2012 +0200 winex11: Add support for OpenGL rendering in DIBs using an intermediate pixmap. --- dlls/winex11.drv/opengl.c | 205 +++++++++++++++++++++++++++++++++++---------- 1 files changed, 162 insertions(+), 43 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=ba7db0998ccaafc2c5b09…
1
0
0
0
Alexandre Julliard : wine.inf: Unify all the control panel settings.
by Alexandre Julliard
09 May '12
09 May '12
Module: wine Branch: master Commit: bd621203ac835844ffca25b7bd53646f9b1b1eb0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=bd621203ac835844ffca25b7b…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed May 9 12:42:20 2012 +0200 wine.inf: Unify all the control panel settings. --- tools/wine.inf.in | 49 +++++++++++++++++++++---------------------------- 1 files changed, 21 insertions(+), 28 deletions(-) diff --git a/tools/wine.inf.in b/tools/wine.inf.in index a01c8bb..1b8e56d 100644 --- a/tools/wine.inf.in +++ b/tools/wine.inf.in @@ -35,11 +35,10 @@ AddReg=\ Classes,\ ContentIndex,\ ControlClass,\ + ControlPanel,\ CurrentVersion,\ Debugger,\ - Desktop,\ Dotnet,\ - Metrics,\ DirectX,\ Fonts,\ MCI,\ @@ -61,11 +60,10 @@ AddReg=\ Classes,\ ContentIndex,\ ControlClass,\ + ControlPanel,\ CurrentVersion,\ Debugger,\ - Desktop,\ Dotnet,\ - Metrics,\ DirectX,\ Fonts,\ MCI,\ @@ -88,12 +86,11 @@ AddReg=\ Classes,\ ContentIndex,\ ControlClass,\ + ControlPanel,\ CurrentVersion,\ CurrentVersionWow64,\ Debugger,\ - Desktop,\ Dotnet,\ - Metrics,\ DirectX,\ Fonts,\ MCI,\ @@ -156,8 +153,6 @@ AddService=FontCache3.0.0.0,0,FontCacheService [Strings] MciExtStr="Software\Microsoft\Windows NT\CurrentVersion\MCI Extensions" Mci32Str="Software\Microsoft\Windows NT\CurrentVersion\MCI32" -Desktop="Control Panel\Desktop" -Metrics="Control Panel\Desktop\WindowMetrics" CurrentVersion="Software\Microsoft\Windows\CurrentVersion" CurrentVersionNT="Software\Microsoft\Windows NT\CurrentVersion" FontSubStr="Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes" @@ -500,13 +495,24 @@ HKLM,%CurrentVersionNT%\AeDebug,"Auto",2,"1" HKCU,Software\Wine\Debug,"RelayExclude",2,"ntdll.RtlEnterCriticalSection;ntdll.RtlLeaveCriticalSection;kernel32.48;kernel32.49;kernel32.94;kernel32.95;kernel32.96;kernel32.97;kernel32.98;kernel32.TlsGetValue;kernel32.TlsSetValue;kernel32.FlsGetValue;kernel32.FlsSetValue;kernel32.SetLastError" HKCU,Software\Wine\Debug,"RelayFromExclude",2,"winex11.drv;user32;gdi32;advapi32;kernel32" -[Desktop] -HKCU,%Desktop%,"FontSmoothing",2,"0" -HKCU,%Desktop%,"DragFullWindows",2,"0" -HKCU,%Desktop%,"SmoothScroll",3,00,00,00,00 -HKCU,%Desktop%,"UserPreferenceMask",3,10,00,00,80 -HKCU,%Desktop%,"LowPowerActive",,"0" -HKCU,%Desktop%,"MenuShowDelay",2,"400" +[ControlPanel] +HKCU,Control Panel\Desktop,DragFullWindows,2,"0" +HKCU,Control Panel\Desktop,FontSmoothing,2,"0" +HKCU,Control Panel\Desktop,LowPowerActive,,"0" +HKCU,Control Panel\Desktop,MenuShowDelay,2,"400" +HKCU,Control Panel\Desktop,SmoothScroll,3,00,00,00,00 +HKCU,Control Panel\Desktop,UserPreferenceMask,3,10,00,00,80 +HKCU,Control Panel\Desktop\WindowMetrics,BorderWidth,2,"1" +HKCU,Control Panel\Desktop\WindowMetrics,CaptionHeight,2,"18" +HKCU,Control Panel\Desktop\WindowMetrics,CaptionWidth,2,"18" +HKCU,Control Panel\Desktop\WindowMetrics,MenuHeight,2,"18" +HKCU,Control Panel\Desktop\WindowMetrics,MenuWidth,2,"18" +HKCU,Control Panel\Desktop\WindowMetrics,ScrollHeight,2,"16" +HKCU,Control Panel\Desktop\WindowMetrics,ScrollWidth,2,"16" +HKCU,Control Panel\Desktop\WindowMetrics,Shell Icon Size,2,"32" +HKCU,Control Panel\Desktop\WindowMetrics,SmCaptionHeight,2,"15" +HKCU,Control Panel\Desktop\WindowMetrics,SmCaptionWidth,2,"13" +HKCU,Control Panel\Mouse,Beep,2,"No" [DotNet] HKLM,Software\Microsoft\.NETFramework,"InstallRoot",2,"%10%\Microsoft.NET\Framework\" @@ -534,18 +540,6 @@ HKLM,Software\Microsoft\NET Framework Setup\NDP\v4\Full,Install,0x10003,1 HKLM,Software\Microsoft\NET Framework Setup\NDP\v4\Full,Version,2,4.0.30319 HKLM,Software\Microsoft\NET Framework Setup\NDP\v4\Full,TargetVersion,2,4.0.0 -[Metrics] -HKCU,%Metrics%,"ScrollWidth",2,"16" -HKCU,%Metrics%,"ScrollHeight",2,"16" -HKCU,%Metrics%,"CaptionWidth",2,"18" -HKCU,%Metrics%,"CaptionHeight",2,"18" -HKCU,%Metrics%,"SmCaptionWidth",2,"13" -HKCU,%Metrics%,"SmCaptionHeight",2,"15" -HKCU,%Metrics%,"MenuWidth",2,"18" -HKCU,%Metrics%,"MenuHeight",2,"18" -HKCU,%Metrics%,"BorderWidth",2,"1" -HKCU,%Metrics%,"Shell Icon Size",2,"32" - [DirectX] HKLM,Software\Microsoft\DirectX,"Version",,"4.09.00.0904" HKLM,Software\Microsoft\DirectX,"InstalledVersion",1,00,00,00,09,00,00,00,00 @@ -658,7 +652,6 @@ HKLM,%MciExtStr%,"wmx",,"MPEGVideo" HKLM,%MciExtStr%,"wvx",,"MPEGVideo" [Misc] -HKCU,Control Panel\Mouse,"Beep",2,"No" HKLM,Software\Borland\Database Engine\Settings\SYSTEM\INIT,SHAREDMEMLOCATION,,9000 HKLM,Software\Clients\Mail,,2,"Native Mail Client" HKLM,Software\Clients\Mail\Native Mail Client,,2,"Native Mail Client"
1
0
0
0
Austin English : wine.inf: Add HKCU\Control Panel\Mouse\Beep key.
by Alexandre Julliard
09 May '12
09 May '12
Module: wine Branch: master Commit: 7b909b53f99058d3f0611a69260d72d1bf926b7f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7b909b53f99058d3f0611a692…
Author: Austin English <austinenglish(a)gmail.com> Date: Wed May 9 03:22:47 2012 -0500 wine.inf: Add HKCU\Control Panel\Mouse\Beep key. --- tools/wine.inf.in | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tools/wine.inf.in b/tools/wine.inf.in index 0002b9f..a01c8bb 100644 --- a/tools/wine.inf.in +++ b/tools/wine.inf.in @@ -658,6 +658,7 @@ HKLM,%MciExtStr%,"wmx",,"MPEGVideo" HKLM,%MciExtStr%,"wvx",,"MPEGVideo" [Misc] +HKCU,Control Panel\Mouse,"Beep",2,"No" HKLM,Software\Borland\Database Engine\Settings\SYSTEM\INIT,SHAREDMEMLOCATION,,9000 HKLM,Software\Clients\Mail,,2,"Native Mail Client" HKLM,Software\Clients\Mail\Native Mail Client,,2,"Native Mail Client"
1
0
0
0
Dmitry Timoshkov : gdi32: Set tmDigitizedAspectX/ Y to 96 instead of 300 for consistency.
by Alexandre Julliard
09 May '12
09 May '12
Module: wine Branch: master Commit: 82a4c5a6a3f23f69f9b25be3bf39954663d165df URL:
http://source.winehq.org/git/wine.git/?a=commit;h=82a4c5a6a3f23f69f9b25be3b…
Author: Dmitry Timoshkov <dmitry(a)baikal.ru> Date: Tue May 8 19:29:24 2012 +0900 gdi32: Set tmDigitizedAspectX/Y to 96 instead of 300 for consistency. --- dlls/gdi32/freetype.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c index 80e5cbd..130966c 100644 --- a/dlls/gdi32/freetype.c +++ b/dlls/gdi32/freetype.c @@ -6677,8 +6677,8 @@ static BOOL get_outline_text_metrics(GdiFont *font) TM.tmWeight = pOS2->usWeightClass; } TM.tmOverhang = 0; - TM.tmDigitizedAspectX = 300; - TM.tmDigitizedAspectY = 300; + TM.tmDigitizedAspectX = 96; /* FIXME */ + TM.tmDigitizedAspectY = 96; /* FIXME */ /* It appears that for fonts with SYMBOL_CHARSET Windows always sets * symbol range to 0 - f0ff */
1
0
0
0
← Newer
1
...
51
52
53
54
55
56
57
...
74
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
Results per page:
10
25
50
100
200