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 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
838 discussions
Start a n
N
ew thread
Andrew Eikum : winmm: Close ACM stream when closing wave device.
by Alexandre Julliard
18 Jul '11
18 Jul '11
Module: wine Branch: master Commit: 2a58273fcdfffc773ce02fb06ca3fcaad5eca1be URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2a58273fcdfffc773ce02fb06…
Author: Andrew Eikum <aeikum(a)codeweavers.com> Date: Mon Jul 18 11:19:33 2011 -0500 winmm: Close ACM stream when closing wave device. --- dlls/winmm/waveform.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/dlls/winmm/waveform.c b/dlls/winmm/waveform.c index 48efb0f..5121bb7 100644 --- a/dlls/winmm/waveform.c +++ b/dlls/winmm/waveform.c @@ -1104,6 +1104,11 @@ static HRESULT WINMM_CloseDevice(WINMM_Device *device) device->stopped = TRUE; } + if(device->acm_handle){ + acmStreamClose(device->acm_handle, 0); + device->acm_handle = NULL; + } + IMMDevice_Release(device->device); device->device = NULL;
1
0
0
0
Andrew Eikum : mmdevapi: Use a sane default if no buffer size is requested.
by Alexandre Julliard
18 Jul '11
18 Jul '11
Module: wine Branch: master Commit: 80fd691e9e8f78f978ca0537875849ac9bf60313 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=80fd691e9e8f78f978ca05378…
Author: Andrew Eikum <aeikum(a)codeweavers.com> Date: Mon Jul 18 11:19:30 2011 -0500 mmdevapi: Use a sane default if no buffer size is requested. --- dlls/mmdevapi/tests/render.c | 9 +++++++++ dlls/winealsa.drv/mmdevdrv.c | 2 ++ dlls/winecoreaudio.drv/mmdevdrv.c | 2 ++ dlls/wineoss.drv/mmdevdrv.c | 2 ++ 4 files changed, 15 insertions(+), 0 deletions(-) diff --git a/dlls/mmdevapi/tests/render.c b/dlls/mmdevapi/tests/render.c index ad81709..4274e83 100644 --- a/dlls/mmdevapi/tests/render.c +++ b/dlls/mmdevapi/tests/render.c @@ -211,6 +211,15 @@ static void test_audioclient(void) hr = IAudioClient_Initialize(ac, AUDCLNT_SHAREMODE_SHARED, 0, 5000000, 0, NULL, NULL); ok(hr == E_POINTER, "Initialize with null format returns %08x\n", hr); + hr = IAudioClient_Initialize(ac, AUDCLNT_SHAREMODE_SHARED, 0, 0, 0, pwfx, NULL); + ok(hr == S_OK, "Initialize with 0 buffer size returns %08x\n", hr); + + IAudioClient_Release(ac); + + hr = IMMDevice_Activate(dev, &IID_IAudioClient, CLSCTX_INPROC_SERVER, + NULL, (void**)&ac); + ok(hr == S_OK, "Activation failed with %08x\n", hr); + hr = IAudioClient_Initialize(ac, AUDCLNT_SHAREMODE_SHARED, 0, 5000000, 0, pwfx, NULL); ok(hr == S_OK, "Valid Initialize returns %08x\n", hr); diff --git a/dlls/winealsa.drv/mmdevdrv.c b/dlls/winealsa.drv/mmdevdrv.c index 080887a..4d92b17 100644 --- a/dlls/winealsa.drv/mmdevdrv.c +++ b/dlls/winealsa.drv/mmdevdrv.c @@ -799,6 +799,8 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient *iface, goto exit; } + if(!duration) + duration = 300000; /* 0.03s */ This->bufsize_frames = ceil((duration / 10000000.) * fmt->nSamplesPerSec); This->local_buffer = HeapAlloc(GetProcessHeap(), 0, This->bufsize_frames * fmt->nBlockAlign); diff --git a/dlls/winecoreaudio.drv/mmdevdrv.c b/dlls/winecoreaudio.drv/mmdevdrv.c index 0f73095..fcb337d 100644 --- a/dlls/winecoreaudio.drv/mmdevdrv.c +++ b/dlls/winecoreaudio.drv/mmdevdrv.c @@ -862,6 +862,8 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient *iface, }else This->period_ms = MinimumPeriod / 10000; + if(!duration) + duration = 300000; /* 0.03s */ This->bufsize_frames = ceil(fmt->nSamplesPerSec * (duration / 10000000.)); if(This->dataflow == eCapture){ diff --git a/dlls/wineoss.drv/mmdevdrv.c b/dlls/wineoss.drv/mmdevdrv.c index ac684f7..0fd0364 100644 --- a/dlls/wineoss.drv/mmdevdrv.c +++ b/dlls/wineoss.drv/mmdevdrv.c @@ -819,6 +819,8 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient *iface, else This->period_us = DefaultPeriod / 10; + if(!duration) + duration = 300000; /* 0.03s */ This->bufsize_frames = ceil(fmt->nSamplesPerSec * (duration / 10000000.)); This->local_buffer = HeapAlloc(GetProcessHeap(), 0, This->bufsize_frames * fmt->nBlockAlign);
1
0
0
0
Adam Martinson : msxml3: Don't include libxml/parser.h twice.
by Alexandre Julliard
18 Jul '11
18 Jul '11
Module: wine Branch: master Commit: 9a30a29db51e5d88619c737239a3b12ceb777965 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9a30a29db51e5d88619c73723…
Author: Adam Martinson <amartinson(a)codeweavers.com> Date: Mon Jul 18 11:15:14 2011 -0500 msxml3: Don't include libxml/parser.h twice. --- dlls/msxml3/schema.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/dlls/msxml3/schema.c b/dlls/msxml3/schema.c index 883ab07..d6b9904 100644 --- a/dlls/msxml3/schema.c +++ b/dlls/msxml3/schema.c @@ -26,7 +26,6 @@ #include <assert.h> #include <stdarg.h> #ifdef HAVE_LIBXML2 -# include <libxml/parser.h> # include <libxml/xmlerror.h> # include <libxml/tree.h> # include <libxml/xmlschemas.h>
1
0
0
0
Jacek Caban : jscript: Properly handle aggregation attempt.
by Alexandre Julliard
18 Jul '11
18 Jul '11
Module: wine Branch: master Commit: 5b16e6e0fdb35e57a034fd5e6df61765ad11fa71 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5b16e6e0fdb35e57a034fd5e6…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Mon Jul 18 18:05:13 2011 +0200 jscript: Properly handle aggregation attempt. --- dlls/jscript/jscript.c | 5 +++++ dlls/jscript/tests/jscript.c | 13 +++++++++++++ 2 files changed, 18 insertions(+), 0 deletions(-) diff --git a/dlls/jscript/jscript.c b/dlls/jscript/jscript.c index 641c192..fb7fd8c 100644 --- a/dlls/jscript/jscript.c +++ b/dlls/jscript/jscript.c @@ -963,6 +963,11 @@ HRESULT WINAPI JScriptFactory_CreateInstance(IClassFactory *iface, IUnknown *pUn TRACE("(%p %s %p)\n", pUnkOuter, debugstr_guid(riid), ppv); + if(pUnkOuter) { + *ppv = NULL; + return CLASS_E_NOAGGREGATION; + } + lock_module(); ret = heap_alloc_zero(sizeof(*ret)); diff --git a/dlls/jscript/tests/jscript.c b/dlls/jscript/tests/jscript.c index 6d48799..67067b9 100644 --- a/dlls/jscript/tests/jscript.c +++ b/dlls/jscript/tests/jscript.c @@ -605,6 +605,18 @@ static void test_jscript_uninitializing(void) ok(!ref, "ref = %d\n", ref); } +static void test_aggregation(void) +{ + IUnknown *unk = (IUnknown*)0xdeadbeef; + HRESULT hres; + + hres = CoCreateInstance(&CLSID_JScript, (IUnknown*)0xdeadbeef, CLSCTX_INPROC_SERVER|CLSCTX_INPROC_HANDLER, + &IID_IUnknown, (void**)&unk); + ok(hres == CLASS_E_NOAGGREGATION || broken(E_INVALIDARG) /* win2k */, + "CoCreateInstance failed: %08x, expected CLASS_E_NOAGGREGATION\n", hres); + ok(!unk, "unk = %p\n", unk); +} + static BOOL check_jscript(void) { IActiveScriptProperty *script_prop; @@ -626,6 +638,7 @@ START_TEST(jscript) test_jscript(); test_jscript2(); test_jscript_uninitializing(); + test_aggregation(); }else { win_skip("Broken engine, probably too old\n"); }
1
0
0
0
Jacek Caban : vbscript: Added IActiveScriptParse stub implementation.
by Alexandre Julliard
18 Jul '11
18 Jul '11
Module: wine Branch: master Commit: cf30b6aea38df4e27e60908eb2332b0f3ddc4053 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cf30b6aea38df4e27e60908eb…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Mon Jul 18 16:57:41 2011 +0200 vbscript: Added IActiveScriptParse stub implementation. --- dlls/vbscript/vbscript.c | 69 ++++++++++++++++++++++++++++++++++++++++++++++ dlls/vbscript/vbscript.h | 1 + 2 files changed, 70 insertions(+), 0 deletions(-) diff --git a/dlls/vbscript/vbscript.c b/dlls/vbscript/vbscript.c index f82bc56..f0da4ed 100644 --- a/dlls/vbscript/vbscript.c +++ b/dlls/vbscript/vbscript.c @@ -59,6 +59,9 @@ static HRESULT WINAPI VBScript_QueryInterface(IActiveScript *iface, REFIID riid, }else if(IsEqualGUID(riid, &IID_IActiveScript)) { TRACE("(%p)->(IID_IActiveScript %p)\n", This, ppv); *ppv = &This->IActiveScript_iface; + }else if(IsEqualGUID(riid, &IID_IActiveScriptParse)) { + TRACE("(%p)->(IID_IActiveScriptParse %p)\n", This, ppv); + *ppv = &This->IActiveScriptParse_iface; }else { FIXME("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv); *ppv = NULL; @@ -208,6 +211,71 @@ static const IActiveScriptVtbl VBScriptVtbl = { VBScript_Clone }; +static inline VBScript *impl_from_IActiveScriptParse(IActiveScriptParse *iface) +{ + return CONTAINING_RECORD(iface, VBScript, IActiveScriptParse_iface); +} + +static HRESULT WINAPI VBScriptParse_QueryInterface(IActiveScriptParse *iface, REFIID riid, void **ppv) +{ + VBScript *This = impl_from_IActiveScriptParse(iface); + return IActiveScript_QueryInterface(&This->IActiveScript_iface, riid, ppv); +} + +static ULONG WINAPI VBScriptParse_AddRef(IActiveScriptParse *iface) +{ + VBScript *This = impl_from_IActiveScriptParse(iface); + return IActiveScript_AddRef(&This->IActiveScript_iface); +} + +static ULONG WINAPI VBScriptParse_Release(IActiveScriptParse *iface) +{ + VBScript *This = impl_from_IActiveScriptParse(iface); + return IActiveScript_Release(&This->IActiveScript_iface); +} + +static HRESULT WINAPI VBScriptParse_InitNew(IActiveScriptParse *iface) +{ + VBScript *This = impl_from_IActiveScriptParse(iface); + FIXME("(%p)\n", This); + return S_OK; +} + +static HRESULT WINAPI VBScriptParse_AddScriptlet(IActiveScriptParse *iface, + LPCOLESTR pstrDefaultName, LPCOLESTR pstrCode, LPCOLESTR pstrItemName, + LPCOLESTR pstrSubItemName, LPCOLESTR pstrEventName, LPCOLESTR pstrDelimiter, + CTXARG_T dwSourceContextCookie, ULONG ulStartingLineNumber, DWORD dwFlags, + BSTR *pbstrName, EXCEPINFO *pexcepinfo) +{ + VBScript *This = impl_from_IActiveScriptParse(iface); + FIXME("(%p)->(%s %s %s %s %s %s %s %u %x %p %p)\n", This, debugstr_w(pstrDefaultName), + debugstr_w(pstrCode), debugstr_w(pstrItemName), debugstr_w(pstrSubItemName), + debugstr_w(pstrEventName), debugstr_w(pstrDelimiter), wine_dbgstr_longlong(dwSourceContextCookie), + ulStartingLineNumber, dwFlags, pbstrName, pexcepinfo); + return E_NOTIMPL; +} + +static HRESULT WINAPI VBScriptParse_ParseScriptText(IActiveScriptParse *iface, + LPCOLESTR pstrCode, LPCOLESTR pstrItemName, IUnknown *punkContext, + LPCOLESTR pstrDelimiter, CTXARG_T dwSourceContextCookie, ULONG ulStartingLine, + DWORD dwFlags, VARIANT *pvarResult, EXCEPINFO *pexcepinfo) +{ + VBScript *This = impl_from_IActiveScriptParse(iface); + FIXME("(%p)->(%s %s %p %s %s %u %x %p %p)\n", This, debugstr_w(pstrCode), + debugstr_w(pstrItemName), punkContext, debugstr_w(pstrDelimiter), + wine_dbgstr_longlong(dwSourceContextCookie), ulStartingLine, dwFlags, pvarResult, pexcepinfo); + return E_NOTIMPL; +} + +static const IActiveScriptParseVtbl VBScriptParseVtbl = { + VBScriptParse_QueryInterface, + VBScriptParse_AddRef, + VBScriptParse_Release, + VBScriptParse_InitNew, + VBScriptParse_AddScriptlet, + VBScriptParse_ParseScriptText +}; + HRESULT WINAPI VBScriptFactory_CreateInstance(IClassFactory *iface, IUnknown *pUnkOuter, REFIID riid, void **ppv) { VBScript *ret; @@ -220,6 +288,7 @@ HRESULT WINAPI VBScriptFactory_CreateInstance(IClassFactory *iface, IUnknown *pU return E_OUTOFMEMORY; ret->IActiveScript_iface.lpVtbl = &VBScriptVtbl; + ret->IActiveScriptParse_iface.lpVtbl = &VBScriptParseVtbl; ret->ref = 1; diff --git a/dlls/vbscript/vbscript.h b/dlls/vbscript/vbscript.h index 3b2da9a..cd97e09 100644 --- a/dlls/vbscript/vbscript.h +++ b/dlls/vbscript/vbscript.h @@ -21,6 +21,7 @@ struct VBScript { IActiveScript IActiveScript_iface; + IActiveScriptParse IActiveScriptParse_iface; LONG ref; };
1
0
0
0
Jacek Caban : vbscript: Added stub VBScript object implementation.
by Alexandre Julliard
18 Jul '11
18 Jul '11
Module: wine Branch: master Commit: 03b8ad29cc587f5898c6540ba04cf4d27f4cd78d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=03b8ad29cc587f5898c6540ba…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Mon Jul 18 16:57:27 2011 +0200 vbscript: Added stub VBScript object implementation. --- dlls/vbscript/Makefile.in | 1 + dlls/vbscript/vbscript.c | 229 +++++++++++++++++++++++++++++++++++++++++ dlls/vbscript/vbscript.h | 43 ++++++++ dlls/vbscript/vbscript_main.c | 7 +- 4 files changed, 274 insertions(+), 6 deletions(-) diff --git a/dlls/vbscript/Makefile.in b/dlls/vbscript/Makefile.in index 3e8a3eb..2a90e46 100644 --- a/dlls/vbscript/Makefile.in +++ b/dlls/vbscript/Makefile.in @@ -1,6 +1,7 @@ MODULE = vbscript.dll C_SRCS = \ + vbscript.c \ vbscript_main.c RC_SRCS = vbscript.rc diff --git a/dlls/vbscript/vbscript.c b/dlls/vbscript/vbscript.c new file mode 100644 index 0000000..f82bc56 --- /dev/null +++ b/dlls/vbscript/vbscript.c @@ -0,0 +1,229 @@ +/* + * Copyright 2011 Jacek Caban for CodeWeavers + * + * 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 + */ + +#include "config.h" + +#include <stdarg.h> + +#define COBJMACROS + +#include "windef.h" +#include "winbase.h" +#include "ole2.h" + +#include "vbscript.h" + +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(vbscript); + +#ifdef _WIN64 + +#define CTXARG_T DWORDLONG +#define IActiveScriptParseVtbl IActiveScriptParse64Vtbl + +#else + +#define CTXARG_T DWORD +#define IActiveScriptParseVtbl IActiveScriptParse32Vtbl + +#endif + +static inline VBScript *impl_from_IActiveScript(IActiveScript *iface) +{ + return CONTAINING_RECORD(iface, VBScript, IActiveScript_iface); +} + +static HRESULT WINAPI VBScript_QueryInterface(IActiveScript *iface, REFIID riid, void **ppv) +{ + VBScript *This = impl_from_IActiveScript(iface); + + if(IsEqualGUID(riid, &IID_IUnknown)) { + TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv); + *ppv = &This->IActiveScript_iface; + }else if(IsEqualGUID(riid, &IID_IActiveScript)) { + TRACE("(%p)->(IID_IActiveScript %p)\n", This, ppv); + *ppv = &This->IActiveScript_iface; + }else { + FIXME("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv); + *ppv = NULL; + return E_NOINTERFACE; + } + + IUnknown_AddRef((IUnknown*)*ppv); + return S_OK; +} + +static ULONG WINAPI VBScript_AddRef(IActiveScript *iface) +{ + VBScript *This = impl_from_IActiveScript(iface); + LONG ref = InterlockedIncrement(&This->ref); + + TRACE("(%p) ref=%d\n", This, ref); + + return ref; +} + +static ULONG WINAPI VBScript_Release(IActiveScript *iface) +{ + VBScript *This = impl_from_IActiveScript(iface); + LONG ref = InterlockedDecrement(&This->ref); + + TRACE("(%p) ref=%d\n", iface, ref); + + if(!ref) + heap_free(This); + + return ref; +} + +static HRESULT WINAPI VBScript_SetScriptSite(IActiveScript *iface, IActiveScriptSite *pass) +{ + VBScript *This = impl_from_IActiveScript(iface); + FIXME("(%p)->(%p)\n", This, pass); + return S_OK; +} + +static HRESULT WINAPI VBScript_GetScriptSite(IActiveScript *iface, REFIID riid, + void **ppvObject) +{ + VBScript *This = impl_from_IActiveScript(iface); + FIXME("(%p)->()\n", This); + return E_NOTIMPL; +} + +static HRESULT WINAPI VBScript_SetScriptState(IActiveScript *iface, SCRIPTSTATE ss) +{ + VBScript *This = impl_from_IActiveScript(iface); + FIXME("(%p)->(%d)\n", This, ss); + return S_OK; +} + +static HRESULT WINAPI VBScript_GetScriptState(IActiveScript *iface, SCRIPTSTATE *pssState) +{ + VBScript *This = impl_from_IActiveScript(iface); + FIXME("(%p)->(%p)\n", This, pssState); + return E_NOTIMPL; +} + +static HRESULT WINAPI VBScript_Close(IActiveScript *iface) +{ + VBScript *This = impl_from_IActiveScript(iface); + FIXME("(%p)->()\n", This); + return E_NOTIMPL; +} + +static HRESULT WINAPI VBScript_AddNamedItem(IActiveScript *iface, LPCOLESTR pstrName, DWORD dwFlags) +{ + VBScript *This = impl_from_IActiveScript(iface); + FIXME("(%p)->(%s %x)\n", This, debugstr_w(pstrName), dwFlags); + return S_OK; +} + +static HRESULT WINAPI VBScript_AddTypeLib(IActiveScript *iface, REFGUID rguidTypeLib, + DWORD dwMajor, DWORD dwMinor, DWORD dwFlags) +{ + VBScript *This = impl_from_IActiveScript(iface); + FIXME("(%p)->()\n", This); + return E_NOTIMPL; +} + +static HRESULT WINAPI VBScript_GetScriptDispatch(IActiveScript *iface, LPCOLESTR pstrItemName, IDispatch **ppdisp) +{ + VBScript *This = impl_from_IActiveScript(iface); + FIXME("(%p)->(%p)\n", This, ppdisp); + return E_NOTIMPL; +} + +static HRESULT WINAPI VBScript_GetCurrentScriptThreadID(IActiveScript *iface, + SCRIPTTHREADID *pstridThread) +{ + VBScript *This = impl_from_IActiveScript(iface); + FIXME("(%p)->()\n", This); + return E_NOTIMPL; +} + +static HRESULT WINAPI VBScript_GetScriptThreadID(IActiveScript *iface, + DWORD dwWin32ThreadId, SCRIPTTHREADID *pstidThread) +{ + VBScript *This = impl_from_IActiveScript(iface); + FIXME("(%p)->()\n", This); + return E_NOTIMPL; +} + +static HRESULT WINAPI VBScript_GetScriptThreadState(IActiveScript *iface, + SCRIPTTHREADID stidThread, SCRIPTTHREADSTATE *pstsState) +{ + VBScript *This = impl_from_IActiveScript(iface); + FIXME("(%p)->()\n", This); + return E_NOTIMPL; +} + +static HRESULT WINAPI VBScript_InterruptScriptThread(IActiveScript *iface, + SCRIPTTHREADID stidThread, const EXCEPINFO *pexcepinfo, DWORD dwFlags) +{ + VBScript *This = impl_from_IActiveScript(iface); + FIXME("(%p)->()\n", This); + return E_NOTIMPL; +} + +static HRESULT WINAPI VBScript_Clone(IActiveScript *iface, IActiveScript **ppscript) +{ + VBScript *This = impl_from_IActiveScript(iface); + FIXME("(%p)->()\n", This); + return E_NOTIMPL; +} + +static const IActiveScriptVtbl VBScriptVtbl = { + VBScript_QueryInterface, + VBScript_AddRef, + VBScript_Release, + VBScript_SetScriptSite, + VBScript_GetScriptSite, + VBScript_SetScriptState, + VBScript_GetScriptState, + VBScript_Close, + VBScript_AddNamedItem, + VBScript_AddTypeLib, + VBScript_GetScriptDispatch, + VBScript_GetCurrentScriptThreadID, + VBScript_GetScriptThreadID, + VBScript_GetScriptThreadState, + VBScript_InterruptScriptThread, + VBScript_Clone +}; + +HRESULT WINAPI VBScriptFactory_CreateInstance(IClassFactory *iface, IUnknown *pUnkOuter, REFIID riid, void **ppv) +{ + VBScript *ret; + HRESULT hres; + + TRACE("(%p %s %p)\n", pUnkOuter, debugstr_guid(riid), ppv); + + ret = heap_alloc_zero(sizeof(*ret)); + if(!ret) + return E_OUTOFMEMORY; + + ret->IActiveScript_iface.lpVtbl = &VBScriptVtbl; + + ret->ref = 1; + + hres = IActiveScript_QueryInterface(&ret->IActiveScript_iface, riid, ppv); + IActiveScript_Release(&ret->IActiveScript_iface); + return hres; +} diff --git a/dlls/vbscript/vbscript.h b/dlls/vbscript/vbscript.h new file mode 100644 index 0000000..3b2da9a --- /dev/null +++ b/dlls/vbscript/vbscript.h @@ -0,0 +1,43 @@ +/* + * Copyright 2011 Jacek Caban for CodeWeavers + * + * 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 + */ + +#include "activscp.h" +#include "vbscript_classes.h" + +struct VBScript { + IActiveScript IActiveScript_iface; + + LONG ref; +}; + +HRESULT WINAPI VBScriptFactory_CreateInstance(IClassFactory*,IUnknown*,REFIID,void**); + +static inline void *heap_alloc(size_t len) +{ + return HeapAlloc(GetProcessHeap(), 0, len); +} + +static inline void *heap_alloc_zero(size_t len) +{ + return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, len); +} + +static inline BOOL heap_free(void *mem) +{ + return HeapFree(GetProcessHeap(), 0, mem); +} diff --git a/dlls/vbscript/vbscript_main.c b/dlls/vbscript/vbscript_main.c index 50e4eb7..53f2841 100644 --- a/dlls/vbscript/vbscript_main.c +++ b/dlls/vbscript/vbscript_main.c @@ -28,6 +28,7 @@ #include "ole2.h" #include "rpcproxy.h" +#include "vbscript.h" #include "vbscript_classes.h" #include "wine/debug.h" @@ -36,12 +37,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(vbscript); static HINSTANCE vbscript_hinstance; -static HRESULT WINAPI VBScriptFactory_CreateInstance(IClassFactory *iface, IUnknown *pUnkOuter, REFIID riid, void **ppv) -{ - FIXME("(%p %s %p)\n", pUnkOuter, debugstr_guid(riid), ppv); - return E_NOINTERFACE; -} - static HRESULT WINAPI ClassFactory_QueryInterface(IClassFactory *iface, REFIID riid, void **ppv) { *ppv = NULL;
1
0
0
0
Alexandre Julliard : winex11: Remove the GetDIBits implementation.
by Alexandre Julliard
18 Jul '11
18 Jul '11
Module: wine Branch: master Commit: dbd0b4542fb0112a5444f247b1f13bcac0342c14 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=dbd0b4542fb0112a5444f247b…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Jul 18 17:11:06 2011 +0200 winex11: Remove the GetDIBits implementation. --- dlls/winex11.drv/dib.c | 170 +----------------------------------------------- 1 files changed, 1 insertions(+), 169 deletions(-) diff --git a/dlls/winex11.drv/dib.c b/dlls/winex11.drv/dib.c index a1176d9..7274f0c 100644 --- a/dlls/winex11.drv/dib.c +++ b/dlls/winex11.drv/dib.c @@ -175,17 +175,6 @@ static int X11DRV_DIB_GetDIBWidthBytes( int width, int depth ) /*********************************************************************** - * X11DRV_DIB_GetDIBImageBytes - * - * Return the number of bytes used to hold the image in a DIB bitmap. - */ -static int X11DRV_DIB_GetDIBImageBytes( int width, int height, int depth ) -{ - return X11DRV_DIB_GetDIBWidthBytes( width, depth ) * abs( height ); -} - - -/*********************************************************************** * bitmap_info_size * * Return the size of the bitmap info structure including color table. @@ -4083,163 +4072,6 @@ INT X11DRV_SetDIBits( PHYSDEV dev, HBITMAP hbitmap, UINT startscan, } /*********************************************************************** - * GetDIBits (X11DRV.@) - */ -INT X11DRV_GetDIBits( PHYSDEV dev, HBITMAP hbitmap, UINT startscan, UINT lines, - LPVOID bits, BITMAPINFO *info, UINT coloruse ) -{ - X11DRV_PDEVICE *physDev = get_x11drv_dev( dev ); - X_PHYSBITMAP *physBitmap = X11DRV_get_phys_bitmap( hbitmap ); - DIBSECTION dib; - X11DRV_DIB_IMAGEBITS_DESCR descr; - PALETTEENTRY palette[256]; - size_t obj_size; - int height; - LONG width, tempHeight; - int bitmap_type; - BOOL core_header; - void* colorPtr; - static const PALETTEENTRY peBlack = {0,0,0,0}; - static const PALETTEENTRY peWhite = {255,255,255,0}; - - if (!physBitmap) return 0; - if (!(obj_size = GetObjectW( hbitmap, sizeof(dib), &dib ))) return 0; - - bitmap_type = DIB_GetBitmapInfo( (BITMAPINFOHEADER*)info, &width, &tempHeight, &descr.infoBpp, &descr.compression); - if (bitmap_type == -1) - { - ERR("Invalid bitmap\n"); - return 0; - } - - if (physBitmap->pixmap_depth > 1) - { - GetPaletteEntries( GetCurrentObject( dev->hdc, OBJ_PAL ), 0, 256, palette ); - } - else - { - palette[0] = peBlack; - palette[1] = peWhite; - } - - descr.lines = tempHeight; - core_header = (bitmap_type == 0); - colorPtr = (LPBYTE) info + (WORD) info->bmiHeader.biSize; - - TRACE("%u scanlines of (%i,%i) -> (%i,%i) starting from %u\n", - lines, dib.dsBm.bmWidth, dib.dsBm.bmHeight, width, descr.lines, startscan); - - if( lines > dib.dsBm.bmHeight ) lines = dib.dsBm.bmHeight; - - height = descr.lines; - if (height < 0) height = -height; - if( lines > height ) lines = height; - /* Top-down images have a negative biHeight, the scanlines of these images - * were inverted in X11DRV_DIB_GetImageBits_xx - * To prevent this we simply change the sign of lines - * (the number of scan lines to copy). - * Negative lines are correctly handled by X11DRV_DIB_GetImageBits_xx. - */ - if( descr.lines < 0 && lines > 0) lines = -lines; - - if( startscan >= dib.dsBm.bmHeight ) return 0; - - descr.colorMap = NULL; - - switch (descr.infoBpp) - { - case 1: - case 4: - case 8: - descr.rMask= descr.gMask = descr.bMask = 0; - if(coloruse == DIB_RGB_COLORS) - descr.colorMap = colorPtr; - else { - int num_colors = 1 << descr.infoBpp, i; - RGBQUAD *rgb; - COLORREF colref; - WORD *index = colorPtr; - descr.colorMap = rgb = HeapAlloc(GetProcessHeap(), 0, num_colors * sizeof(RGBQUAD)); - for(i = 0; i < num_colors; i++, rgb++, index++) { - colref = X11DRV_PALETTE_ToLogical(physDev, X11DRV_PALETTE_ToPhysical(physDev, PALETTEINDEX(*index))); - rgb->rgbRed = GetRValue(colref); - rgb->rgbGreen = GetGValue(colref); - rgb->rgbBlue = GetBValue(colref); - rgb->rgbReserved = 0; - } - } - break; - case 15: - case 16: - descr.rMask = (descr.compression == BI_BITFIELDS) ? *(const DWORD *)info->bmiColors : 0x7c00; - descr.gMask = (descr.compression == BI_BITFIELDS) ? *((const DWORD *)info->bmiColors + 1) : 0x03e0; - descr.bMask = (descr.compression == BI_BITFIELDS) ? *((const DWORD *)info->bmiColors + 2) : 0x001f; - break; - case 24: - case 32: - descr.rMask = (descr.compression == BI_BITFIELDS) ? *(const DWORD *)info->bmiColors : 0xff0000; - descr.gMask = (descr.compression == BI_BITFIELDS) ? *((const DWORD *)info->bmiColors + 1) : 0x00ff00; - descr.bMask = (descr.compression == BI_BITFIELDS) ? *((const DWORD *)info->bmiColors + 2) : 0x0000ff; - break; - } - - descr.physDev = physDev; - descr.palentry = palette; - descr.bits = bits; - descr.image = physBitmap->image; - descr.infoWidth = width; - descr.lines = lines; - descr.depth = physBitmap->pixmap_depth; - descr.shifts = physBitmap->trueColor ? &physBitmap->pixmap_color_shifts : NULL; - descr.drawable = physBitmap->pixmap; - descr.gc = get_bitmap_gc(physBitmap->pixmap_depth); - descr.width = dib.dsBm.bmWidth; - descr.height = dib.dsBm.bmHeight; - descr.xDest = 0; - descr.yDest = 0; - descr.xSrc = 0; - descr.sizeImage = core_header ? 0 : info->bmiHeader.biSizeImage; - descr.physBitmap = physBitmap; - - if (descr.lines > 0) - { - descr.ySrc = (descr.height-1) - (startscan + (lines-1)); - } - else - { - descr.ySrc = startscan; - } - descr.shm_mode = physBitmap->shm_mode; - descr.dibpitch = (((descr.infoWidth * descr.infoBpp + 31) &~31) / 8); - - X11DRV_DIB_Lock( physBitmap, DIB_Status_GdiMod ); - X11DRV_DIB_GetImageBits( &descr ); - X11DRV_DIB_Unlock( physBitmap, TRUE ); - - if(!core_header && info->bmiHeader.biSizeImage == 0) /* Fill in biSizeImage */ - info->bmiHeader.biSizeImage = X11DRV_DIB_GetDIBImageBytes( descr.infoWidth, - descr.lines, - descr.infoBpp); - - if (descr.compression == BI_BITFIELDS) - { - *(DWORD *)info->bmiColors = descr.rMask; - *((DWORD *)info->bmiColors + 1) = descr.gMask; - *((DWORD *)info->bmiColors + 2) = descr.bMask; - } - else if (!core_header) - { - /* if RLE or JPEG compression were supported, - * this line would be invalid. */ - info->bmiHeader.biCompression = 0; - } - - if(descr.colorMap != colorPtr) - HeapFree(GetProcessHeap(), 0, descr.colorMap); - return lines; -} - -/*********************************************************************** * X11DRV_DIB_DoCopyDIBSection */ static void X11DRV_DIB_DoCopyDIBSection(X_PHYSBITMAP *physBitmap, BOOL toDIB, @@ -4761,7 +4593,7 @@ HBITMAP X11DRV_CreateDIBSection( PHYSDEV dev, HBITMAP hbitmap, const BITMAPINFO Bool pixmaps; #endif - DIB_GetBitmapInfo( &bmi->bmiHeader, &w, &h, &bpp, &compr ); + if (DIB_GetBitmapInfo( &bmi->bmiHeader, &w, &h, &bpp, &compr ) == -1) return 0; if (!(physBitmap = X11DRV_init_phys_bitmap( hbitmap ))) return 0; if (h < 0) physBitmap->topdown = TRUE;
1
0
0
0
Alexandre Julliard : gdi32: Remove the GetDIBits entry point from the graphics driver.
by Alexandre Julliard
18 Jul '11
18 Jul '11
Module: wine Branch: master Commit: b01eb195114f69884d894d11c1c6a73063b0d12b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b01eb195114f69884d894d11c…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Jul 18 17:07:51 2011 +0200 gdi32: Remove the GetDIBits entry point from the graphics driver. --- dlls/gdi32/bitmap.c | 7 ------- dlls/gdi32/dibdrv/dc.c | 1 - dlls/gdi32/driver.c | 1 - dlls/gdi32/enhmfdrv/init.c | 1 - dlls/gdi32/gdi_private.h | 1 - dlls/gdi32/mfdrv/init.c | 1 - dlls/wineps.drv/init.c | 1 - dlls/winex11.drv/init.c | 1 - dlls/winex11.drv/x11drv.h | 2 -- include/wine/gdi_driver.h | 3 +-- 10 files changed, 1 insertions(+), 18 deletions(-) diff --git a/dlls/gdi32/bitmap.c b/dlls/gdi32/bitmap.c index 36a04a7..0c745d9 100644 --- a/dlls/gdi32/bitmap.c +++ b/dlls/gdi32/bitmap.c @@ -79,13 +79,6 @@ LONG nulldrv_SetBitmapBits( HBITMAP bitmap, const void *bits, LONG size ) return size; } -INT nulldrv_GetDIBits( PHYSDEV dev, HBITMAP bitmap, UINT start, UINT lines, LPVOID bits, - BITMAPINFO *info, UINT coloruse ) -{ - /* FIXME: transfer bits from bmp->bitmap.bmBits */ - return 0; -} - INT nulldrv_SetDIBits( PHYSDEV dev, HBITMAP bitmap, UINT start, UINT lines, const void *bits, const BITMAPINFO *info, UINT coloruse ) { diff --git a/dlls/gdi32/dibdrv/dc.c b/dlls/gdi32/dibdrv/dc.c index 1122579..6c783e8 100644 --- a/dlls/gdi32/dibdrv/dc.c +++ b/dlls/gdi32/dibdrv/dc.c @@ -470,7 +470,6 @@ const DC_FUNCTIONS dib_driver = NULL, /* pGdiComment */ NULL, /* pGetBitmapBits */ NULL, /* pGetCharWidth */ - NULL, /* pGetDIBits */ NULL, /* pGetDeviceCaps */ NULL, /* pGetDeviceGammaRamp */ NULL, /* pGetICMProfile */ diff --git a/dlls/gdi32/driver.c b/dlls/gdi32/driver.c index 6cdf35d..0c26839 100644 --- a/dlls/gdi32/driver.c +++ b/dlls/gdi32/driver.c @@ -709,7 +709,6 @@ const DC_FUNCTIONS null_driver = nulldrv_GdiComment, /* pGdiComment */ nulldrv_GetBitmapBits, /* pGetBitmapBits */ nulldrv_GetCharWidth, /* pGetCharWidth */ - nulldrv_GetDIBits, /* pGetDIBits */ nulldrv_GetDeviceCaps, /* pGetDeviceCaps */ nulldrv_GetDeviceGammaRamp, /* pGetDeviceGammaRamp */ nulldrv_GetICMProfile, /* pGetICMProfile */ diff --git a/dlls/gdi32/enhmfdrv/init.c b/dlls/gdi32/enhmfdrv/init.c index e7cbf2e..8d8e326 100644 --- a/dlls/gdi32/enhmfdrv/init.c +++ b/dlls/gdi32/enhmfdrv/init.c @@ -73,7 +73,6 @@ static const DC_FUNCTIONS EMFDRV_Funcs = EMFDRV_GdiComment, /* pGdiComment */ NULL, /* pGetBitmapBits */ NULL, /* pGetCharWidth */ - NULL, /* pGetDIBits */ EMFDRV_GetDeviceCaps, /* pGetDeviceCaps */ NULL, /* pGetDeviceGammaRamp */ NULL, /* pGetICMProfile */ diff --git a/dlls/gdi32/gdi_private.h b/dlls/gdi32/gdi_private.h index 10bfc20..7fa14d3 100644 --- a/dlls/gdi32/gdi_private.h +++ b/dlls/gdi32/gdi_private.h @@ -480,7 +480,6 @@ extern BOOL nulldrv_FillRgn( PHYSDEV dev, HRGN rgn, HBRUSH brush ) DECLSPEC_HIDD extern BOOL nulldrv_FlattenPath( PHYSDEV dev ) DECLSPEC_HIDDEN; extern BOOL nulldrv_FrameRgn( PHYSDEV dev, HRGN rgn, HBRUSH brush, INT width, INT height ) DECLSPEC_HIDDEN; extern LONG nulldrv_GetBitmapBits( HBITMAP bitmap, void *bits, LONG size ) DECLSPEC_HIDDEN; -extern INT nulldrv_GetDIBits( PHYSDEV dev, HBITMAP bitmap, UINT start, UINT lines, LPVOID bits, BITMAPINFO *info, UINT coloruse ) DECLSPEC_HIDDEN; extern COLORREF nulldrv_GetNearestColor( PHYSDEV dev, COLORREF color ) DECLSPEC_HIDDEN; extern INT nulldrv_IntersectClipRect( PHYSDEV dev, INT left, INT top, INT right, INT bottom ) DECLSPEC_HIDDEN; extern BOOL nulldrv_InvertRgn( PHYSDEV dev, HRGN rgn ) DECLSPEC_HIDDEN; diff --git a/dlls/gdi32/mfdrv/init.c b/dlls/gdi32/mfdrv/init.c index 4685470..65487fd 100644 --- a/dlls/gdi32/mfdrv/init.c +++ b/dlls/gdi32/mfdrv/init.c @@ -117,7 +117,6 @@ static const DC_FUNCTIONS MFDRV_Funcs = NULL, /* pGdiComment */ NULL, /* pGetBitmapBits */ NULL, /* pGetCharWidth */ - NULL, /* pGetDIBits */ MFDRV_GetDeviceCaps, /* pGetDeviceCaps */ NULL, /* pGetDeviceGammaRamp */ NULL, /* pGetICMProfile */ diff --git a/dlls/wineps.drv/init.c b/dlls/wineps.drv/init.c index 5a1af9c..a45cf86 100644 --- a/dlls/wineps.drv/init.c +++ b/dlls/wineps.drv/init.c @@ -839,7 +839,6 @@ static const struct gdi_dc_funcs psdrv_funcs = NULL, /* pGdiComment */ NULL, /* pGetBitmapBits */ PSDRV_GetCharWidth, /* pGetCharWidth */ - NULL, /* pGetDIBits */ PSDRV_GetDeviceCaps, /* pGetDeviceCaps */ NULL, /* pGetDeviceGammaRamp */ NULL, /* pGetICMProfile */ diff --git a/dlls/winex11.drv/init.c b/dlls/winex11.drv/init.c index 2541df0..4e374c7 100644 --- a/dlls/winex11.drv/init.c +++ b/dlls/winex11.drv/init.c @@ -482,7 +482,6 @@ static const struct gdi_dc_funcs x11drv_funcs = NULL, /* pGdiComment */ X11DRV_GetBitmapBits, /* pGetBitmapBits */ X11DRV_GetCharWidth, /* pGetCharWidth */ - X11DRV_GetDIBits, /* pGetDIBits */ X11DRV_GetDeviceCaps, /* pGetDeviceCaps */ X11DRV_GetDeviceGammaRamp, /* pGetDeviceGammaRamp */ X11DRV_GetICMProfile, /* pGetICMProfile */ diff --git a/dlls/winex11.drv/x11drv.h b/dlls/winex11.drv/x11drv.h index 5c98d2e..1729546 100644 --- a/dlls/winex11.drv/x11drv.h +++ b/dlls/winex11.drv/x11drv.h @@ -201,8 +201,6 @@ extern BOOL X11DRV_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags, const RECT extern LONG X11DRV_GetBitmapBits( HBITMAP hbitmap, void *bits, LONG count ) DECLSPEC_HIDDEN; extern BOOL X11DRV_GetCharWidth( PHYSDEV dev, UINT firstChar, UINT lastChar, LPINT buffer ) DECLSPEC_HIDDEN; extern BOOL X11DRV_GetDeviceGammaRamp( PHYSDEV dev, LPVOID ramp ) DECLSPEC_HIDDEN; -extern INT X11DRV_GetDIBits( PHYSDEV dev, HBITMAP hbitmap, UINT startscan, UINT lines, - LPVOID bits, BITMAPINFO *info, UINT coloruse ) DECLSPEC_HIDDEN; extern BOOL X11DRV_GetICMProfile( PHYSDEV dev, LPDWORD size, LPWSTR filename ) DECLSPEC_HIDDEN; extern DWORD X11DRV_GetImage( PHYSDEV dev, HBITMAP hbitmap, BITMAPINFO *info, struct gdi_image_bits *bits, const RECT *rect ) DECLSPEC_HIDDEN; diff --git a/include/wine/gdi_driver.h b/include/wine/gdi_driver.h index 811cf80..2c05d82 100644 --- a/include/wine/gdi_driver.h +++ b/include/wine/gdi_driver.h @@ -92,7 +92,6 @@ struct gdi_dc_funcs BOOL (*pGdiComment)(PHYSDEV,UINT,CONST BYTE*); LONG (*pGetBitmapBits)(HBITMAP,void*,LONG); BOOL (*pGetCharWidth)(PHYSDEV,UINT,UINT,LPINT); - INT (*pGetDIBits)(PHYSDEV,HBITMAP,UINT,UINT,LPVOID,BITMAPINFO*,UINT); INT (*pGetDeviceCaps)(PHYSDEV,INT); BOOL (*pGetDeviceGammaRamp)(PHYSDEV,LPVOID); BOOL (*pGetICMProfile)(PHYSDEV,LPDWORD,LPWSTR); @@ -193,7 +192,7 @@ struct gdi_dc_funcs }; /* increment this when you change the DC function table */ -#define WINE_GDI_DRIVER_VERSION 3 +#define WINE_GDI_DRIVER_VERSION 4 static inline PHYSDEV get_physdev_entry_point( PHYSDEV dev, size_t offset ) {
1
0
0
0
Alexandre Julliard : gdi32: Move a couple of rectangle helper functions to the header.
by Alexandre Julliard
18 Jul '11
18 Jul '11
Module: wine Branch: master Commit: ba168763b2f3e6d06714e4f60b8ad70bad6f6d9d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ba168763b2f3e6d06714e4f60…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Jul 18 16:50:25 2011 +0200 gdi32: Move a couple of rectangle helper functions to the header. --- dlls/gdi32/bitblt.c | 17 ----------------- dlls/gdi32/dib.c | 8 -------- dlls/gdi32/gdi_private.h | 17 +++++++++++++++++ 3 files changed, 17 insertions(+), 25 deletions(-) diff --git a/dlls/gdi32/bitblt.c b/dlls/gdi32/bitblt.c index da22507..8bd404c 100644 --- a/dlls/gdi32/bitblt.c +++ b/dlls/gdi32/bitblt.c @@ -47,23 +47,6 @@ static inline void swap_ints( int *i, int *j ) *j = tmp; } -static inline BOOL intersect_rect( RECT *dst, const RECT *src1, const RECT *src2 ) -{ - dst->left = max( src1->left, src2->left ); - dst->top = max( src1->top, src2->top ); - dst->right = min( src1->right, src2->right ); - dst->bottom = min( src1->bottom, src2->bottom ); - return (dst->left < dst->right && dst->top < dst->bottom); -} - -static inline void offset_rect( RECT *rect, int offset_x, int offset_y ) -{ - rect->left += offset_x; - rect->top += offset_y; - rect->right += offset_x; - rect->bottom += offset_y; -} - static void get_vis_rectangles( DC *dc_dst, struct bitblt_coords *dst, DC *dc_src, struct bitblt_coords *src ) { diff --git a/dlls/gdi32/dib.c b/dlls/gdi32/dib.c index fd9dfa7..1aa867b 100644 --- a/dlls/gdi32/dib.c +++ b/dlls/gdi32/dib.c @@ -72,14 +72,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(bitmap); -static inline void offset_rect( RECT *rect, int offset_x, int offset_y ) -{ - rect->left += offset_x; - rect->top += offset_y; - rect->right += offset_x; - rect->bottom += offset_y; -} - /* Some of the following helper functions are duplicated in dlls/x11drv/dib.c diff --git a/dlls/gdi32/gdi_private.h b/dlls/gdi32/gdi_private.h index 8c3e9ac..10bfc20 100644 --- a/dlls/gdi32/gdi_private.h +++ b/dlls/gdi32/gdi_private.h @@ -526,4 +526,21 @@ BOOL WINAPI FontIsLinked(HDC); BOOL WINAPI SetVirtualResolution(HDC hdc, DWORD horz_res, DWORD vert_res, DWORD horz_size, DWORD vert_size); +static inline BOOL intersect_rect( RECT *dst, const RECT *src1, const RECT *src2 ) +{ + dst->left = max( src1->left, src2->left ); + dst->top = max( src1->top, src2->top ); + dst->right = min( src1->right, src2->right ); + dst->bottom = min( src1->bottom, src2->bottom ); + return (dst->left < dst->right && dst->top < dst->bottom); +} + +static inline void offset_rect( RECT *rect, int offset_x, int offset_y ) +{ + rect->left += offset_x; + rect->top += offset_y; + rect->right += offset_x; + rect->bottom += offset_y; +} + #endif /* __WINE_GDI_PRIVATE_H */
1
0
0
0
Huw Davies : gdi32: Implement GetDIBits using the GetImage driver function.
by Alexandre Julliard
18 Jul '11
18 Jul '11
Module: wine Branch: master Commit: 103719e9e97379c558b53b54015b253e6eb42dbb URL:
http://source.winehq.org/git/wine.git/?a=commit;h=103719e9e97379c558b53b540…
Author: Huw Davies <huw(a)codeweavers.com> Date: Mon Jul 18 15:27:44 2011 +0100 gdi32: Implement GetDIBits using the GetImage driver function. --- dlls/gdi32/dib.c | 370 +++++++++++++-------------------------------- dlls/gdi32/tests/bitmap.c | 1 - 2 files changed, 107 insertions(+), 264 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=103719e9e97379c558b53…
1
0
0
0
← Newer
1
...
36
37
38
39
40
41
42
...
84
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
Results per page:
10
25
50
100
200