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
July 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
3 participants
957 discussions
Start a n
N
ew thread
Rob Shearman : rpcrt4: Translate between NCA and RPC status codes.
by Alexandre Julliard
05 Jul '07
05 Jul '07
Module: wine Branch: master Commit: 9c77d7ac1fd75ad2c093bdcd0e5bf2aa91690811 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9c77d7ac1fd75ad2c093bdcd0…
Author: Rob Shearman <rob(a)codeweavers.com> Date: Thu Jul 5 12:46:59 2007 +0100 rpcrt4: Translate between NCA and RPC status codes. --- dlls/rpcrt4/ncastatus.h | 66 ++++++++++++++++++++++++++++++++++++++++ dlls/rpcrt4/rpc_message.c | 73 +++++++++++++++++++++++++++++++++++++++++++- dlls/rpcrt4/rpc_message.h | 4 ++ dlls/rpcrt4/rpc_server.c | 10 ++++-- 4 files changed, 147 insertions(+), 6 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=9c77d7ac1fd75ad2c093b…
1
0
0
0
Julio E. Gonzalez P : ntdll: Add PYT and PYST time zones.
by Alexandre Julliard
05 Jul '07
05 Jul '07
Module: wine Branch: master Commit: 5b98738c4d3723398045568712b8963e4999b5f1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5b98738c4d372339804556871…
Author: Julio E. Gonzalez P <jegp(a)netvision.com.py> Date: Wed Jul 4 20:52:29 2007 -0400 ntdll: Add PYT and PYST time zones. --- dlls/ntdll/time.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dlls/ntdll/time.c b/dlls/ntdll/time.c index 1159a89..08e09b0 100644 --- a/dlls/ntdll/time.c +++ b/dlls/ntdll/time.c @@ -168,6 +168,12 @@ static const struct tagTZ_INFO TZ_INFO[] = {"BRST", {'B','r','a','z','i','l','i','a','n',' ','S','u','m','m','e','r', ' ','T','i','m','e','\0'}, 120, 1}, + {"PYT", + {'P','a','r','a','g','u','a','y','a','n',' ', + 'S','t','a','n','d','a','r','d',' ','T','i','m','e','\0'}, 240, 0}, + {"PYST", + {'P','a','r','a','g','u','a','y','a','n',' ','S','u','m','m','e','r', + ' ','T','i','m','e','\0'}, 180, 1}, {"ART", {'S','A',' ','E','a','s','t','e','r','n',' ','S','t','a','n','d','a','r', 'd',' ','T','i','m','e','\0'}, 180, 0},
1
0
0
0
Misha Koshelev : gdi32: Slightly simplify result handling in PolyDraw.
by Alexandre Julliard
05 Jul '07
05 Jul '07
Module: wine Branch: master Commit: def420262bd63f97720af921a4967540182ea7a5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=def420262bd63f97720af921a…
Author: Misha Koshelev <mk144210(a)bcm.edu> Date: Wed Jul 4 14:40:24 2007 -0500 gdi32: Slightly simplify result handling in PolyDraw. --- dlls/gdi32/painting.c | 14 +++++--------- 1 files changed, 5 insertions(+), 9 deletions(-) diff --git a/dlls/gdi32/painting.c b/dlls/gdi32/painting.c index 3e84f60..4a8b8c9 100644 --- a/dlls/gdi32/painting.c +++ b/dlls/gdi32/painting.c @@ -823,7 +823,7 @@ BOOL WINAPI PolyDraw(HDC hdc, const POINT *lppt, const BYTE *lpbTypes, DWORD cCount) { DC *dc; - BOOL result; + BOOL result = FALSE; POINT lastmove; unsigned int i; @@ -841,10 +841,8 @@ BOOL WINAPI PolyDraw(HDC hdc, const POINT *lppt, const BYTE *lpbTypes, if( lpbTypes[i] != PT_MOVETO && lpbTypes[i] & PT_BEZIERTO ) { - if( cCount < i+3 ){ - result = FALSE; - goto end; - } + if( cCount < i+3 ) + goto end; else i += 2; } @@ -869,10 +867,8 @@ BOOL WINAPI PolyDraw(HDC hdc, const POINT *lppt, const BYTE *lpbTypes, PolyBezierTo( hdc, &lppt[i], 3 ); i += 2; } - else{ - result = FALSE; - goto end; - } + else + goto end; if( lpbTypes[i] & PT_CLOSEFIGURE ) {
1
0
0
0
Andrew Talbot : winelib: Cast-qual warnings fix.
by Alexandre Julliard
05 Jul '07
05 Jul '07
Module: wine Branch: master Commit: c208c3b90b0c64e2c34804faaabd9cb9bacc27d8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c208c3b90b0c64e2c34804faa…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Wed Jul 4 20:53:40 2007 +0100 winelib: Cast-qual warnings fix. --- include/wine/unicode.h | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/include/wine/unicode.h b/include/wine/unicode.h index 1240f8e..27d7cee 100644 --- a/include/wine/unicode.h +++ b/include/wine/unicode.h @@ -245,7 +245,7 @@ WINE_UNICODE_INLINE WCHAR *strcatW( WCHAR *dst, const WCHAR *src ) WINE_UNICODE_INLINE WCHAR *strchrW( const WCHAR *str, WCHAR ch ); WINE_UNICODE_INLINE WCHAR *strchrW( const WCHAR *str, WCHAR ch ) { - do { if (*str == ch) return (WCHAR *)str; } while (*str++); + do { if (*str == ch) return (WCHAR *)(ULONG_PTR)str; } while (*str++); return NULL; } @@ -253,14 +253,14 @@ WINE_UNICODE_INLINE WCHAR *strrchrW( const WCHAR *str, WCHAR ch ); WINE_UNICODE_INLINE WCHAR *strrchrW( const WCHAR *str, WCHAR ch ) { WCHAR *ret = NULL; - do { if (*str == ch) ret = (WCHAR *)str; } while (*str++); + do { if (*str == ch) ret = (WCHAR *)(ULONG_PTR)str; } while (*str++); return ret; } WINE_UNICODE_INLINE WCHAR *strpbrkW( const WCHAR *str, const WCHAR *accept ); WINE_UNICODE_INLINE WCHAR *strpbrkW( const WCHAR *str, const WCHAR *accept ) { - for ( ; *str; str++) if (strchrW( accept, *str )) return (WCHAR *)str; + for ( ; *str; str++) if (strchrW( accept, *str )) return (WCHAR *)(ULONG_PTR)str; return NULL; } @@ -300,16 +300,17 @@ WINE_UNICODE_INLINE WCHAR *memchrW( const WCHAR *ptr, WCHAR ch, size_t n ); WINE_UNICODE_INLINE WCHAR *memchrW( const WCHAR *ptr, WCHAR ch, size_t n ) { const WCHAR *end; - for (end = ptr + n; ptr < end; ptr++) if (*ptr == ch) return (WCHAR *)ptr; + for (end = ptr + n; ptr < end; ptr++) if (*ptr == ch) return (WCHAR *)(ULONG_PTR)ptr; return NULL; } WINE_UNICODE_INLINE WCHAR *memrchrW( const WCHAR *ptr, WCHAR ch, size_t n ); WINE_UNICODE_INLINE WCHAR *memrchrW( const WCHAR *ptr, WCHAR ch, size_t n ) { - const WCHAR *end, *ret = NULL; - for (end = ptr + n; ptr < end; ptr++) if (*ptr == ch) ret = ptr; - return (WCHAR *)ret; + const WCHAR *end; + WCHAR *ret = NULL; + for (end = ptr + n; ptr < end; ptr++) if (*ptr == ch) ret = (WCHAR *)(ULONG_PTR)ptr; + return ret; } WINE_UNICODE_INLINE long int atolW( const WCHAR *str );
1
0
0
0
Andrew Talbot : ole32: Constify some variables.
by Alexandre Julliard
05 Jul '07
05 Jul '07
Module: wine Branch: master Commit: 67d667b82823a948371e70abe13a6dd43aabfd33 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=67d667b82823a948371e70abe…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Wed Jul 4 20:12:48 2007 +0100 ole32: Constify some variables. --- dlls/ole32/stg_bigblockfile.c | 2 +- dlls/ole32/stg_prop.c | 4 ++-- dlls/ole32/storage.c | 4 ++-- dlls/ole32/storage32.c | 26 +++++++++++++------------- dlls/ole32/storage32.h | 19 +++++++++---------- 5 files changed, 27 insertions(+), 28 deletions(-) diff --git a/dlls/ole32/stg_bigblockfile.c b/dlls/ole32/stg_bigblockfile.c index 4f22207..aa48a9d 100644 --- a/dlls/ole32/stg_bigblockfile.c +++ b/dlls/ole32/stg_bigblockfile.c @@ -920,7 +920,7 @@ HRESULT BIGBLOCKFILE_ReadAt(LPBIGBLOCKFILE This, ULARGE_INTEGER offset, } HRESULT BIGBLOCKFILE_WriteAt(LPBIGBLOCKFILE This, ULARGE_INTEGER offset, - void* buffer, const ULONG size, ULONG* bytesRead) + const void* buffer, ULONG size, ULONG* bytesRead) { if (This->fileBased) return ImplBIGBLOCKFILE_WriteAt(This,offset,buffer,size,bytesRead); diff --git a/dlls/ole32/stg_prop.c b/dlls/ole32/stg_prop.c index 45c760e..f2c96ee 100644 --- a/dlls/ole32/stg_prop.c +++ b/dlls/ole32/stg_prop.c @@ -1617,7 +1617,7 @@ end: } static HRESULT PropertyStorage_WritePropertyToStream(PropertyStorage_impl *This, - DWORD propNum, DWORD propid, PROPVARIANT *var, DWORD *sectionOffset) + DWORD propNum, DWORD propid, const PROPVARIANT *var, DWORD *sectionOffset) { HRESULT hr; LARGE_INTEGER seek; @@ -1717,7 +1717,7 @@ static HRESULT PropertyStorage_WritePropertyToStream(PropertyStorage_impl *This, FILETIME temp; StorageUtl_WriteULargeInteger((BYTE *)&temp, 0, - (ULARGE_INTEGER *)&var->u.filetime); + (const ULARGE_INTEGER *)&var->u.filetime); hr = IStream_Write(This->stm, &temp, sizeof(FILETIME), &count); bytesWritten = count; break; diff --git a/dlls/ole32/storage.c b/dlls/ole32/storage.c index b2b89ff..febdc12 100644 --- a/dlls/ole32/storage.c +++ b/dlls/ole32/storage.c @@ -552,7 +552,7 @@ STORAGE_get_small_block(stream_access16 *str,int blocknr,BYTE *sblock) { * STORAGE_put_small_block [INTERNAL] */ static BOOL -STORAGE_put_small_block(stream_access16 *str,int blocknr,BYTE *sblock) { +STORAGE_put_small_block(stream_access16 *str,int blocknr,const BYTE *sblock) { BYTE block[BIGSIZE]; int bigblocknr; struct storage_pps_entry root; @@ -654,7 +654,7 @@ STORAGE_get_pps_entry(stream_access16*str,int n,struct storage_pps_entry *pstde) * STORAGE_put_pps_entry [Internal] */ static int -STORAGE_put_pps_entry(stream_access16*str,int n,struct storage_pps_entry *pstde) { +STORAGE_put_pps_entry(stream_access16*str,int n,const struct storage_pps_entry *pstde) { int blocknr; BYTE block[BIGSIZE]; struct storage_pps_entry *stde = (struct storage_pps_entry*)(((LPBYTE)block)+128*(n&3)); diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c index bda5bdc..f787faa 100644 --- a/dlls/ole32/storage32.c +++ b/dlls/ole32/storage32.c @@ -91,7 +91,7 @@ static StorageInternalImpl* StorageInternalImpl_Construct(StorageImpl* ancestorS DWORD openFlags, ULONG rootTropertyIndex); static void StorageImpl_Destroy(StorageBaseImpl* iface); static BOOL StorageImpl_ReadBigBlock(StorageImpl* This, ULONG blockIndex, void* buffer); -static BOOL StorageImpl_WriteBigBlock(StorageImpl* This, ULONG blockIndex, void* buffer); +static BOOL StorageImpl_WriteBigBlock(StorageImpl* This, ULONG blockIndex, const void* buffer); static void StorageImpl_SetNextBlockInChain(StorageImpl* This, ULONG blockIndex, ULONG nextBlock); static HRESULT StorageImpl_LoadFileHeader(StorageImpl* This); static void StorageImpl_SaveFileHeader(StorageImpl* This); @@ -279,7 +279,7 @@ static HRESULT StorageImpl_ReadAt(StorageImpl* This, static HRESULT StorageImpl_WriteAt(StorageImpl* This, ULARGE_INTEGER offset, - void* buffer, + const void* buffer, const ULONG size, ULONG* bytesWritten) { @@ -3373,9 +3373,9 @@ BOOL StorageImpl_ReadProperty( * Write the specified property into the property chain */ BOOL StorageImpl_WriteProperty( - StorageImpl* This, - ULONG index, - StgProperty* buffer) + StorageImpl* This, + ULONG index, + const StgProperty* buffer) { BYTE currentProperty[PROPSET_BLOCK_SIZE]; ULARGE_INTEGER offsetInPropSet; @@ -3492,9 +3492,9 @@ static BOOL StorageImpl_ReadDWordFromBigBlock( } static BOOL StorageImpl_WriteBigBlock( - StorageImpl* This, - ULONG blockIndex, - void* buffer) + StorageImpl* This, + ULONG blockIndex, + const void* buffer) { ULARGE_INTEGER ulOffset; DWORD wrote; @@ -4337,9 +4337,9 @@ void StorageUtl_WriteGUID(BYTE* buffer, ULONG offset, const GUID* value) } void StorageUtl_CopyPropertyToSTATSTG( - STATSTG* destination, - StgProperty* source, - int statFlags) + STATSTG* destination, + const StgProperty* source, + int statFlags) { /* * The copy of the string occurs only when the flag is not set @@ -6864,7 +6864,7 @@ static HRESULT OLECONVERT_SaveOLE10(OLECONVERT_OLESTREAM_DATA *pData, LPOLESTREA * * */ -static void OLECONVERT_GetOLE20FromOLE10(LPSTORAGE pDestStorage, BYTE *pBuffer, DWORD nBufferLength) +static void OLECONVERT_GetOLE20FromOLE10(LPSTORAGE pDestStorage, const BYTE *pBuffer, DWORD nBufferLength) { HRESULT hRes; HANDLE hFile; @@ -7414,7 +7414,7 @@ static void OLECONVERT_CreateOlePresStream(LPSTORAGE pStorage, DWORD dwExtentX, * Might need to verify the data and return appropriate error message * */ -static void OLECONVERT_CreateOle10NativeStream(LPSTORAGE pStorage, BYTE *pData, DWORD dwDataLength) +static void OLECONVERT_CreateOle10NativeStream(LPSTORAGE pStorage, const BYTE *pData, DWORD dwDataLength) { HRESULT hRes; IStream *pStream; diff --git a/dlls/ole32/storage32.h b/dlls/ole32/storage32.h index 6892996..76db895 100644 --- a/dlls/ole32/storage32.h +++ b/dlls/ole32/storage32.h @@ -189,7 +189,7 @@ void BIGBLOCKFILE_SetSize(LPBIGBLOCKFILE This, ULARGE_INTEGER newSize) HRESULT BIGBLOCKFILE_ReadAt(LPBIGBLOCKFILE This, ULARGE_INTEGER offset, void* buffer, ULONG size, ULONG* bytesRead); HRESULT BIGBLOCKFILE_WriteAt(LPBIGBLOCKFILE This, ULARGE_INTEGER offset, - void* buffer, const ULONG size, ULONG* bytesRead); + const void* buffer, ULONG size, ULONG* bytesRead); /************************************************************************* * Ole Convert support @@ -311,14 +311,14 @@ struct StorageImpl }; BOOL StorageImpl_ReadProperty( - StorageImpl* This, - ULONG index, - StgProperty* buffer); + StorageImpl* This, + ULONG index, + StgProperty* buffer); BOOL StorageImpl_WriteProperty( - StorageImpl* This, - ULONG index, - StgProperty* buffer); + StorageImpl* This, + ULONG index, + const StgProperty* buffer); BlockChainStream* Storage32Impl_SmallBlocksToBigBlocks( StorageImpl* This, @@ -423,9 +423,8 @@ void StorageUtl_WriteULargeInteger(BYTE* buffer, ULONG offset, const ULARGE_INTEGER *value); void StorageUtl_ReadGUID(const BYTE* buffer, ULONG offset, GUID* value); void StorageUtl_WriteGUID(BYTE* buffer, ULONG offset, const GUID* value); -void StorageUtl_CopyPropertyToSTATSTG(STATSTG* destination, - StgProperty* source, - int statFlags); +void StorageUtl_CopyPropertyToSTATSTG(STATSTG* destination, const StgProperty* source, + int statFlags); /**************************************************************************** * BlockChainStream definitions.
1
0
0
0
Stefan Dösinger : ddraw: Implement IDirect3DViewport3: :TransformVertices.
by Alexandre Julliard
05 Jul '07
05 Jul '07
Module: wine Branch: master Commit: e4bf7ab578351e764e4fa3a83a7e4a1856935f1d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e4bf7ab578351e764e4fa3a83…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Sun Jul 1 20:23:02 2007 +0200 ddraw: Implement IDirect3DViewport3::TransformVertices. --- dlls/ddraw/tests/d3d.c | 283 +++++++++++++++++++++++++++++++++++++++++++++++- dlls/ddraw/viewport.c | 139 +++++++++++++++++++++++- 2 files changed, 413 insertions(+), 9 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=e4bf7ab578351e764e4fa…
1
0
0
0
Stefan Dösinger : ddraw: Read the world matrix correctly.
by Alexandre Julliard
05 Jul '07
05 Jul '07
Module: wine Branch: master Commit: 125b9b7dcfbe87f7e1818ea0fdf57ce1e791528f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=125b9b7dcfbe87f7e1818ea0f…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Sun Jul 1 20:22:15 2007 +0200 ddraw: Read the world matrix correctly. --- dlls/ddraw/executebuffer.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ddraw/executebuffer.c b/dlls/ddraw/executebuffer.c index fa51c39..ff0bbdb 100644 --- a/dlls/ddraw/executebuffer.c +++ b/dlls/ddraw/executebuffer.c @@ -339,7 +339,7 @@ IDirect3DExecuteBufferImpl_Execute(IDirect3DExecuteBufferImpl *This, (WINED3DMATRIX*) &proj_mat); IWineD3DDevice_GetTransform(lpDevice->wineD3DDevice, - D3DTRANSFORMSTATE_WORLD, + WINED3DTS_WORLDMATRIX(0), (WINED3DMATRIX*) &world_mat); for (i = 0; i < count; i++) {
1
0
0
0
Stefan Dösinger : ddraw: D3DOP_BRANCHFORWARD includes the current instruction size.
by Alexandre Julliard
05 Jul '07
05 Jul '07
Module: wine Branch: master Commit: 5fa4de27bc780cdc54e5e20ca8ec825b7a069510 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5fa4de27bc780cdc54e5e20ca…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Sun Jul 1 13:53:29 2007 +0200 ddraw: D3DOP_BRANCHFORWARD includes the current instruction size. Native D3DRM puts a branchforward with offset 0 at the beginning of each execute buffer. With the old code this used to get stuck in an endless loop. This patch adds a test that shows that such a branchforward terminates properly. --- dlls/ddraw/executebuffer.c | 2 - dlls/ddraw/surface.c | 3 +- dlls/ddraw/tests/d3d.c | 110 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 112 insertions(+), 3 deletions(-) diff --git a/dlls/ddraw/executebuffer.c b/dlls/ddraw/executebuffer.c index ceb5605..fa51c39 100644 --- a/dlls/ddraw/executebuffer.c +++ b/dlls/ddraw/executebuffer.c @@ -519,13 +519,11 @@ IDirect3DExecuteBufferImpl_Execute(IDirect3DExecuteBufferImpl *This, if (!ci->bNegate) { TRACE(" Branch to %d\n", ci->dwOffset); instr = (char*)current + ci->dwOffset; - break; } } else { if (ci->bNegate) { TRACE(" Branch to %d\n", ci->dwOffset); instr = (char*)current + ci->dwOffset; - break; } } diff --git a/dlls/ddraw/surface.c b/dlls/ddraw/surface.c index 39ed549..1d61530 100644 --- a/dlls/ddraw/surface.c +++ b/dlls/ddraw/surface.c @@ -110,7 +110,8 @@ IDirectDrawSurfaceImpl_QueryInterface(IDirectDrawSurface7 *iface, return S_OK; } else if( IsEqualGUID(riid, &IID_D3DDEVICE_WineD3D) || - IsEqualGUID(riid, &IID_IDirect3DHALDevice) ) + IsEqualGUID(riid, &IID_IDirect3DHALDevice)|| + IsEqualGUID(riid, &IID_IDirect3DRGBDevice) ) { IDirect3DDevice7 *d3d; diff --git a/dlls/ddraw/tests/d3d.c b/dlls/ddraw/tests/d3d.c index 0c69b42..b9d79da 100644 --- a/dlls/ddraw/tests/d3d.c +++ b/dlls/ddraw/tests/d3d.c @@ -818,6 +818,115 @@ static void CapsTest(void) IDirectDraw_Release(dd1); } +static void ExecutebufferTest(void) +{ + IDirect3DDevice *dev1 = NULL; + IDirectDraw *dd; + IDirect3D *d3d; + IDirectDrawSurface *dds; + IDirect3DExecuteBuffer *exebuf; + IDirect3DViewport *vp; + HRESULT hr; + DDSURFACEDESC ddsd; + D3DEXECUTEBUFFERDESC desc; + D3DVIEWPORT vp_data; + D3DINSTRUCTION *instr; + D3DBRANCH *branch; + unsigned int idx = 0; + + /* An IDirect3DDevice cannot be queryInterfaced from an IDirect3DDevice7 on windows */ + hr = DirectDrawCreate(NULL, &dd, NULL); + ok(hr==DD_OK || hr==DDERR_NODIRECTDRAWSUPPORT, "DirectDrawCreate returned: %x\n", hr); + if (!dd) { + trace("DirectDrawCreate() failed with an error %x\n", hr); + return; + } + + hr = IDirectDraw_SetCooperativeLevel(dd, NULL, DDSCL_NORMAL); + ok(hr==DD_OK, "SetCooperativeLevel returned: %x\n", hr); + + hr = IDirectDraw_QueryInterface(dd, &IID_IDirect3D, (void**) &d3d); + ok(hr==DD_OK, "QueryInterface returned: %x\n", hr); + + memset(&ddsd, 0, sizeof(ddsd)); + ddsd.dwSize = sizeof(ddsd); + ddsd.dwFlags = DDSD_CAPS | DDSD_WIDTH | DDSD_HEIGHT; + ddsd.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN | DDSCAPS_3DDEVICE; + ddsd.dwWidth = 256; + ddsd.dwHeight = 256; + hr = IDirectDraw_CreateSurface(dd, &ddsd, &dds, NULL); + ok(hr==DD_OK, "CreateSurface returned: %x\n", hr); + + dev1 = NULL; + hr = IDirectDrawSurface_QueryInterface(dds, &IID_IDirect3DRGBDevice, (void **) &dev1); + ok(hr==D3D_OK || hr==DDERR_NOPALETTEATTACHED || hr==E_OUTOFMEMORY, "CreateDevice returned: %x\n", hr); + if(!dev1) return; + + memset(&desc, 0, sizeof(desc)); + desc.dwSize = sizeof(desc); + desc.dwFlags = D3DDEB_BUFSIZE | D3DDEB_CAPS; + desc.dwCaps = D3DDEBCAPS_VIDEOMEMORY; + desc.dwBufferSize = 128; + desc.lpData = NULL; + hr = IDirect3DDevice_CreateExecuteBuffer(dev1, &desc, &exebuf, NULL); + ok(hr == D3D_OK, "IDirect3DDevice_CreateExecuteBuffer failed: %08x\n", hr); + + memset(&desc, 0, sizeof(desc)); + desc.dwSize = sizeof(desc); + + hr = IDirect3DExecuteBuffer_Lock(exebuf, &desc); + ok(hr == D3D_OK, "IDirect3DExecuteBuffer_Lock failed: %08x\n", hr); + instr = desc.lpData; + instr[idx].bOpcode = D3DOP_BRANCHFORWARD; + instr[idx].bSize = sizeof(*branch); + instr[idx].wCount = 1; + idx++; + branch = (D3DBRANCH *) &instr[idx]; + branch->dwMask = 0x0; + branch->dwValue = 1; + branch->bNegate = TRUE; + branch->dwOffset = 0; + idx += (sizeof(*branch) / sizeof(*instr)); + instr[idx].bOpcode = D3DOP_EXIT; + instr[idx].bSize = 0; + instr[idx].bSize = 0; + hr = IDirect3DExecuteBuffer_Unlock(exebuf); + ok(hr == D3D_OK, "IDirect3DExecuteBuffer_Unlock failed: %08x\n", hr); + + hr = IDirect3D_CreateViewport(d3d, &vp, NULL); + ok(hr == D3D_OK, "IDirect3D_CreateViewport failed: %08x\n", hr); + hr = IDirect3DViewport_Initialize(vp, d3d); + ok(hr == DDERR_ALREADYINITIALIZED, "IDirect3DViewport_Initialize returned %08x\n", hr); + hr = IDirect3DDevice_AddViewport(dev1, vp); + ok(hr == D3D_OK, "IDirect3DDevice_AddViewport returned %08x\n", hr); + vp_data.dwSize = sizeof(vp_data); + vp_data.dwX = 0; + vp_data.dwY = 0; + vp_data.dwWidth = 256; + vp_data.dwHeight = 256; + vp_data.dvScaleX = 1; + vp_data.dvScaleY = 1; + vp_data.dvMaxX = 256; + vp_data.dvMaxY = 256; + vp_data.dvMinZ = 0; + vp_data.dvMaxZ = 1; + hr = IDirect3DViewport_SetViewport(vp, &vp_data); + ok(hr == D3D_OK, "IDirect3DViewport_SetViewport returned %08x\n", hr); + + hr = IDirect3DDevice_Execute(dev1, exebuf, vp, D3DEXECUTE_CLIPPED); + ok(hr == D3D_OK, "IDirect3DDevice_Execute returned %08x\n", hr); + + hr = IDirect3DDevice_DeleteViewport(dev1, vp); + ok(hr == D3D_OK, "IDirect3DDevice_AddViewport returned %08x\n", hr); + IDirect3DViewport_Release(vp); + IDirect3DExecuteBuffer_Release(exebuf); + IDirect3DDevice_Release(dev1); + IDirectDrawSurface_Release(dds); + IDirect3D_Release(d3d); + IDirectDraw_Release(dd); + return; +} + START_TEST(d3d) { init_function_pointers(); @@ -837,4 +946,5 @@ START_TEST(d3d) LimitTest(); CapsTest(); ReleaseDirect3D(); + ExecutebufferTest(); }
1
0
0
0
Stefan Dösinger : ddraw: Materials in the execute buffer are handles.
by Alexandre Julliard
05 Jul '07
05 Jul '07
Module: wine Branch: master Commit: c58b2f228386194476f95524270a8862d77f07e7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c58b2f228386194476f955242…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Sun Jul 1 01:01:50 2007 +0200 ddraw: Materials in the execute buffer are handles. --- dlls/ddraw/executebuffer.c | 19 ++++++++++++------- 1 files changed, 12 insertions(+), 7 deletions(-) diff --git a/dlls/ddraw/executebuffer.c b/dlls/ddraw/executebuffer.c index 9dbff68..ceb5605 100644 --- a/dlls/ddraw/executebuffer.c +++ b/dlls/ddraw/executebuffer.c @@ -246,14 +246,19 @@ IDirect3DExecuteBufferImpl_Execute(IDirect3DExecuteBufferImpl *This, if (!ci->u1.dlstLightStateType && (ci->u1.dlstLightStateType > D3DLIGHTSTATE_COLORVERTEX)) ERR("Unexpected Light State Type\n"); else if (ci->u1.dlstLightStateType == D3DLIGHTSTATE_MATERIAL /* 1 */) { - IDirect3DMaterialImpl *mat = (IDirect3DMaterialImpl *) ci->u2.dwArg[0]; - - if (mat != NULL) { - mat->activate(mat); - } else { - FIXME(" D3DLIGHTSTATE_MATERIAL called with NULL material !!!\n"); - } + DWORD matHandle = ci->u2.dwArg[0]; + + if(!matHandle) { + FIXME(" D3DLIGHTSTATE_MATERIAL called with NULL material !!!\n"); + } else if(matHandle >= lpDevice->numHandles) { + WARN("Material handle %d is invalid\n", matHandle); + } else if(lpDevice->Handles[matHandle - 1].type != DDrawHandle_Material) { + WARN("Handle %d is not a material handle\n", matHandle); + } else { + IDirect3DMaterialImpl *mat = (IDirect3DMaterialImpl *) lpDevice->Handles[matHandle - 1].ptr; + mat->activate(mat); } + } else if (ci->u1.dlstLightStateType == D3DLIGHTSTATE_COLORMODEL /* 3 */) { switch (ci->u2.dwArg[0]) { case D3DCOLOR_MONO:
1
0
0
0
Stefan Dösinger : ddraw: Fix an incorrect iface-> impl cast.
by Alexandre Julliard
05 Jul '07
05 Jul '07
Module: wine Branch: master Commit: c0cc4d42199fdbd895ddde30912d1bac0261db28 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c0cc4d42199fdbd895ddde309…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Sun Jul 1 00:50:35 2007 +0200 ddraw: Fix an incorrect iface->impl cast. --- dlls/ddraw/device.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c index 38c7677..5c21bf9 100644 --- a/dlls/ddraw/device.c +++ b/dlls/ddraw/device.c @@ -589,7 +589,7 @@ Thunk_IDirect3DDeviceImpl_1_SwapTextureHandles(IDirect3DDevice *iface, IDirect3DTexture *D3DTex1, IDirect3DTexture *D3DTex2) { - ICOM_THIS_FROM(IDirect3DDeviceImpl, IDirect3DDevice2, iface); + ICOM_THIS_FROM(IDirect3DDeviceImpl, IDirect3DDevice, iface); IDirectDrawSurfaceImpl *surf1 = ICOM_OBJECT(IDirectDrawSurfaceImpl, IDirect3DTexture, D3DTex1); IDirectDrawSurfaceImpl *surf2 = ICOM_OBJECT(IDirectDrawSurfaceImpl, IDirect3DTexture, D3DTex2); TRACE_(ddraw_thunk)("(%p)->(%p,%p) thunking to IDirect3DDevice2 interface.\n", This, surf1, surf2);
1
0
0
0
← Newer
1
...
82
83
84
85
86
87
88
...
96
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
Results per page:
10
25
50
100
200