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 2011
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
2 participants
945 discussions
Start a n
N
ew thread
Alexandre Julliard : dinput: Reset the clipped flag when the cursor is released.
by Alexandre Julliard
05 May '11
05 May '11
Module: wine Branch: master Commit: 86b682154b440ee5d2d9bf102704644a11cf01cc URL:
http://source.winehq.org/git/wine.git/?a=commit;h=86b682154b440ee5d2d9bf102…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu May 5 16:31:51 2011 +0200 dinput: Reset the clipped flag when the cursor is released. --- dlls/dinput/mouse.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dlls/dinput/mouse.c b/dlls/dinput/mouse.c index b890c73..02813ff 100644 --- a/dlls/dinput/mouse.c +++ b/dlls/dinput/mouse.c @@ -491,6 +491,11 @@ static HRESULT WINAPI SysMouseWImpl_Acquire(LPDIRECTINPUTDEVICE8W iface) if (!This->base.win) This->base.win = GetDesktopWindow(); warp_check( This, TRUE ); } + else if (This->clipped) + { + ClipCursor( NULL ); + This->clipped = FALSE; + } return DI_OK; } @@ -517,6 +522,7 @@ static HRESULT WINAPI SysMouseWImpl_Unacquire(LPDIRECTINPUTDEVICE8W iface) { ClipCursor(NULL); ShowCursor(TRUE); /* show cursor */ + This->clipped = FALSE; } /* And put the mouse cursor back where it was at acquire time */
1
0
0
0
Damjan Jovanovic : mmsystem.dll16: Fix the pointer arithmetic and memory leak issues when unmapping.
by Alexandre Julliard
05 May '11
05 May '11
Module: wine Branch: master Commit: 821adcfac33528bbb2576d54d467aab69ec36e12 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=821adcfac33528bbb2576d54d…
Author: Damjan Jovanovic <damjan.jov(a)gmail.com> Date: Thu May 5 15:18:04 2011 +0200 mmsystem.dll16: Fix the pointer arithmetic and memory leak issues when unmapping. --- dlls/mmsystem.dll16/mci16.c | 22 +++++++++++++--------- 1 files changed, 13 insertions(+), 9 deletions(-) diff --git a/dlls/mmsystem.dll16/mci16.c b/dlls/mmsystem.dll16/mci16.c index adc4469..27ae01d 100644 --- a/dlls/mmsystem.dll16/mci16.c +++ b/dlls/mmsystem.dll16/mci16.c @@ -431,14 +431,15 @@ static MMSYSTEM_MapType MCI_UnMapMsg16To32W(UINT16 wDevID, WORD wMsg, DWORD dwF case MCI_UNFREEZE: case MCI_PUT: if (lParam) { - LPMCI_DGV_RECT_PARMS16 mdrp16 = (LPMCI_DGV_RECT_PARMS16)lParam; - LPMCI_DGV_RECT_PARMS mdrp32 = (LPMCI_DGV_RECT_PARMS)((char*)lParam + sizeof(LPMCI_DGV_RECT_PARMS16)); + LPMCI_DGV_RECT_PARMS mdrp32 = (LPMCI_DGV_RECT_PARMS)lParam; + char *base = (char*)lParam - sizeof(LPMCI_DGV_RECT_PARMS16); + LPMCI_DGV_RECT_PARMS16 mdrp16 = *(LPMCI_DGV_RECT_PARMS16*)base; mdrp16->dwCallback = mdrp32->dwCallback; mdrp16->rc.left = mdrp32->rc.left; mdrp16->rc.top = mdrp32->rc.top; mdrp16->rc.right = mdrp32->rc.right; mdrp16->rc.bottom = mdrp32->rc.bottom; - HeapFree(GetProcessHeap(), 0, (LPVOID)lParam); + HeapFree(GetProcessHeap(), 0, base); } return MMSYSTEM_MAP_OK; case MCI_STATUS: @@ -476,20 +477,22 @@ static MMSYSTEM_MapType MCI_UnMapMsg16To32W(UINT16 wDevID, WORD wMsg, DWORD dwF case MCI_INFO: if (lParam) { LPMCI_INFO_PARMSW mip32w = (LPMCI_INFO_PARMSW)lParam; - LPMCI_INFO_PARMS16 mip16 = *(LPMCI_INFO_PARMS16*)((char*)mip32w - sizeof(LPMCI_INFO_PARMS16)); + char *base = (char*)lParam - sizeof(LPMCI_INFO_PARMS16); + LPMCI_INFO_PARMS16 mip16 = *(LPMCI_INFO_PARMS16*)base; WideCharToMultiByte(CP_ACP, 0, mip32w->lpstrReturn, mip32w->dwRetSize / sizeof(WCHAR), MapSL(mip16->lpstrReturn), mip16->dwRetSize, NULL, NULL); HeapFree(GetProcessHeap(), 0, mip32w->lpstrReturn); - HeapFree(GetProcessHeap(), 0, (LPVOID)lParam); + HeapFree(GetProcessHeap(), 0, base); } return MMSYSTEM_MAP_OK; case MCI_SYSINFO: if (lParam) { MCI_SYSINFO_PARMSW *msip32w = (MCI_SYSINFO_PARMSW *)lParam; - MCI_SYSINFO_PARMS16 *msip16 = *(MCI_SYSINFO_PARMS16 **)((char *)msip32w - sizeof(MCI_SYSINFO_PARMS16 *)); + char *base = (char*)lParam - sizeof(MCI_SYSINFO_PARMS16 *); + MCI_SYSINFO_PARMS16 *msip16 = *(MCI_SYSINFO_PARMS16 **)base; if (dwFlags & MCI_SYSINFO_QUANTITY) { DWORD *quantity = MapSL(msip16->lpstrReturn); @@ -504,7 +507,7 @@ static MMSYSTEM_MapType MCI_UnMapMsg16To32W(UINT16 wDevID, WORD wMsg, DWORD dwF } HeapFree(GetProcessHeap(), 0, msip32w->lpstrReturn); - HeapFree(GetProcessHeap(), 0, (LPVOID)lParam); + HeapFree(GetProcessHeap(), 0, base); } return MMSYSTEM_MAP_OK; case MCI_SOUND: @@ -518,7 +521,8 @@ static MMSYSTEM_MapType MCI_UnMapMsg16To32W(UINT16 wDevID, WORD wMsg, DWORD dwF case MCI_OPEN_DRIVER: if (lParam) { LPMCI_OPEN_PARMSW mop32w = (LPMCI_OPEN_PARMSW)lParam; - LPMCI_OPEN_PARMS16 mop16 = *(LPMCI_OPEN_PARMS16*)((char*)mop32w - sizeof(LPMCI_OPEN_PARMS16)); + char *base = (char*)lParam - sizeof(LPMCI_OPEN_PARMS16); + LPMCI_OPEN_PARMS16 mop16 = *(LPMCI_OPEN_PARMS16*)base; mop16->wDeviceID = mop32w->wDeviceID; if( ( dwFlags & ( MCI_OPEN_TYPE | MCI_OPEN_TYPE_ID)) == MCI_OPEN_TYPE) @@ -527,7 +531,7 @@ static MMSYSTEM_MapType MCI_UnMapMsg16To32W(UINT16 wDevID, WORD wMsg, DWORD dwF HeapFree(GetProcessHeap(), 0, (LPWSTR)mop32w->lpstrElementName); if( ( dwFlags & MCI_OPEN_ALIAS)) HeapFree(GetProcessHeap(), 0, (LPWSTR)mop32w->lpstrAlias); - if (!HeapFree(GetProcessHeap(), 0, (LPVOID)(lParam - sizeof(LPMCI_OPEN_PARMS16)))) + if (!HeapFree(GetProcessHeap(), 0, base)) FIXME("bad free line=%d\n", __LINE__); } return MMSYSTEM_MAP_OK;
1
0
0
0
Damjan Jovanovic : mmsystem.dll16: Fix MCI_STATUS mapping for digitalvideo.
by Alexandre Julliard
05 May '11
05 May '11
Module: wine Branch: master Commit: 840aacc1a263afef9b40595436cb0fb3a653e5fb URL:
http://source.winehq.org/git/wine.git/?a=commit;h=840aacc1a263afef9b4059543…
Author: Damjan Jovanovic <damjan.jov(a)gmail.com> Date: Thu May 5 15:30:54 2011 +0200 mmsystem.dll16: Fix MCI_STATUS mapping for digitalvideo. --- dlls/mmsystem.dll16/mci16.c | 60 ++++++++++++++++++++++++++++++++++++++---- 1 files changed, 54 insertions(+), 6 deletions(-) diff --git a/dlls/mmsystem.dll16/mci16.c b/dlls/mmsystem.dll16/mci16.c index f38df6a..adc4469 100644 --- a/dlls/mmsystem.dll16/mci16.c +++ b/dlls/mmsystem.dll16/mci16.c @@ -128,10 +128,21 @@ static LPWSTR MCI_strdupAtoW( LPCSTR str ) return ret; } +static DWORD MCI_get_device_type(UINT16 deviceId) +{ + MCI_GETDEVCAPS_PARMS parms; + MCIERROR err; + + err = mciSendCommandW(deviceId, MCI_GETDEVCAPS, MCI_GETDEVCAPS_DEVICE_TYPE | MCI_WAIT, (DWORD_PTR)&parms); + if (err != MMSYSERR_NOERROR) + return MCI_DEVTYPE_OTHER; + return parms.dwReturn; +} + /************************************************************************** * MCI_MapMsg16To32W [internal] */ -static MMSYSTEM_MapType MCI_MapMsg16To32W(WORD wMsg, DWORD dwFlags, DWORD_PTR* lParam) +static MMSYSTEM_MapType MCI_MapMsg16To32W(UINT16 wDevID, WORD wMsg, DWORD dwFlags, DWORD_PTR* lParam) { if (*lParam == 0) return MMSYSTEM_MAP_OK; @@ -163,7 +174,6 @@ static MMSYSTEM_MapType MCI_MapMsg16To32W(WORD wMsg, DWORD dwFlags, DWORD_PTR* l /* case MCI_SETTIMECODE:*/ /* case MCI_SIGNAL:*/ case MCI_SPIN: - case MCI_STATUS: /* FIXME: is wrong for digital video */ case MCI_STEP: case MCI_STOP: /* case MCI_UNDO: */ @@ -192,6 +202,31 @@ static MMSYSTEM_MapType MCI_MapMsg16To32W(WORD wMsg, DWORD dwFlags, DWORD_PTR* l *lParam = (DWORD)mdrp32; } return MMSYSTEM_MAP_OKMEM; + case MCI_STATUS: + { + if (MCI_get_device_type(wDevID) == MCI_DEVTYPE_DIGITAL_VIDEO) { + LPMCI_DGV_STATUS_PARMSW mdsp32w = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, + sizeof(LPMCI_DGV_STATUS_PARMS16) + sizeof(MCI_DGV_STATUS_PARMSW)); + LPMCI_DGV_STATUS_PARMS16 mdsp16 = MapSL(*lParam); + if (mdsp32w) { + *(LPMCI_DGV_STATUS_PARMS16*)(mdsp32w) = mdsp16; + mdsp32w = (LPMCI_DGV_STATUS_PARMSW)((char*)mdsp32w + sizeof(LPMCI_DGV_STATUS_PARMS16)); + mdsp32w->dwCallback = mdsp16->dwCallback; + mdsp32w->dwReturn = mdsp16->dwReturn; + mdsp32w->dwItem = mdsp16->dwItem; + mdsp32w->dwTrack = mdsp16->dwTrack; + if (dwFlags & MCI_DGV_STATUS_DISKSPACE) + mdsp32w->lpstrDrive = MCI_strdupAtoW(MapSL(mdsp16->lpstrDrive)); + mdsp32w->dwReference = mdsp16->dwReference; + *lParam = (DWORD)mdsp32w; + } else { + return MMSYSTEM_MAP_NOMEM; + } + } else { + *lParam = (DWORD)MapSL(*lParam); + } + } + return MMSYSTEM_MAP_OKMEM; case MCI_WINDOW: { LPMCI_OVLY_WINDOW_PARMSW mowp32w = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(MCI_OVLY_WINDOW_PARMSW)); @@ -359,7 +394,7 @@ static MMSYSTEM_MapType MCI_MapMsg16To32W(WORD wMsg, DWORD dwFlags, DWORD_PTR* l /************************************************************************** * MCI_UnMapMsg16To32W [internal] */ -static MMSYSTEM_MapType MCI_UnMapMsg16To32W(WORD wMsg, DWORD dwFlags, DWORD_PTR lParam) +static MMSYSTEM_MapType MCI_UnMapMsg16To32W(UINT16 wDevID, WORD wMsg, DWORD dwFlags, DWORD_PTR lParam) { switch (wMsg) { /* case MCI_CAPTURE */ @@ -385,7 +420,6 @@ static MMSYSTEM_MapType MCI_UnMapMsg16To32W(WORD wMsg, DWORD dwFlags, DWORD_PTR /* case MCI_SETTIMECODE:*/ /* case MCI_SIGNAL:*/ case MCI_SPIN: - case MCI_STATUS: case MCI_STEP: case MCI_STOP: /* case MCI_UNDO: */ @@ -407,6 +441,20 @@ static MMSYSTEM_MapType MCI_UnMapMsg16To32W(WORD wMsg, DWORD dwFlags, DWORD_PTR HeapFree(GetProcessHeap(), 0, (LPVOID)lParam); } return MMSYSTEM_MAP_OK; + case MCI_STATUS: + if (lParam && MCI_get_device_type(wDevID) == MCI_DEVTYPE_DIGITAL_VIDEO) { + LPMCI_DGV_STATUS_PARMSW mdsp32w = (LPMCI_DGV_STATUS_PARMSW)lParam; + char *base = (char*)lParam - sizeof(LPMCI_DGV_STATUS_PARMS16); + LPMCI_DGV_STATUS_PARMS16 mdsp16 = *(LPMCI_DGV_STATUS_PARMS16*)base; + mdsp16->dwCallback = mdsp32w->dwCallback; + mdsp16->dwReturn = mdsp32w->dwReturn; + mdsp16->dwItem = mdsp32w->dwItem; + mdsp16->dwTrack = mdsp32w->dwTrack; + mdsp16->dwReference = mdsp32w->dwReference; + HeapFree(GetProcessHeap(), 0, (LPVOID)mdsp32w->lpstrDrive); + HeapFree(GetProcessHeap(), 0, base); + } + return MMSYSTEM_MAP_OK; case MCI_WINDOW: if (lParam) { LPMCI_OVLY_WINDOW_PARMSW mowp32w = (LPMCI_OVLY_WINDOW_PARMSW)lParam; @@ -707,7 +755,7 @@ DWORD WINAPI mciSendCommand16(UINT16 wDevID, UINT16 wMsg, DWORD dwParam1, DWORD dwRet = MCIERR_INVALID_DEVICE_ID; - switch (res = MCI_MapMsg16To32W(wMsg, dwParam1, &dwParam2)) { + switch (res = MCI_MapMsg16To32W(wDevID, wMsg, dwParam1, &dwParam2)) { case MMSYSTEM_MAP_MSGERROR: TRACE("%s not handled yet\n", MCI_MessageToString(wMsg)); dwRet = MCIERR_DRIVER_INTERNAL; @@ -720,7 +768,7 @@ DWORD WINAPI mciSendCommand16(UINT16 wDevID, UINT16 wMsg, DWORD dwParam1, DWORD case MMSYSTEM_MAP_OKMEM: dwRet = mciSendCommandW(wDevID, wMsg, dwParam1, dwParam2); if (res == MMSYSTEM_MAP_OKMEM) - MCI_UnMapMsg16To32W(wMsg, dwParam1, dwParam2); + MCI_UnMapMsg16To32W(wDevID, wMsg, dwParam1, dwParam2); break; } }
1
0
0
0
Dylan Smith : include: Generate rmxftmpl.h from rmxftmpl. x using new build tool.
by Alexandre Julliard
05 May '11
05 May '11
Module: wine Branch: master Commit: c44ab0cd41d13dcf7ba24e35fed8a220f149dfdf URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c44ab0cd41d13dcf7ba24e35f…
Author: Dylan Smith <dylan.ah.smith(a)gmail.com> Date: Thu Apr 28 15:52:20 2011 -0400 include: Generate rmxftmpl.h from rmxftmpl.x using new build tool. --- .gitignore | 1 + include/Makefile.in | 6 + include/rmxftmpl.x | 268 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 275 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index d59a211..b2ca697 100644 --- a/.gitignore +++ b/.gitignore @@ -216,6 +216,7 @@ include/propsys.h include/pstore.h include/qedit.h include/richole.h +include/rmxftmpl.h include/sensevts.h include/servprov.h include/shdeprecated.h diff --git a/include/Makefile.in b/include/Makefile.in index 0bd54f7..590d5d0 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -107,6 +107,9 @@ PUBLIC_IDL_H_SRCS = \ IDL_TLB_SRCS = \ stdole2.idl +XTEMPLATE_SRCS = \ + rmxftmpl.x + SRCDIR_INCLUDES = \ $(IDL_TLB_SRCS) \ $(PUBLIC_IDL_H_SRCS) \ @@ -580,6 +583,9 @@ OBJDIR_INCLUDES = $(PUBLIC_IDL_H_SRCS:.idl=.h) $(XTEMPLATE_SRCS:.x=.h) all: $(IDL_H_SRCS:.idl=.h) $(IDL_TLB_SRCS:.idl=.tlb) $(XTEMPLATE_SRCS:.x=.h) +rmxftmpl.h: rmxftmpl.x $(MAKEXFTMPL) + $(MAKEXFTMPL) -i D3DRM_XTEMPLATES -s D3DRM_XTEMPLATE_BYTES -o $@ $(srcdir)/rmxftmpl.x + install install-dev:: $(OBJDIR_INCLUDES) $(INSTALLDIRS) for f in $(SRCDIR_INCLUDES); do case $$f in \ wine/*) $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(includedir)/`expr $$f : 'wine/\(.*\)'` ;; \ diff --git a/include/rmxftmpl.x b/include/rmxftmpl.x new file mode 100644 index 0000000..e7144b0 --- /dev/null +++ b/include/rmxftmpl.x @@ -0,0 +1,268 @@ +xof 0302txt 0064 +// Copyright (C) 2011 Dylan Smith +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + +template Header +{ + <3D82AB43-62DA-11CF-AB39-0020AF71E433> + WORD major; + WORD minor; + DWORD flags; +} + +template Vector +{ + <3D82AB5E-62DA-11CF-AB39-0020AF71E433> + FLOAT x; + FLOAT y; + FLOAT z; +} + +template Coords2d +{ + <F6F23F44-7686-11CF-8F52-0040333594A3> + FLOAT u; + FLOAT v; +} + +template Matrix4x4 +{ + <F6F23F45-7686-11CF-8F52-0040333594A3> + array FLOAT matrix[16]; +} + +template ColorRGBA +{ + <35FF44E0-6C7C-11CF-8F52-0040333594A3> + FLOAT red; + FLOAT green; + FLOAT blue; + FLOAT alpha; +} + +template ColorRGB +{ + <D3E16E81-7835-11CF-8F52-0040333594A3> + FLOAT red; + FLOAT green; + FLOAT blue; +} + +template IndexedColor +{ + <1630B820-7842-11CF-8F52-0040333594A3> + DWORD index; + ColorRGBA indexColor; +} + +template Boolean +{ + <537DA6A0-CA37-11D0-941C-0080C80CFA7B> + DWORD truefalse; +} + +template Boolean2d +{ + <4885AE63-78E8-11CF-8F52-0040333594A3> + Boolean u; + Boolean v; +} + +template MaterialWrap +{ + <4885AE60-78E8-11CF-8F52-0040333594A3> + Boolean u; + Boolean v; +} + +template TextureFilename +{ + <A42790E1-7810-11CF-8F52-0040333594A3> + STRING filename; +} + +template Material +{ + <3D82AB4D-62DA-11CF-AB39-0020AF71E433> + ColorRGBA faceColor; + FLOAT power; + ColorRGB specularColor; + ColorRGB emissiveColor; + [ ... ] +} + +template MeshFace +{ + <3D82AB5F-62DA-11CF-AB39-0020AF71E433> + DWORD nFaceVertexIndices; + array DWORD faceVertexIndices[nFaceVertexIndices]; +} + +template MeshFaceWraps +{ + <ED1EC5C0-C0A8-11D0-941C-0080C80CFA7B> + DWORD nFaceWrapValues; + array Boolean2d faceWrapValues[nFaceWrapValues]; +} + +template MeshTextureCoords +{ + <F6F23F40-7686-11CF-8F52-0040333594A3> + DWORD nTextureCoords; + array Coords2d textureCoords[nTextureCoords]; +} + +template MeshMaterialList +{ + <F6F23F42-7686-11CF-8F52-0040333594A3> + DWORD nMaterials; + DWORD nFaceIndexes; + array DWORD faceIndexes[nFaceIndexes]; + [ Material ] +} + +template MeshNormals +{ + <F6F23F43-7686-11CF-8F52-0040333594A3> + DWORD nNormals; + array Vector normals[nNormals]; + DWORD nFaceNormals; + array MeshFace faceNormals[nFaceNormals]; +} + +template MeshVertexColors +{ + <1630B821-7842-11CF-8F52-0040333594A3> + DWORD nVertexColors; + array IndexedColor vertexColors[nVertexColors]; +} + +template Mesh +{ + <3D82AB44-62DA-11CF-AB39-0020AF71E433> + DWORD nVertices; + array Vector vertices[nVertices]; + DWORD nFaces; + array MeshFace faces[nFaces]; + [ ... ] +} + +template FrameTransformMatrix +{ + <F6F23F41-7686-11CF-8F52-0040333594A3> + Matrix4x4 frameMatrix; +} + +template Frame +{ + <3D82AB46-62DA-11CF-AB39-0020AF71E433> + [ ... ] +} + +template FloatKeys +{ + <10DD46A9-775B-11CF-8F52-0040333594A3> + DWORD nValues; + array FLOAT values[nValues]; +} + +template TimedFloatKeys +{ + <F406B180-7B3B-11CF-8F52-0040333594A3> + DWORD time; + FloatKeys tfkeys; +} + +template AnimationKey +{ + <10DD46A8-775B-11CF-8F52-0040333594A3> + DWORD keyType; + DWORD nKeys; + array TimedFloatKeys keys[nKeys]; +} + +template AnimationOptions +{ + <E2BF56C0-840F-11CF-8F52-0040333594A3> + DWORD openclosed; + DWORD positionquality; +} + +template Animation +{ + <3D82AB4F-62DA-11CF-AB39-0020AF71E433> + [ ... ] +} + +template AnimationSet +{ + <3D82AB50-62DA-11CF-AB39-0020AF71E433> + [ Animation ] +} + +template InlineData +{ + <3A23EEA0-94B1-11D0-AB39-0020AF71E433> + [ BINARY ] +} + +template Url +{ + <3A23EEA1-94B1-11D0-AB39-0020AF71E433> + DWORD nUrls; + array STRING urls[nUrls]; +} + +template ProgressiveMesh +{ + <8A63C360-997D-11D0-941C-0080C80CFA7B> + [ Url, InlineData ] +} + +template Guid +{ + <A42790E0-7810-11CF-8F52-0040333594A3> + DWORD data1; + WORD data2; + WORD data3; + array UCHAR data4[8]; +} + +template StringProperty +{ + <7F0F21E0-BFE1-11D1-82C0-00A0C9697271> + STRING key; + STRING value; +} + +template PropertyBag +{ + <7F0F21E1-BFE1-11D1-82C0-00A0C9697271> + [ StringProperty ] +} + +template ExternalVisual +{ + <98116AA0-BDBA-11D1-82C0-00A0C9697271> + Guid guidExternalVisual; + [ ... ] +} + +template RightHanded +{ + <7F5D5EA0-D53A-11D1-82C0-00A0C9697271> + DWORD bRightHanded; +}
1
0
0
0
Dylan Smith : tools: Add a tool to build .x template files.
by Alexandre Julliard
05 May '11
05 May '11
Module: wine Branch: master Commit: e6a824d5feaaec7fd637efe46d37df00e56e9175 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e6a824d5feaaec7fd637efe46…
Author: Dylan Smith <dylan.ah.smith(a)gmail.com> Date: Thu Apr 28 15:52:20 2011 -0400 tools: Add a tool to build .x template files. --- .gitignore | 1 + Make.vars.in | 1 + tools/Makefile.in | 5 + tools/make_xftmpl.c | 566 +++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 573 insertions(+), 0 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=e6a824d5feaaec7fd637e…
1
0
0
0
Alexandre Julliard : makefiles: Add support for .x template files.
by Alexandre Julliard
05 May '11
05 May '11
Module: wine Branch: master Commit: 0435b5825e331675530883ede3b681be874fde0a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0435b5825e331675530883ede…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu May 5 15:02:25 2011 +0200 makefiles: Add support for .x template files. --- Make.rules.in | 2 +- include/Makefile.in | 5 +++-- tools/make_makefiles | 4 ++++ tools/makedep.c | 27 +++++++++++++++++++++++++-- 4 files changed, 33 insertions(+), 5 deletions(-) diff --git a/Make.rules.in b/Make.rules.in index cd9c22e..bd2013c 100644 --- a/Make.rules.in +++ b/Make.rules.in @@ -27,7 +27,7 @@ IDL_GEN_HEADERS = $(IDL_H_SRCS:.idl=.h) $(IDL_C_SRCS:.idl=.h) $(IDL_I_SRCS:.idl= CLEAN_FILES = *.o *.a *.so *.ln *.res *.fake *.$(LIBEXT) \\\#*\\\# *~ *% .\\\#* *.bak *.orig *.rej *.flc core CLEAN_TARGETS = $(IDL_GEN_C_SRCS) $(IDL_GEN_HEADERS) $(IDL_TLB_SRCS:.idl=.tlb) $(IDL_P_SRCS:%=dlldata.c) \ $(BISON_SRCS:.y=.tab.c) $(BISON_SRCS:.y=.tab.h) $(LEX_SRCS:.l=.yy.c) \ - $(PO_SRCS:%=rsrc.pot) $(MC_SRCS:%=msg.pot) + $(PO_SRCS:%=rsrc.pot) $(MC_SRCS:%=msg.pot) $(XTEMPLATE_SRCS:.x=.h) OBJS = $(C_SRCS:.c=.o) $(BISON_SRCS:.y=.tab.o) $(LEX_SRCS:.l=.yy.o) $(IDL_GEN_C_SRCS:.c=.o) \ $(IDL_R_SRCS:.idl=_r.res) $(RC_SRCS:.rc=.res) $(MC_SRCS:.mc=.res) $(EXTRA_OBJS) diff --git a/include/Makefile.in b/include/Makefile.in index 1155d30..0bd54f7 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -110,6 +110,7 @@ IDL_TLB_SRCS = \ SRCDIR_INCLUDES = \ $(IDL_TLB_SRCS) \ $(PUBLIC_IDL_H_SRCS) \ + $(XTEMPLATE_SRCS) \ accctrl.h \ access.idl \ aclapi.h \ @@ -575,9 +576,9 @@ IDL_H_SRCS = $(PUBLIC_IDL_H_SRCS) $(PRIVATE_IDL_H_SRCS) @MAKE_RULES@ -OBJDIR_INCLUDES = $(PUBLIC_IDL_H_SRCS:.idl=.h) +OBJDIR_INCLUDES = $(PUBLIC_IDL_H_SRCS:.idl=.h) $(XTEMPLATE_SRCS:.x=.h) -all: $(IDL_H_SRCS:.idl=.h) $(IDL_TLB_SRCS:.idl=.tlb) +all: $(IDL_H_SRCS:.idl=.h) $(IDL_TLB_SRCS:.idl=.tlb) $(XTEMPLATE_SRCS:.x=.h) install install-dev:: $(OBJDIR_INCLUDES) $(INSTALLDIRS) for f in $(SRCDIR_INCLUDES); do case $$f in \ diff --git a/tools/make_makefiles b/tools/make_makefiles index 182aef5..b512d62 100755 --- a/tools/make_makefiles +++ b/tools/make_makefiles @@ -122,6 +122,7 @@ my @ignore_srcs = ( [ 'IDL_S_SRCS', '\.idl', '_s.c' ], [ 'PUBLIC_IDL_H_SRCS', '\.idl', '.h' ], [ 'PRIVATE_IDL_H_SRCS', '\.idl', '.h' ], + [ 'XTEMPLATE_SRCS', '\.x', '.h' ], ); my %exported_wine_headers = ( @@ -362,6 +363,7 @@ sub assign_sources_to_makefiles(@) if ($name =~ /stdole2\.idl$/) { push @{${$make}{"=IDL_TLB_SRCS"}}, $name; } elsif ($private_idl_headers{$name}) { push @{${$make}{"=SRCDIR_INCLUDES"}}, $name; } elsif ($name =~ /\.h$/) { push @{${$make}{"=SRCDIR_INCLUDES"}}, $name; } + elsif ($name =~ /\.x$/) { push @{${$make}{"=XTEMPLATE_SRCS"}}, $name; } elsif ($name =~ /\.rh$/) { push @{${$make}{"=SRCDIR_INCLUDES"}}, $name; } elsif ($name =~ /\.inl$/) { push @{${$make}{"=SRCDIR_INCLUDES"}}, $name; } elsif ($name =~ /\.idl$/) { push @{${$make}{"=PUBLIC_IDL_H_SRCS"}}, $name; } @@ -386,6 +388,7 @@ sub assign_sources_to_makefiles(@) # add extra variables to include source list my $make = $makefiles{"include/Makefile"}; + unshift @{${$make}{"=SRCDIR_INCLUDES"}}, "\$(XTEMPLATE_SRCS)"; unshift @{${$make}{"=SRCDIR_INCLUDES"}}, "\$(PUBLIC_IDL_H_SRCS)"; unshift @{${$make}{"=SRCDIR_INCLUDES"}}, "\$(IDL_TLB_SRCS)"; } @@ -492,6 +495,7 @@ sub update_makefiles(@) replace_makefile_variable( $file, "PRIVATE_IDL_H_SRCS" ); replace_makefile_variable( $file, "PUBLIC_IDL_H_SRCS" ); replace_makefile_variable( $file, "IDL_TLB_SRCS" ); + replace_makefile_variable( $file, "XTEMPLATE_SRCS" ); replace_makefile_variable( $file, "SRCDIR_INCLUDES" ); replace_makefile_variable( $file, "EXTRASUBDIRS" ); } diff --git a/tools/makedep.c b/tools/makedep.c index f1b0a12..7818a2e 100644 --- a/tools/makedep.c +++ b/tools/makedep.c @@ -471,6 +471,28 @@ static FILE *open_include_file( INCL_FILE *pFile ) free( filename ); } + /* check for corresponding .x file in global includes */ + + if (strendswith( pFile->name, "tmpl.h" )) + { + if (top_src_dir) + filename = strmake( "%s/include/%.*s.x", + top_src_dir, strlen(pFile->name) - 2, pFile->name ); + else if (top_obj_dir) + filename = strmake( "%s/include/%.*s.x", + top_obj_dir, strlen(pFile->name) - 2, pFile->name ); + else + filename = NULL; + + if (filename && (file = fopen( filename, "r" ))) + { + pFile->sourcename = filename; + pFile->filename = strmake( "%s/include/%s", top_obj_dir, pFile->name ); + return file; + } + free( filename ); + } + /* now try in global includes */ if (top_obj_dir) { @@ -761,9 +783,10 @@ static void parse_file( INCL_FILE *pFile, int src ) return; } - /* don't try to open .tlb or .res files */ + /* don't try to open certain types of files */ if (strendswith( pFile->name, ".tlb" ) || - strendswith( pFile->name, ".res" )) + strendswith( pFile->name, ".res" ) || + strendswith( pFile->name, ".x" )) { pFile->filename = xstrdup( pFile->name ); return;
1
0
0
0
Huw Davies : advapi32: Fix incorrect pointer increment.
by Alexandre Julliard
05 May '11
05 May '11
Module: wine Branch: master Commit: e8859699e851e685b8d964e1e026eee093350c46 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e8859699e851e685b8d964e1e…
Author: Huw Davies <huw(a)codeweavers.com> Date: Thu May 5 12:11:20 2011 +0100 advapi32: Fix incorrect pointer increment. --- dlls/advapi32/lsa.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/advapi32/lsa.c b/dlls/advapi32/lsa.c index 4806216..385ace4 100644 --- a/dlls/advapi32/lsa.c +++ b/dlls/advapi32/lsa.c @@ -414,7 +414,7 @@ NTSTATUS WINAPI LsaLookupNames2( LSA_HANDLE policy, ULONG flags, ULONG count, (*sids)[i].Sid = sid; (*sids)[i].Use = use; - sid += sid_size; + sid = (SID *)((char *)sid + sid_size); sid_size_total -= sid_size; if (domain_size) {
1
0
0
0
Alexandre Julliard : user32: Catch bad pointer passed to SetSysColors.
by Alexandre Julliard
05 May '11
05 May '11
Module: wine Branch: master Commit: 666c40f398087466bd0cc2ff0f511bf7154f7708 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=666c40f398087466bd0cc2ff0…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu May 5 13:35:59 2011 +0200 user32: Catch bad pointer passed to SetSysColors. --- dlls/user32/sysparams.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/user32/sysparams.c b/dlls/user32/sysparams.c index dcf11ef..0bd1dd2 100644 --- a/dlls/user32/sysparams.c +++ b/dlls/user32/sysparams.c @@ -2927,6 +2927,8 @@ BOOL WINAPI SetSysColors( INT nChanges, const INT *lpSysColor, { int i; + if (IS_INTRESOURCE(lpSysColor)) return FALSE; /* stupid app passes a color instead of an array */ + for (i = 0; i < nChanges; i++) SYSPARAMS_SetSysColor( lpSysColor[i], lpColorValues[i] ); /* Send WM_SYSCOLORCHANGE message to all windows */
1
0
0
0
Alexandre Julliard : winex11: Fix check for desktop process in non-desktop mode.
by Alexandre Julliard
05 May '11
05 May '11
Module: wine Branch: master Commit: 57fc5e7fcc0168c63622f307fe46fc21a60f418d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=57fc5e7fcc0168c63622f307f…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu May 5 13:35:55 2011 +0200 winex11: Fix check for desktop process in non-desktop mode. --- dlls/winex11.drv/mouse.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c index 96d93e5..fdc92ab 100644 --- a/dlls/winex11.drv/mouse.c +++ b/dlls/winex11.drv/mouse.c @@ -1207,7 +1207,8 @@ BOOL CDECL X11DRV_ClipCursor( LPCRECT clip ) return TRUE; } - if (X11DRV_get_win_data( GetDesktopWindow() )) return TRUE; /* don't clip in the desktop process */ + if (GetWindowThreadProcessId( GetDesktopWindow(), NULL ) == GetCurrentThreadId()) + return TRUE; /* don't clip in the desktop process */ /* we are clipping if the clip rectangle is smaller than the screen */ if (grab_pointer && (clip->left > virtual_screen_rect.left ||
1
0
0
0
Alexandre Julliard : msvcp: Export the various floating point constants.
by Alexandre Julliard
05 May '11
05 May '11
Module: wine Branch: master Commit: acfdbd2ba52fdb2dc12d98d249ae07a2c0e381d7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=acfdbd2ba52fdb2dc12d98d24…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu May 5 12:34:20 2011 +0200 msvcp: Export the various floating point constants. --- dlls/msvcp100/msvcp100.spec | 34 ++++++++++++++-------------- dlls/msvcp60/msvcp60.spec | 32 +++++++++++++------------- dlls/msvcp70/msvcp70.spec | 34 ++++++++++++++-------------- dlls/msvcp71/msvcp71.spec | 34 ++++++++++++++-------------- dlls/msvcp80/msvcp80.spec | 34 ++++++++++++++-------------- dlls/msvcp90/math.c | 50 ++++++++++++++++++++++++++++++------------- dlls/msvcp90/msvcp90.spec | 34 ++++++++++++++-------------- 7 files changed, 136 insertions(+), 116 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=acfdbd2ba52fdb2dc12d9…
1
0
0
0
← Newer
1
...
75
76
77
78
79
80
81
...
95
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
Results per page:
10
25
50
100
200