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
February 2006
----- 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
696 discussions
Start a n
N
ew thread
Eric Kohl : widl: The 'string' attribute can also be used with unsigned characters.
by Alexandre Julliard
03 Feb '06
03 Feb '06
Module: wine Branch: refs/heads/master Commit: dd57b45aaabcb840f031e1c3aa31619f986aa504 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=dd57b45aaabcb840f031e1c…
Author: Eric Kohl <eric.kohl(a)t-online.de> Date: Fri Feb 3 18:47:06 2006 +0100 widl: The 'string' attribute can also be used with unsigned characters. --- tools/widl/typegen.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index 546e693..1c1002e 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -577,7 +577,7 @@ static size_t write_string_tfs(FILE *fil int has_size = size_is && (size_is->type != EXPR_VOID); size_t start_offset = *typestring_offset; - if ((type->type != RPC_FC_CHAR) && (type->type != RPC_FC_WCHAR)) + if ((type->type != RPC_FC_BYTE) && (type->type != RPC_FC_CHAR) && (type->type != RPC_FC_WCHAR)) { error("write_string_tfs: Unimplemented for type 0x%x of name: %s\n", type->type, name); return start_offset;
1
0
0
0
Robert Shearman : rpcrt4: Restrict stubless FC types to the range of the type function table.
by Alexandre Julliard
03 Feb '06
03 Feb '06
Module: wine Branch: refs/heads/master Commit: 4d25edc2981b4c2d6be6b1f0cb921e731552b5ee URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=4d25edc2981b4c2d6be6b1f…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Fri Feb 3 18:46:40 2006 +0100 rpcrt4: Restrict stubless FC types to the range of the type function table. --- dlls/rpcrt4/ndr_stubless.c | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/dlls/rpcrt4/ndr_stubless.c b/dlls/rpcrt4/ndr_stubless.c index 7c10621..1a45275 100644 --- a/dlls/rpcrt4/ndr_stubless.c +++ b/dlls/rpcrt4/ndr_stubless.c @@ -47,9 +47,11 @@ WINE_DEFAULT_DEBUG_CHANNEL(rpc); +#define NDR_TABLE_MASK 127 + static inline void call_buffer_sizer(PMIDL_STUB_MESSAGE pStubMsg, unsigned char *pMemory, PFORMAT_STRING pFormat) { - NDR_BUFFERSIZE m = NdrBufferSizer[pFormat[0]]; + NDR_BUFFERSIZE m = NdrBufferSizer[pFormat[0] & NDR_TABLE_MASK]; if (m) m(pStubMsg, pMemory, pFormat); else { @@ -60,7 +62,7 @@ static inline void call_buffer_sizer(PMI static inline unsigned char *call_marshaller(PMIDL_STUB_MESSAGE pStubMsg, unsigned char *pMemory, PFORMAT_STRING pFormat) { - NDR_MARSHALL m = NdrMarshaller[pFormat[0]]; + NDR_MARSHALL m = NdrMarshaller[pFormat[0] & NDR_TABLE_MASK]; if (m) return m(pStubMsg, pMemory, pFormat); else { @@ -72,7 +74,7 @@ static inline unsigned char *call_marsha static inline unsigned char *call_unmarshaller(PMIDL_STUB_MESSAGE pStubMsg, unsigned char **ppMemory, PFORMAT_STRING pFormat, unsigned char fMustAlloc) { - NDR_UNMARSHALL m = NdrUnmarshaller[pFormat[0]]; + NDR_UNMARSHALL m = NdrUnmarshaller[pFormat[0] & NDR_TABLE_MASK]; if (m) return m(pStubMsg, ppMemory, pFormat, fMustAlloc); else { @@ -84,7 +86,7 @@ static inline unsigned char *call_unmars static inline void call_freer(PMIDL_STUB_MESSAGE pStubMsg, unsigned char *pMemory, PFORMAT_STRING pFormat) { - NDR_FREE m = NdrFreer[pFormat[0]]; + NDR_FREE m = NdrFreer[pFormat[0] & NDR_TABLE_MASK]; if (m) m(pStubMsg, pMemory, pFormat); else { @@ -95,7 +97,7 @@ static inline void call_freer(PMIDL_STUB static inline unsigned long call_memory_sizer(PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat) { - NDR_MEMORYSIZE m = NdrMemorySizer[pFormat[0]]; + NDR_MEMORYSIZE m = NdrMemorySizer[pFormat[0] & NDR_TABLE_MASK]; if (m) return m(pStubMsg, pFormat); else {
1
0
0
0
Robert Shearman : rpcrt4: Raise exceptions in NdrSendReceive if I_RpcSendReceive failed.
by Alexandre Julliard
03 Feb '06
03 Feb '06
Module: wine Branch: refs/heads/master Commit: 666baea161348f34dc60b5491d0d8b2214df870c URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=666baea161348f34dc60b54…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Fri Feb 3 18:46:32 2006 +0100 rpcrt4: Raise exceptions in NdrSendReceive if I_RpcSendReceive failed. --- dlls/rpcrt4/ndr_midl.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/dlls/rpcrt4/ndr_midl.c b/dlls/rpcrt4/ndr_midl.c index 723c3c1..cc43817 100644 --- a/dlls/rpcrt4/ndr_midl.c +++ b/dlls/rpcrt4/ndr_midl.c @@ -269,6 +269,8 @@ void WINAPI NdrFreeBuffer(MIDL_STUB_MESS */ unsigned char *WINAPI NdrSendReceive( MIDL_STUB_MESSAGE *stubmsg, unsigned char *buffer ) { + RPC_STATUS status; + TRACE("(stubmsg == ^%p, buffer == ^%p)\n", stubmsg, buffer); /* FIXME: how to handle errors? (raise exception?) */ @@ -281,10 +283,9 @@ unsigned char *WINAPI NdrSendReceive( MI return NULL; } - if (I_RpcSendReceive(stubmsg->RpcMsg) != RPC_S_OK) { - WARN("I_RpcSendReceive did not return success.\n"); - /* FIXME: raise exception? */ - } + status = I_RpcSendReceive(stubmsg->RpcMsg); + if (status != RPC_S_OK) + RpcRaiseException(status); stubmsg->BufferLength = stubmsg->RpcMsg->BufferLength; stubmsg->BufferStart = stubmsg->RpcMsg->Buffer;
1
0
0
0
Robert Shearman : include: Move all of the contiguous FC types together so we can see
by Alexandre Julliard
03 Feb '06
03 Feb '06
Module: wine Branch: refs/heads/master Commit: 7dcc55f4ccd5e44bb29040796aa6b509d829d919 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=7dcc55f4ccd5e44bb290407…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Fri Feb 3 18:46:12 2006 +0100 include: Move all of the contiguous FC types together so we can see possible missing constants better. --- include/wine/rpcfc.h | 85 ++++++++++++++++++++++++++------------------------ 1 files changed, 44 insertions(+), 41 deletions(-) diff --git a/include/wine/rpcfc.h b/include/wine/rpcfc.h index 7a124d4..0180a27 100644 --- a/include/wine/rpcfc.h +++ b/include/wine/rpcfc.h @@ -29,12 +29,6 @@ #define RPC_FC_UP 0x12 /* unique pointer */ #define RPC_FC_OP 0x13 /* unique pointer in object ? */ #define RPC_FC_FP 0x14 /* full pointer */ -/* FC_RP/UP/OP/FP: flags, NdrFcShort(typeofs)/basetype */ -#define RPC_FC_P_ALLOCALLNODES 0x01 -#define RPC_FC_P_DONTFREE 0x02 -#define RPC_FC_P_ONSTACK 0x04 /* [alloced_on_stack] */ -#define RPC_FC_P_SIMPLEPOINTER 0x08 /* [simple_pointer] */ -#define RPC_FC_P_DEREF 0x10 #define RPC_FC_STRUCT 0x15 /* simple structure */ /* FC_STRUCT: align-1, NdrFcShort(size), fields */ @@ -82,47 +76,12 @@ /* FC_IP: FC_CONSTANT_IID iid */ /* FC_IP: FC_PAD correlation */ -#define RPC_FC_BIND_EXPLICIT 0x00 #define RPC_FC_BIND_CONTEXT 0x30 #define RPC_FC_BIND_GENERIC 0x31 #define RPC_FC_BIND_PRIMITIVE 0x32 #define RPC_FC_AUTO_HANDLE 0x33 #define RPC_FC_CALLBACK_HANDLE 0x34 -/* proc header: oiflags, NdrFcLong(rpcflags), NdrFcShort(procnum), NdrFcShort(stacksiz), - * oi2 header: NdrFcShort(clientbuf), NdrFcShort(servbuf), oi2flags, parmcount - * oi2 parameters: NdrFcShort(flags), NdrFcShort(stackofs), NdrFcShort(typeofs)/basetype */ -#define RPC_FC_PROC_OIF_FULLPTR 0x01 -#define RPC_FC_PROC_OIF_RPCSSALLOC 0x02 -#define RPC_FC_PROC_OIF_OBJECT 0x04 -#define RPC_FC_PROC_OIF_RPCFLAGS 0x08 -#define RPC_FC_PROC_OIF_OBJ_V2 0x20 -#define RPC_FC_PROC_OIF_NEWINIT 0x40 - -#define RPC_FC_PROC_OI2F_SRVMUSTSIZE 0x01 -#define RPC_FC_PROC_OI2F_CLTMUSTSIZE 0x02 -#define RPC_FC_PROC_OI2F_HASRETURN 0x04 -#define RPC_FC_PROC_OI2F_HASPIPES 0x08 -#define RPC_FC_PROC_OI2F_HASASYNCUUID 0x20 -#define RPC_FC_PROC_OI2F_HASEXTS 0x40 -#define RPC_FC_PROC_OI2F_HASASYNCHND 0x80 -#define RPC_FC_PROC_PF_MUSTSIZE 0x0001 -#define RPC_FC_PROC_PF_MUSTFREE 0x0002 -#define RPC_FC_PROC_PF_PIPE 0x0004 -#define RPC_FC_PROC_PF_IN 0x0008 -#define RPC_FC_PROC_PF_OUT 0x0010 -#define RPC_FC_PROC_PF_RETURN 0x0020 -#define RPC_FC_PROC_PF_BASETYPE 0x0040 -#define RPC_FC_PROC_PF_BYVAL 0x0080 -#define RPC_FC_PROC_PF_SIMPLEREF 0x0100 -#define RPC_FC_PROC_PF_DONTFREEINST 0x0200 -#define RPC_FC_PROC_PF_SAVEASYNC 0x0400 -#define RPC_FC_PROC_PF_SRVALLOCSIZE 0xe000 /* in 8 byte units */ -#define RPC_FC_PROC_EXT_NEWCORRDESC 0x01 -#define RPC_FC_PROC_EXT_CLIENTCORRCHECK 0x02 -#define RPC_FC_PROC_EXT_SERVERCORRCHECK 0x04 -#define RPC_FC_PROC_EXT_HASNOTIFY 0x08 -#define RPC_FC_PROC_EXT_HASNOTIFY2 0x10 #define RPC_FC_POINTER 0x36 @@ -182,6 +141,50 @@ #define RPC_FC_INT3264 0xb8 #define RPC_FC_UINT3264 0xb9 +/* FC_RP/UP/OP/FP: flags, NdrFcShort(typeofs)/basetype */ +#define RPC_FC_P_ALLOCALLNODES 0x01 +#define RPC_FC_P_DONTFREE 0x02 +#define RPC_FC_P_ONSTACK 0x04 /* [alloced_on_stack] */ +#define RPC_FC_P_SIMPLEPOINTER 0x08 /* [simple_pointer] */ +#define RPC_FC_P_DEREF 0x10 + +#define RPC_FC_BIND_EXPLICIT 0x00 + +/* proc header: oiflags, NdrFcLong(rpcflags), NdrFcShort(procnum), NdrFcShort(stacksiz), + * oi2 header: NdrFcShort(clientbuf), NdrFcShort(servbuf), oi2flags, parmcount + * oi2 parameters: NdrFcShort(flags), NdrFcShort(stackofs), NdrFcShort(typeofs)/basetype */ +#define RPC_FC_PROC_OIF_FULLPTR 0x01 +#define RPC_FC_PROC_OIF_RPCSSALLOC 0x02 +#define RPC_FC_PROC_OIF_OBJECT 0x04 +#define RPC_FC_PROC_OIF_RPCFLAGS 0x08 +#define RPC_FC_PROC_OIF_OBJ_V2 0x20 +#define RPC_FC_PROC_OIF_NEWINIT 0x40 + +#define RPC_FC_PROC_OI2F_SRVMUSTSIZE 0x01 +#define RPC_FC_PROC_OI2F_CLTMUSTSIZE 0x02 +#define RPC_FC_PROC_OI2F_HASRETURN 0x04 +#define RPC_FC_PROC_OI2F_HASPIPES 0x08 +#define RPC_FC_PROC_OI2F_HASASYNCUUID 0x20 +#define RPC_FC_PROC_OI2F_HASEXTS 0x40 +#define RPC_FC_PROC_OI2F_HASASYNCHND 0x80 +#define RPC_FC_PROC_PF_MUSTSIZE 0x0001 +#define RPC_FC_PROC_PF_MUSTFREE 0x0002 +#define RPC_FC_PROC_PF_PIPE 0x0004 +#define RPC_FC_PROC_PF_IN 0x0008 +#define RPC_FC_PROC_PF_OUT 0x0010 +#define RPC_FC_PROC_PF_RETURN 0x0020 +#define RPC_FC_PROC_PF_BASETYPE 0x0040 +#define RPC_FC_PROC_PF_BYVAL 0x0080 +#define RPC_FC_PROC_PF_SIMPLEREF 0x0100 +#define RPC_FC_PROC_PF_DONTFREEINST 0x0200 +#define RPC_FC_PROC_PF_SAVEASYNC 0x0400 +#define RPC_FC_PROC_PF_SRVALLOCSIZE 0xe000 /* in 8 byte units */ +#define RPC_FC_PROC_EXT_NEWCORRDESC 0x01 +#define RPC_FC_PROC_EXT_CLIENTCORRCHECK 0x02 +#define RPC_FC_PROC_EXT_SERVERCORRCHECK 0x04 +#define RPC_FC_PROC_EXT_HASNOTIFY 0x08 +#define RPC_FC_PROC_EXT_HASNOTIFY2 0x10 + /* correlation types */ #define RPC_FC_NORMAL_CONFORMANCE 0x00 #define RPC_FC_POINTER_CONFORMANCE 0x10
1
0
0
0
Robert Shearman : include: Add function declarations for the Range type.
by Alexandre Julliard
03 Feb '06
03 Feb '06
Module: wine Branch: refs/heads/master Commit: f9e245fe54667fd015790b70445ba4c6629d9dd9 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=f9e245fe54667fd015790b7…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Fri Feb 3 18:45:59 2006 +0100 include: Add function declarations for the Range type. --- include/rpcndr.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/rpcndr.h b/include/rpcndr.h index 87d5b51..eca899a 100644 --- a/include/rpcndr.h +++ b/include/rpcndr.h @@ -537,6 +537,7 @@ TYPE_MARSHAL(ByteCountPointer) TYPE_MARSHAL(XmitOrRepAs) TYPE_MARSHAL(UserMarshal) TYPE_MARSHAL(InterfacePointer) +TYPE_MARSHAL(Range) SIMPLE_TYPE_MARSHAL(ConformantString) SIMPLE_TYPE_MARSHAL(NonConformantString)
1
0
0
0
Mike McCormack : ntdll: Add FILE_ACTION and FILE_NOTIFY_CHANGE_ defines for streams.
by Alexandre Julliard
03 Feb '06
03 Feb '06
Module: wine Branch: refs/heads/master Commit: 39f711ae6ec107c4a12ac900df574e79c161873b URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=39f711ae6ec107c4a12ac90…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Fri Feb 3 18:45:51 2006 +0100 ntdll: Add FILE_ACTION and FILE_NOTIFY_CHANGE_ defines for streams. --- include/winnt.h | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/include/winnt.h b/include/winnt.h index 428a682..b795972 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -3568,14 +3568,20 @@ typedef enum tagSID_NAME_USE { #define FILE_NOTIFY_CHANGE_LAST_WRITE 0x00000010 #define FILE_NOTIFY_CHANGE_LAST_ACCESS 0x00000020 #define FILE_NOTIFY_CHANGE_CREATION 0x00000040 +#define FILE_NOTIFY_CHANGE_EA 0x00000080 #define FILE_NOTIFY_CHANGE_SECURITY 0x00000100 +#define FILE_NOTIFY_CHANGE_STREAM_NAME 0x00000200 +#define FILE_NOTIFY_CHANGE_STREAM_SIZE 0x00000400 +#define FILE_NOTIFY_CHANGE_STREAM_WRITE 0x00000800 #define FILE_ACTION_ADDED 0x00000001 #define FILE_ACTION_REMOVED 0x00000002 #define FILE_ACTION_MODIFIED 0x00000003 #define FILE_ACTION_RENAMED_OLD_NAME 0x00000004 #define FILE_ACTION_RENAMED_NEW_NAME 0x00000005 - +#define FILE_ACTION_ADDED_STREAM 0x00000006 +#define FILE_ACTION_REMOVED_STREAM 0x00000007 +#define FILE_ACTION_MODIFIED_STREAM 0x00000008 #define FILE_CASE_SENSITIVE_SEARCH 0x00000001 #define FILE_CASE_PRESERVED_NAMES 0x00000002
1
0
0
0
Vitaly Budovski : wined3d: Fixed WINED3DRS_POINTSPRITEENABLE.
by Alexandre Julliard
03 Feb '06
03 Feb '06
Module: wine Branch: refs/heads/master Commit: 8f3c98fdfd44165aebcdc75215c835af475d6360 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=8f3c98fdfd44165aebcdc75…
Author: Vitaly Budovski <vbudovsk(a)cs.rmit.edu.au> Date: Fri Feb 3 12:37:46 2006 +0100 wined3d: Fixed WINED3DRS_POINTSPRITEENABLE. --- dlls/wined3d/device.c | 43 ++++++++++++++++++++++--------------------- 1 files changed, 22 insertions(+), 21 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index a491343..c5c4c47 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -3576,29 +3576,30 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRen return D3DERR_INVALIDCALL; } case WINED3DRS_POINTSPRITEENABLE : + { /* TODO: NV_POINT_SPRITE */ - if (GL_SUPPORT(ARB_POINT_SPRITE)) { - if (Value != FALSE) { - /* Doesn't work with GL_POINT_SMOOTH on on my ATI 9600, but then ATI drivers are buggered! */ - glDisable(GL_POINT_SMOOTH); - /* Centre the texture on the vertex */ - VTRACE("glTexEnvf( GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE)\n"); - glTexEnvf( GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE); - - VTRACE("glTexEnvf( GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE)\n"); - glTexEnvf( GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE); - checkGLcall("glTexEnvf(...)"); - VTRACE("glEnable( GL_POINT_SPRITE_ARB )\n"); - glEnable( GL_POINT_SPRITE_ARB ); - checkGLcall("glEnable(...)"); - } else { - VTRACE("glDisable( GL_POINT_SPRITE_ARB )\n"); - glDisable( GL_POINT_SPRITE_ARB ); - checkGLcall("glEnable(...)"); - } + if (!GL_SUPPORT(ARB_POINT_SPRITE)) { + TRACE("Point sprites not supported\n"); + break; } - break; - /* Unhandled yet...! */ + + /* + * Point sprites are always enabled. Value controls texture coordinate + * replacement mode. Must be set true for point sprites to use + * textures. + */ + glEnable(GL_POINT_SPRITE_ARB); + checkGLcall("glEnable(GL_POINT_SPRITE_ARB)"); + + if (Value) { + glTexEnvf(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, TRUE); + checkGLcall("glTexEnvf(GL_POINT_SPRITE, GL_COORD_REPLACE, TRUE)"); + } else { + glTexEnvf(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, FALSE); + checkGLcall("glTexEnvf(GL_POINT_SPRITE, GL_COORD_REPLACE, FALSE)"); + } + break; + } case WINED3DRS_EDGEANTIALIAS : { if(Value) {
1
0
0
0
Vitaly Budovski : wined3d: Corrected implementation of WINED3DRS_POINTSCALEENABLE.
by Alexandre Julliard
03 Feb '06
03 Feb '06
Module: wine Branch: refs/heads/master Commit: dbff6d59e8e857aec21deff8e7185372905a4a67 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=dbff6d59e8e857aec21deff…
Author: Vitaly Budovski <vbudovsk(a)cs.rmit.edu.au> Date: Fri Feb 3 12:34:44 2006 +0100 wined3d: Corrected implementation of WINED3DRS_POINTSCALEENABLE. --- dlls/wined3d/device.c | 58 +++++++++++++++++++++++++------------------------ 1 files changed, 30 insertions(+), 28 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 09343fa..a491343 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -3495,35 +3495,37 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRen case WINED3DRS_POINTSCALE_B : case WINED3DRS_POINTSCALE_C : case WINED3DRS_POINTSCALEENABLE : - { - /* If enabled, supply the parameters, otherwise fall back to defaults */ - if (This->stateBlock->renderState[WINED3DRS_POINTSCALEENABLE]) { - GLfloat att[3] = {1.0f, 0.0f, 0.0f}; - /* TODO: Correct the scaling (this hack seems to be good enough for every demo that uses point sprites!) */ - att[0] = *((float*)&This->stateBlock->renderState[WINED3DRS_POINTSCALE_A])/ This->stateBlock->viewport.Width; - att[1] = *((float*)&This->stateBlock->renderState[WINED3DRS_POINTSCALE_B])/ This->stateBlock->viewport.Height; - att[2] = *((float*)&This->stateBlock->renderState[WINED3DRS_POINTSCALE_C]) * - 2.0f /(This->stateBlock->viewport.Width * This->stateBlock->viewport.Height); - - if (GL_SUPPORT(EXT_POINT_PARAMETERS)) { - TRACE("glPointParameterfvARB %f %f %f\n", att[0], att[1], att[2]); - GL_EXTCALL(glPointParameterfvEXT)(GL_DISTANCE_ATTENUATION_EXT, att); - checkGLcall("glPointParameterfvEXT(GL_DISTANCE_ATTENUATION_EXT, ...);"); - } else { - TRACE("WINED3DRS_POINTSCALEENABLE not supported on this opengl\n"); - } - } else { - GLfloat att[3] = {1.0f, 0.0f, 0.0f}; - if (GL_SUPPORT(EXT_POINT_PARAMETERS)) { - GL_EXTCALL(glPointParameterfvEXT)(GL_DISTANCE_ATTENUATION_EXT, att); - checkGLcall("glPointParameterfvEXT(GL_DISTANCE_ATTENUATION_EXT, ...);"); - } else { - TRACE("WINED3DRS_POINTSCALEENABLE not supported, but not on either\n"); - } - } - break; + { + /* + * POINTSCALEENABLE controls how point size value is treated. If set to + * true, the point size is scaled with repsect to height of viewport. + * When set to false point size is in pixels. + * + *
http://msdn.microsoft.com/library/en-us/directx9_c/point_sprites.asp
+ */ + + /* Default values */ + GLfloat att[3] = {1.0f, 0.0f, 0.0f}; + if(This->stateBlock->renderState[WINED3DRS_POINTSCALEENABLE]) { + att[0] = *((float*)&This->stateBlock->renderState[WINED3DRS_POINTSCALE_A]) / + (This->stateBlock->viewport.Height * This->stateBlock->viewport.Height); + att[1] = *((float*)&This->stateBlock->renderState[WINED3DRS_POINTSCALE_B]) / + (This->stateBlock->viewport.Height * This->stateBlock->viewport.Height); + att[2] = *((float*)&This->stateBlock->renderState[WINED3DRS_POINTSCALE_C]) / + (This->stateBlock->viewport.Height * This->stateBlock->viewport.Height); + } + + if(GL_SUPPORT(ARB_POINT_PARAMETERS)) { + glPointParameterfvARB(GL_POINT_DISTANCE_ATTENUATION_ARB, att); + checkGLcall("glPointParameterfvARB(GL_DISTANCE_ATTENUATION_ARB, ..."); + } + 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"); } - + } case WINED3DRS_COLORWRITEENABLE : { TRACE("Color mask: r(%d) g(%d) b(%d) a(%d)\n",
1
0
0
0
Vitaly Budovski : wined3d: Implemented WINED3DRS_EDGEANTIALIAS.
by Alexandre Julliard
03 Feb '06
03 Feb '06
Module: wine Branch: refs/heads/master Commit: 4279bcc5a8b0a533ccb5393aec5b974e2d0b5679 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=4279bcc5a8b0a533ccb5393…
Author: Vitaly Budovski <vbudovsk(a)cs.rmit.edu.au> Date: Fri Feb 3 12:33:26 2006 +0100 wined3d: Implemented WINED3DRS_EDGEANTIALIAS. --- dlls/wined3d/device.c | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index ab3cc6b..09343fa 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -3598,6 +3598,21 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRen break; /* Unhandled yet...! */ case WINED3DRS_EDGEANTIALIAS : + { + if(Value) { + glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + glEnable(GL_BLEND); + checkGLcall("glEnable(GL_BLEND)"); + glEnable(GL_LINE_SMOOTH); + checkGLcall("glEnable(GL_LINE_SMOOTH)"); + } else { + glDisable(GL_BLEND); + checkGLcall("glDisable(GL_BLEND)"); + glDisable(GL_LINE_SMOOTH); + checkGLcall("glDisable(GL_LINE_SMOOTH)"); + } + break; + } case WINED3DRS_WRAP0 : case WINED3DRS_WRAP1 : case WINED3DRS_WRAP2 :
1
0
0
0
Vitaly Budovski : wined3d: Implemented WINED3DRS_MULTISAMPLEANTIALIAS.
by Alexandre Julliard
03 Feb '06
03 Feb '06
Module: wine Branch: refs/heads/master Commit: 6de3620a9cf29bb36060975af2751d779bed6c5a URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=6de3620a9cf29bb36060975…
Author: Vitaly Budovski <vbudovsk(a)cs.rmit.edu.au> Date: Fri Feb 3 12:31:02 2006 +0100 wined3d: Implemented WINED3DRS_MULTISAMPLEANTIALIAS. --- dlls/wined3d/device.c | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 2ffeb1a..ab3cc6b 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -3618,6 +3618,21 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRen TRACE("(%p)->(%d,%ld) Texture wraping not yet supported\n",This, State, Value); break; case WINED3DRS_MULTISAMPLEANTIALIAS : + { + if (!GL_SUPPORT(ARB_MULTISAMPLE)) { + TRACE("Multisample antialiasing not supported\n"); + break; + } + + if(Value) { + glEnable(GL_MULTISAMPLE_ARB); + checkGLcall("glEnable(GL_MULTISAMPLE_ARB)"); + } else { + glDisable(GL_MULTISAMPLE_ARB); + checkGLcall("glDisable(GL_MULTISAMPLE_ARB)"); + } + break; + } case WINED3DRS_MULTISAMPLEMASK : case WINED3DRS_PATCHEDGESTYLE : case WINED3DRS_PATCHSEGMENTS :
1
0
0
0
← Newer
1
...
62
63
64
65
66
67
68
69
70
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
Results per page:
10
25
50
100
200