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
December 2008
----- 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
1225 discussions
Start a n
N
ew thread
Alistair Leslie-Hughes : mshtml: Add support for V_I4 in IHTMLStyle put_zIndex.
by Alexandre Julliard
10 Dec '08
10 Dec '08
Module: wine Branch: master Commit: a7fccdaaf09f5126a686b0bc7d040f937192c4aa URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a7fccdaaf09f5126a686b0bc7…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Wed Dec 10 11:42:08 2008 +1100 mshtml: Add support for V_I4 in IHTMLStyle put_zIndex. --- dlls/mshtml/htmlstyle.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/dlls/mshtml/htmlstyle.c b/dlls/mshtml/htmlstyle.c index ed0c27f..4d7fd1a 100644 --- a/dlls/mshtml/htmlstyle.c +++ b/dlls/mshtml/htmlstyle.c @@ -1716,6 +1716,13 @@ static HRESULT WINAPI HTMLStyle_put_zIndex(IHTMLStyle *iface, VARIANT v) switch(V_VT(&v)) { case VT_BSTR: return set_style_attr(This, STYLEID_Z_INDEX, V_BSTR(&v), 0); + case VT_I4: { + WCHAR value[14]; + static const WCHAR format[] = {'%','d',0}; + + wsprintfW(value, format, V_I4(&v)); + return set_style_attr(This, STYLEID_Z_INDEX, value, 0); + } default: FIXME("unimplemented vt %d\n", V_VT(&v)); return E_NOTIMPL;
1
0
0
0
Andrew Nguyen : jscript: Implement the String.sup() method.
by Alexandre Julliard
10 Dec '08
10 Dec '08
Module: wine Branch: master Commit: abedd774fbbf055692814492235d299ce9c4ad3c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=abedd774fbbf0556928144922…
Author: Andrew Nguyen <arethusa26(a)gmail.com> Date: Wed Dec 10 03:07:46 2008 -0600 jscript: Implement the String.sup() method. --- dlls/jscript/string.c | 4 ++-- dlls/jscript/tests/api.js | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/dlls/jscript/string.c b/dlls/jscript/string.c index c0ee311..eeceb1f 100644 --- a/dlls/jscript/string.c +++ b/dlls/jscript/string.c @@ -1089,8 +1089,8 @@ static HRESULT String_substr(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARA static HRESULT String_sup(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS *dp, VARIANT *retv, jsexcept_t *ei, IServiceProvider *sp) { - FIXME("\n"); - return E_NOTIMPL; + static const WCHAR suptagW[] = {'S','U','P',0}; + return do_attributeless_tag_format(dispex, lcid, flags, dp, retv, ei, sp, suptagW); } static HRESULT String_toLowerCase(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS *dp, diff --git a/dlls/jscript/tests/api.js b/dlls/jscript/tests/api.js index 72b64d2..2868c0f 100644 --- a/dlls/jscript/tests/api.js +++ b/dlls/jscript/tests/api.js @@ -341,6 +341,15 @@ ok(tmp === "<SUB>test</SUB>", "'test'.sub() = " + tmp); tmp = "test".sub(3); ok(tmp === "<SUB>test</SUB>", "'test'.sub(3) = " + tmp); +tmp = "".sup(); +ok(tmp === "<SUP></SUP>", "''.sup() = " + tmp); +tmp = "".sup(3); +ok(tmp === "<SUP></SUP>", "''.sup(3) = " + tmp); +tmp = "test".sup(); +ok(tmp === "<SUP>test</SUP>", "'test'.sup() = " + tmp); +tmp = "test".sup(3); +ok(tmp === "<SUP>test</SUP>", "'test'.sup(3) = " + tmp); + var arr = new Array(); ok(typeof(arr) === "object", "arr () is not object"); ok((arr.length === 0), "arr.length is not 0");
1
0
0
0
Andrew Nguyen : jscript: Implement the String.sub() method.
by Alexandre Julliard
10 Dec '08
10 Dec '08
Module: wine Branch: master Commit: 257e15da39c34870cd13f3b7852246fd1a95f44f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=257e15da39c34870cd13f3b78…
Author: Andrew Nguyen <arethusa26(a)gmail.com> Date: Wed Dec 10 03:07:35 2008 -0600 jscript: Implement the String.sub() method. --- dlls/jscript/string.c | 4 ++-- dlls/jscript/tests/api.js | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/dlls/jscript/string.c b/dlls/jscript/string.c index 6dff58e..c0ee311 100644 --- a/dlls/jscript/string.c +++ b/dlls/jscript/string.c @@ -1004,8 +1004,8 @@ static HRESULT String_strike(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARA static HRESULT String_sub(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS *dp, VARIANT *retv, jsexcept_t *ei, IServiceProvider *sp) { - FIXME("\n"); - return E_NOTIMPL; + static const WCHAR subtagW[] = {'S','U','B',0}; + return do_attributeless_tag_format(dispex, lcid, flags, dp, retv, ei, sp, subtagW); } /* ECMA-262 3rd Edition 15.5.4.15 */ diff --git a/dlls/jscript/tests/api.js b/dlls/jscript/tests/api.js index 1a0a88d..72b64d2 100644 --- a/dlls/jscript/tests/api.js +++ b/dlls/jscript/tests/api.js @@ -332,6 +332,15 @@ ok(tmp === "<STRIKE>test</STRIKE>", "'test'.strike() = " + tmp); tmp = "test".strike(3); ok(tmp === "<STRIKE>test</STRIKE>", "'test'.strike(3) = " + tmp); +tmp = "".sub(); +ok(tmp === "<SUB></SUB>", "''.sub() = " + tmp); +tmp = "".sub(3); +ok(tmp === "<SUB></SUB>", "''.sub(3) = " + tmp); +tmp = "test".sub(); +ok(tmp === "<SUB>test</SUB>", "'test'.sub() = " + tmp); +tmp = "test".sub(3); +ok(tmp === "<SUB>test</SUB>", "'test'.sub(3) = " + tmp); + var arr = new Array(); ok(typeof(arr) === "object", "arr () is not object"); ok((arr.length === 0), "arr.length is not 0");
1
0
0
0
Andrew Nguyen : jscript: Fix the lexicographical order of the String class properties array.
by Alexandre Julliard
10 Dec '08
10 Dec '08
Module: wine Branch: master Commit: f2388d92690dbaee8c87e873bb169f4ce68bcbdf URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f2388d92690dbaee8c87e873b…
Author: Andrew Nguyen <arethusa26(a)gmail.com> Date: Wed Dec 10 03:06:21 2008 -0600 jscript: Fix the lexicographical order of the String class properties array. The find_builtin_prop internal routine in dispex.c implements a binary search with the requirement that a class properties array be in ascending order, so this fix allows String's properties array to satisfy this requirement and allows the tests for String.sub() to pass. --- dlls/jscript/string.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/jscript/string.c b/dlls/jscript/string.c index 5e93fa2..6dff58e 100644 --- a/dlls/jscript/string.c +++ b/dlls/jscript/string.c @@ -1261,9 +1261,9 @@ static const builtin_prop_t String_props[] = { {smallW, String_small, PROPF_METHOD}, {splitW, String_split, PROPF_METHOD}, {strikeW, String_strike, PROPF_METHOD}, - {substringW, String_substring, PROPF_METHOD}, - {substrW, String_substr, PROPF_METHOD}, {subW, String_sub, PROPF_METHOD}, + {substrW, String_substr, PROPF_METHOD}, + {substringW, String_substring, PROPF_METHOD}, {supW, String_sup, PROPF_METHOD}, {toLocaleLowerCaseW, String_toLocaleLowerCase, PROPF_METHOD}, {toLocaleUpperCaseW, String_toLocaleUpperCase, PROPF_METHOD},
1
0
0
0
Andrew Nguyen : jscript: Fix some errors detected by Valgrind.
by Alexandre Julliard
10 Dec '08
10 Dec '08
Module: wine Branch: master Commit: a6bdc47152964d06bdb97d4a8b2490c31e59b86b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a6bdc47152964d06bdb97d4a8…
Author: Andrew Nguyen <arethusa26(a)gmail.com> Date: Wed Dec 10 03:05:50 2008 -0600 jscript: Fix some errors detected by Valgrind. --- dlls/jscript/engine.c | 4 ++-- dlls/jscript/function.c | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dlls/jscript/engine.c b/dlls/jscript/engine.c index 063bd60..f4d4796 100644 --- a/dlls/jscript/engine.c +++ b/dlls/jscript/engine.c @@ -1499,7 +1499,7 @@ HRESULT new_expression_eval(exec_ctx_t *ctx, expression_t *_expr, DWORD flags, j HRESULT call_expression_eval(exec_ctx_t *ctx, expression_t *_expr, DWORD flags, jsexcept_t *ei, exprval_t *ret) { call_expression_t *expr = (call_expression_t*)_expr; - VARIANT func, var; + VARIANT var; exprval_t exprval; DISPPARAMS dp; HRESULT hres; @@ -1520,7 +1520,7 @@ HRESULT call_expression_eval(exec_ctx_t *ctx, expression_t *_expr, DWORD flags, V_VT(&var) = VT_EMPTY; break; default: - FIXME("unimplemented type %d\n", V_VT(&func)); + FIXME("unimplemented type %d\n", exprval.type); hres = E_NOTIMPL; } diff --git a/dlls/jscript/function.c b/dlls/jscript/function.c index 96c41a9..314d585 100644 --- a/dlls/jscript/function.c +++ b/dlls/jscript/function.c @@ -191,7 +191,6 @@ static HRESULT invoke_constructor(FunctionInstance *function, LCID lcid, DISPPAR VARIANT *retv, jsexcept_t *ei, IServiceProvider *caller) { DispatchEx *this_obj; - VARIANT var; HRESULT hres; hres = create_object(function->dispex.ctx, &function->dispex, &this_obj); @@ -203,7 +202,6 @@ static HRESULT invoke_constructor(FunctionInstance *function, LCID lcid, DISPPAR if(FAILED(hres)) return hres; - VariantClear(&var); V_VT(retv) = VT_DISPATCH; V_DISPATCH(retv) = (IDispatch*)_IDispatchEx_(this_obj); return S_OK;
1
0
0
0
Alistair Leslie-Hughes : mshtml: Implement IHTMLStyle get/put posHeight.
by Alexandre Julliard
10 Dec '08
10 Dec '08
Module: wine Branch: master Commit: 84abbd64aeaa15be2eebe957732d5dcb8901e404 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=84abbd64aeaa15be2eebe9577…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Wed Dec 10 10:40:28 2008 +1100 mshtml: Implement IHTMLStyle get/put posHeight. --- dlls/mshtml/htmlstyle.c | 18 ++++++++++++++---- dlls/mshtml/tests/dom.c | 20 ++++++++++++++++++++ 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/dlls/mshtml/htmlstyle.c b/dlls/mshtml/htmlstyle.c index b612f6a..ed0c27f 100644 --- a/dlls/mshtml/htmlstyle.c +++ b/dlls/mshtml/htmlstyle.c @@ -1933,15 +1933,25 @@ static HRESULT WINAPI HTMLStyle_get_posWidth(IHTMLStyle *iface, float *p) static HRESULT WINAPI HTMLStyle_put_posHeight(IHTMLStyle *iface, float v) { HTMLStyle *This = HTMLSTYLE_THIS(iface); - FIXME("(%p)->()\n", This); - return E_NOTIMPL; + + TRACE("(%p)->(%f)\n", This, v); + + return set_style_pos(This, STYLEID_HEIGHT, v); } static HRESULT WINAPI HTMLStyle_get_posHeight(IHTMLStyle *iface, float *p) { HTMLStyle *This = HTMLSTYLE_THIS(iface); - FIXME("(%p)->()\n", This); - return E_NOTIMPL; + + TRACE("(%p)->(%p)\n", This, p); + + if(!p) + return E_POINTER; + + if(get_nsstyle_pos(This, STYLEID_HEIGHT, p) != S_OK) + *p = 0.0f; + + return S_OK; } static HRESULT WINAPI HTMLStyle_put_cursor(IHTMLStyle *iface, BSTR v) diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c index e620e56..c1f5105 100644 --- a/dlls/mshtml/tests/dom.c +++ b/dlls/mshtml/tests/dom.c @@ -2513,6 +2513,10 @@ static void test_default_style(IHTMLStyle *style) ok(!V_BSTR(&v), "V_BSTR(v) != NULL\n"); VariantClear(&v); + /* Test posHeight */ + hres = IHTMLStyle_get_posHeight(style, NULL); + ok(hres == E_POINTER, "get_left failed: %08x\n", hres); + V_VT(&v) = VT_EMPTY; hres = IHTMLStyle_get_height(style, &v); ok(hres == S_OK, "get_height failed: %08x\n", hres); @@ -2520,6 +2524,18 @@ static void test_default_style(IHTMLStyle *style) ok(!V_BSTR(&v), "V_BSTR(v) != NULL\n"); VariantClear(&v); + f = 1.0f; + hres = IHTMLStyle_get_posHeight(style, &f); + ok(hres == S_OK, "get_left failed: %08x\n", hres); + ok(f == 0.0, "expected 0.0 got %f\n", f); + + hres = IHTMLStyle_put_posHeight(style, 4.9f); + ok(hres == S_OK, "get_left failed: %08x\n", hres); + + hres = IHTMLStyle_get_posHeight(style, &f); + ok(hres == S_OK, "get_left failed: %08x\n", hres); + ok(f == 4.0, "expected 4.0 got %f\n", f); + V_VT(&v) = VT_BSTR; V_BSTR(&v) = a2bstr("64px"); hres = IHTMLStyle_put_height(style, v); @@ -2533,6 +2549,10 @@ static void test_default_style(IHTMLStyle *style) ok(!strcmp_wa(V_BSTR(&v), "64px"), "V_BSTR(v) = %s\n", dbgstr_w(V_BSTR(&v))); VariantClear(&v); + hres = IHTMLStyle_get_posHeight(style, &f); + ok(hres == S_OK, "get_left failed: %08x\n", hres); + ok(f == 64.0, "expected 64.0 got %f\n", f); + str = (void*)0xdeadbeef; hres = IHTMLStyle_get_cursor(style, &str); ok(hres == S_OK, "get_cursor failed: %08x\n", hres);
1
0
0
0
Austin English : kernel32: Convert a warn to an err.
by Alexandre Julliard
10 Dec '08
10 Dec '08
Module: wine Branch: master Commit: 7a92db4e8b29c02689facb3fd6c84ed0f5599be1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7a92db4e8b29c02689facb3fd…
Author: Austin English <austinenglish(a)gmail.com> Date: Tue Dec 9 12:20:59 2008 -0600 kernel32: Convert a warn to an err. --- dlls/kernel32/process.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c index 6c6b0ca..ca941aa 100644 --- a/dlls/kernel32/process.c +++ b/dlls/kernel32/process.c @@ -1022,7 +1022,7 @@ void __wine_kernel_init(void) if (boot_event) { - if (WaitForSingleObject( boot_event, 30000 )) WARN( "boot event wait timed out\n" ); + if (WaitForSingleObject( boot_event, 30000 )) ERR( "boot event wait timed out\n" ); CloseHandle( boot_event ); /* if we didn't find environment section, try again now that wineboot has run */ if (!got_environment)
1
0
0
0
Henri Verbeet : wined3d: Make some constant arrays also static.
by Alexandre Julliard
10 Dec '08
10 Dec '08
Module: wine Branch: master Commit: b409061337db54d19d72a031a4fb29e95e68f4e8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b409061337db54d19d72a031a…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Dec 10 10:04:40 2008 +0100 wined3d: Make some constant arrays also static. As pointed out by Dan Kegel. --- dlls/wined3d/arb_program_shader.c | 2 +- dlls/wined3d/drawprim.c | 16 ++++++++-------- dlls/wined3d/glsl_shader.c | 9 ++++++--- dlls/wined3d/state.c | 12 ++++++------ 4 files changed, 21 insertions(+), 18 deletions(-) diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c index 1e7e51a..f03e23b 100644 --- a/dlls/wined3d/arb_program_shader.c +++ b/dlls/wined3d/arb_program_shader.c @@ -1631,7 +1631,7 @@ static GLuint create_arb_blt_vertex_program(const WineD3D_GL_Info *gl_info) static GLuint create_arb_blt_fragment_program(const WineD3D_GL_Info *gl_info, enum tex_types tex_type) { GLuint program_id = 0; - const char *blt_fprograms[tex_type_count] = + static const char * const blt_fprograms[tex_type_count] = { /* tex_1d */ NULL, diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c index 7603103..243ed61 100644 --- a/dlls/wined3d/drawprim.c +++ b/dlls/wined3d/drawprim.c @@ -1092,11 +1092,11 @@ HRESULT tesselate_rectpatch(IWineD3DDeviceImpl *This, checkGLcall("glPolygonMode(GL_FRONT_AND_BACK, GL_FILL)"); IWineD3DDeviceImpl_MarkStateDirty(This, STATE_RENDER(WINED3DRS_FILLMODE)); if(patch->has_normals) { - const GLfloat black[4] = {0, 0, 0, 0}; - const GLfloat red[4] = {1, 0, 0, 0}; - const GLfloat green[4] = {0, 1, 0, 0}; - const GLfloat blue[4] = {0, 0, 1, 0}; - const GLfloat white[4] = {1, 1, 1, 1}; + static const GLfloat black[] = {0, 0, 0, 0}; + static const GLfloat red[] = {1, 0, 0, 0}; + static const GLfloat green[] = {0, 1, 0, 0}; + static const GLfloat blue[] = {0, 0, 1, 0}; + static const GLfloat white[] = {1, 1, 1, 1}; glEnable(GL_LIGHTING); checkGLcall("glEnable(GL_LIGHTING)"); glLightModelfv(GL_LIGHT_MODEL_AMBIENT, black); @@ -1263,9 +1263,9 @@ HRESULT tesselate_rectpatch(IWineD3DDeviceImpl *This, if(patch->has_normals) { /* Now do the same with reverse light directions */ - const GLfloat x[4] = {-1, 0, 0, 0}; - const GLfloat y[4] = { 0, -1, 0, 0}; - const GLfloat z[4] = { 0, 0, -1, 0}; + static const GLfloat x[] = {-1, 0, 0, 0}; + static const GLfloat y[] = { 0, -1, 0, 0}; + static const GLfloat z[] = { 0, 0, -1, 0}; glLightfv(GL_LIGHT0, GL_POSITION, x); glLightfv(GL_LIGHT1, GL_POSITION, y); glLightfv(GL_LIGHT2, GL_POSITION, z); diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c index f1a0f95..6ec2591 100644 --- a/dlls/wined3d/glsl_shader.c +++ b/dlls/wined3d/glsl_shader.c @@ -96,7 +96,8 @@ static void print_glsl_info_log(const WineD3D_GL_Info *gl_info, GLhandleARB obj) unsigned int i; BOOL is_spam; - const char *spam[] = { + static const char * const spam[] = + { "Vertex shader was successfully compiled to run on hardware.\n", /* fglrx */ "Fragment shader was successfully compiled to run on hardware.\n", /* fglrx */ "Fragment shader(s) linked, vertex shader(s) linked. \n ", /* fglrx, with \n */ @@ -3306,7 +3307,8 @@ static GLhandleARB create_glsl_blt_shader(const WineD3D_GL_Info *gl_info, enum t { GLhandleARB program_id; GLhandleARB vshader_id, pshader_id; - const char *blt_vshader[] = { + static const char *blt_vshader[] = + { "#version 120\n" "void main(void)\n" "{\n" @@ -3316,7 +3318,8 @@ static GLhandleARB create_glsl_blt_shader(const WineD3D_GL_Info *gl_info, enum t "}\n" }; - const char *blt_pshaders[tex_type_count] = { + static const char *blt_pshaders[tex_type_count] = + { /* tex_1d */ NULL, /* tex_2d */ diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index 0da9842..6642483 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -702,7 +702,7 @@ state_specularenable(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DCon checkGLcall("glFinalCombinerInputNV()"); } } else { - const GLfloat black[4] = {0.0f, 0.0f, 0.0f, 0.0f}; + static const GLfloat black[] = {0.0f, 0.0f, 0.0f, 0.0f}; /* for the case of enabled lighting: */ glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, &black[0]); @@ -1323,7 +1323,7 @@ static void state_colormat(DWORD state, IWineD3DStateBlockImpl *stateblock, Wine glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, (float*)&device->updateStateBlock->material.Specular); checkGLcall("glMaterialfv"); } else { - const GLfloat black[4] = {0.0f, 0.0f, 0.0f, 0.0f}; + static const GLfloat black[] = {0.0f, 0.0f, 0.0f, 0.0f}; glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, &black[0]); checkGLcall("glMaterialfv"); } @@ -3175,10 +3175,10 @@ static void loadTexCoords(IWineD3DStateBlockImpl *stateblock, const WineDirect3D static void tex_coordindex(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DContext *context) { DWORD stage = (state - STATE_TEXTURESTAGE(0, 0)) / WINED3D_HIGHEST_TEXTURE_STATE; DWORD mapped_stage = stateblock->wineD3DDevice->texUnitMap[stage]; - const GLfloat s_plane[] = { 1.0, 0.0, 0.0, 0.0 }; - const GLfloat t_plane[] = { 0.0, 1.0, 0.0, 0.0 }; - const GLfloat r_plane[] = { 0.0, 0.0, 1.0, 0.0 }; - const GLfloat q_plane[] = { 0.0, 0.0, 0.0, 1.0 }; + static const GLfloat s_plane[] = { 1.0, 0.0, 0.0, 0.0 }; + static const GLfloat t_plane[] = { 0.0, 1.0, 0.0, 0.0 }; + static const GLfloat r_plane[] = { 0.0, 0.0, 1.0, 0.0 }; + static const GLfloat q_plane[] = { 0.0, 0.0, 0.0, 1.0 }; if (mapped_stage == -1) { TRACE("No texture unit mapped to stage %d. Skipping texture coordinates.\n", stage);
1
0
0
0
Henri Verbeet : wined3d: Compare & copy with the correct clipplane size in IWineD3DStateBlockImpl_Capture ().
by Alexandre Julliard
10 Dec '08
10 Dec '08
Module: wine Branch: master Commit: bcf0b4b12887c440100f7c7f26732b440e8baad0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=bcf0b4b12887c440100f7c7f2…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Dec 10 10:04:40 2008 +0100 wined3d: Compare & copy with the correct clipplane size in IWineD3DStateBlockImpl_Capture(). --- dlls/wined3d/stateblock.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c index 78c57d9..3fe8183 100644 --- a/dlls/wined3d/stateblock.c +++ b/dlls/wined3d/stateblock.c @@ -543,13 +543,11 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_Capture(IWineD3DStateBlock *iface) } for (i = 0; i < GL_LIMITS(clipplanes); i++) { - if (This->changed.clipplane[i] && memcmp(targetStateBlock->clipplane[i], - This->clipplane[i], - sizeof(This->clipplane)) != 0) { - + if (This->changed.clipplane[i] + && memcmp(targetStateBlock->clipplane[i], This->clipplane[i], sizeof(*This->clipplane))) + { TRACE("Updating clipplane %d\n", i); - memcpy(This->clipplane[i], targetStateBlock->clipplane[i], - sizeof(This->clipplane)); + memcpy(This->clipplane[i], targetStateBlock->clipplane[i], sizeof(*This->clipplane)); } }
1
0
0
0
Henri Verbeet : wined3d: Rename texture_stage_op. color_correction to texture_stage_op.color_fixup.
by Alexandre Julliard
10 Dec '08
10 Dec '08
Module: wine Branch: master Commit: 4aa00e8a213a4ceb45f6df0af754066dc135813e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4aa00e8a213a4ceb45f6df0af…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Dec 10 10:04:40 2008 +0100 wined3d: Rename texture_stage_op.color_correction to texture_stage_op.color_fixup. This is consistent with other uses of struct color_fixup_desc. --- dlls/wined3d/arb_program_shader.c | 2 +- dlls/wined3d/ati_fragment_shader.c | 2 +- dlls/wined3d/utils.c | 6 +++--- dlls/wined3d/wined3d_private.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c index 5eb8539..1e7e51a 100644 --- a/dlls/wined3d/arb_program_shader.c +++ b/dlls/wined3d/arb_program_shader.c @@ -2811,7 +2811,7 @@ static GLuint gen_arbfp_ffp_shader(const struct ffp_frag_settings *settings, IWi sprintf(colorcor_dst, "tex%u", stage); gen_color_correction(&buffer, colorcor_dst, WINED3DSP_WRITEMASK_ALL, "const.x", "const.y", - settings->op[stage].color_correction); + settings->op[stage].color_fixup); } /* Generate the main shader */ diff --git a/dlls/wined3d/ati_fragment_shader.c b/dlls/wined3d/ati_fragment_shader.c index f88de9e..88dd0a5 100644 --- a/dlls/wined3d/ati_fragment_shader.c +++ b/dlls/wined3d/ati_fragment_shader.c @@ -351,7 +351,7 @@ static GLuint gen_ati_shader(const struct texture_stage_op op[MAX_TEXTURES], con if(op[stage].cop != WINED3DTOP_BUMPENVMAP && op[stage].cop != WINED3DTOP_BUMPENVMAPLUMINANCE) continue; - fixup = op[stage].color_correction; + fixup = op[stage].color_fixup; if (fixup.x_source != CHANNEL_SOURCE_X || fixup.y_source != CHANNEL_SOURCE_Y) { FIXME("Swizzles not implemented\n"); diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c index fd4f4ee..0eb5337 100644 --- a/dlls/wined3d/utils.c +++ b/dlls/wined3d/utils.c @@ -1917,7 +1917,7 @@ void gen_ffp_frag_op(IWineD3DStateBlockImpl *stateblock, struct ffp_frag_setting settings->op[i].aop = WINED3DTOP_DISABLE; settings->op[i].carg0 = settings->op[i].carg1 = settings->op[i].carg2 = ARG_UNUSED; settings->op[i].aarg0 = settings->op[i].aarg1 = settings->op[i].aarg2 = ARG_UNUSED; - settings->op[i].color_correction = COLOR_FIXUP_IDENTITY; + settings->op[i].color_fixup = COLOR_FIXUP_IDENTITY; settings->op[i].dst = resultreg; settings->op[i].tex_type = tex_1d; settings->op[i].projected = proj_none; @@ -1927,7 +1927,7 @@ void gen_ffp_frag_op(IWineD3DStateBlockImpl *stateblock, struct ffp_frag_setting texture = (IWineD3DBaseTextureImpl *) stateblock->textures[i]; if(texture) { - settings->op[i].color_correction = texture->baseTexture.shader_color_fixup; + settings->op[i].color_fixup = texture->baseTexture.shader_color_fixup; if(ignore_textype) { settings->op[i].tex_type = tex_1d; } else { @@ -1950,7 +1950,7 @@ void gen_ffp_frag_op(IWineD3DStateBlockImpl *stateblock, struct ffp_frag_setting } } } else { - settings->op[i].color_correction = COLOR_FIXUP_IDENTITY; + settings->op[i].color_fixup = COLOR_FIXUP_IDENTITY; settings->op[i].tex_type = tex_1d; } diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index 619baec..f8e2a8c 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -935,7 +935,7 @@ struct texture_stage_op unsigned aarg2 : 8; unsigned aarg0 : 8; - struct color_fixup_desc color_correction; + struct color_fixup_desc color_fixup; unsigned tex_type : 3; unsigned dst : 1; unsigned projected : 2;
1
0
0
0
← Newer
1
...
72
73
74
75
76
77
78
...
123
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
Results per page:
10
25
50
100
200