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
March
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
September 2009
----- 2025 -----
March 2025
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
3 participants
866 discussions
Start a n
N
ew thread
Jacek Caban : jscript: Added 'in' expression implementation.
by Alexandre Julliard
08 Sep '09
08 Sep '09
Module: wine Branch: master Commit: 1e7b90463eaf226704d8fa76dbed7e27d9bd0b79 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1e7b90463eaf226704d8fa76d…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Sun Sep 6 19:10:06 2009 +0200 jscript: Added 'in' expression implementation. --- dlls/jscript/engine.c | 40 +++++++++++++++++++++++++++++++++++++--- dlls/jscript/tests/lang.js | 11 +++++++++++ dlls/jscript/tests/run.c | 30 +++++++++++++++++++++++++++--- 3 files changed, 75 insertions(+), 6 deletions(-) diff --git a/dlls/jscript/engine.c b/dlls/jscript/engine.c index 593294c..1ff5eb3 100644 --- a/dlls/jscript/engine.c +++ b/dlls/jscript/engine.c @@ -2028,10 +2028,44 @@ HRESULT instanceof_expression_eval(exec_ctx_t *ctx, expression_t *_expr, DWORD f } /* ECMA-262 3rd Edition 11.8.7 */ -HRESULT in_expression_eval(exec_ctx_t *ctx, expression_t *expr, DWORD flags, jsexcept_t *ei, exprval_t *ret) +static HRESULT in_eval(exec_ctx_t *ctx, VARIANT *lval, VARIANT *obj, jsexcept_t *ei, VARIANT *retv) { - FIXME("\n"); - return E_NOTIMPL; + VARIANT_BOOL ret; + DISPID id; + BSTR str; + HRESULT hres; + + if(V_VT(obj) != VT_DISPATCH) { + FIXME("throw TypeError"); + return E_FAIL; + } + + hres = to_string(ctx->parser->script, lval, ei, &str); + if(FAILED(hres)) + return hres; + + hres = disp_get_id(V_DISPATCH(obj), str, 0, &id); + SysFreeString(str); + if(SUCCEEDED(hres)) + ret = VARIANT_TRUE; + else if(hres == DISP_E_UNKNOWNNAME) + ret = VARIANT_FALSE; + else + return hres; + + V_VT(retv) = VT_BOOL; + V_BOOL(retv) = ret; + return S_OK; +} + +/* ECMA-262 3rd Edition 11.8.7 */ +HRESULT in_expression_eval(exec_ctx_t *ctx, expression_t *_expr, DWORD flags, jsexcept_t *ei, exprval_t *ret) +{ + binary_expression_t *expr = (binary_expression_t*)_expr; + + TRACE("\n"); + + return binary_expr_eval(ctx, expr, in_eval, ei, ret); } /* ECMA-262 3rd Edition 11.6.1 */ diff --git a/dlls/jscript/tests/lang.js b/dlls/jscript/tests/lang.js index 354fdb4..ae69e71 100644 --- a/dlls/jscript/tests/lang.js +++ b/dlls/jscript/tests/lang.js @@ -817,6 +817,17 @@ ok(("" instanceof Object) === false, "'' is instance of Object"); ok(arguments.toString() === "[object Object]", "arguments.toString() = " + arguments.toString()); })(1,2); +obj = new String(); +ok(("length" in obj) === true, "length is not in obj"); +ok(("isPrototypeOf" in obj) === true, "isPrototypeOf is not in obj"); +ok(("abc" in obj) === false, "test is in obj"); +obj.abc = 1; +ok(("abc" in obj) === true, "test is not in obj"); +ok(("1" in obj) === false, "1 is in obj"); + +obj = [1,2,3]; +ok((1 in obj) === true, "1 is not in obj"); + ok(isNaN(NaN) === true, "isNaN(NaN) !== true"); ok(isNaN(0.5) === false, "isNaN(0.5) !== false"); ok(isNaN(Infinity) === false, "isNaN(Infinity) !== false"); diff --git a/dlls/jscript/tests/run.c b/dlls/jscript/tests/run.c index 90b022d..786624c 100644 --- a/dlls/jscript/tests/run.c +++ b/dlls/jscript/tests/run.c @@ -66,6 +66,8 @@ DEFINE_EXPECT(global_success_i); DEFINE_EXPECT(global_notexists_d); DEFINE_EXPECT(testobj_delete); DEFINE_EXPECT(testobj_value); +DEFINE_EXPECT(testobj_prop_d); +DEFINE_EXPECT(testobj_noprop_d); DEFINE_EXPECT(GetItemInfo_testVal); #define DISPID_GLOBAL_TESTPROPGET 0x1000 @@ -78,6 +80,8 @@ DEFINE_EXPECT(GetItemInfo_testVal); #define DISPID_GLOBAL_NULL_BSTR 0x1007 #define DISPID_GLOBAL_NULL_DISP 0x1008 +#define DISPID_TESTOBJ_PROP 0x2000 + static const WCHAR testW[] = {'t','e','s','t',0}; static const CHAR testA[] = "test"; static const WCHAR test_valW[] = {'t','e','s','t','V','a','l',0}; @@ -194,9 +198,21 @@ static HRESULT WINAPI DispatchEx_GetNameSpaceParent(IDispatchEx *iface, IUnknown return E_NOTIMPL; } -static HRESULT WINAPI DispatchEx_GetDispID(IDispatchEx *iface, BSTR bstrName, DWORD grfdex, DISPID *pid) +static HRESULT WINAPI testObj_GetDispID(IDispatchEx *iface, BSTR bstrName, DWORD grfdex, DISPID *pid) { - ok(0, "unexpected call\n"); + if(!strcmp_wa(bstrName, "prop")) { + CHECK_EXPECT(testobj_prop_d); + ok(grfdex == fdexNameCaseSensitive, "grfdex = %x\n", grfdex); + *pid = DISPID_TESTOBJ_PROP; + return S_OK; + } + if(!strcmp_wa(bstrName, "noprop")) { + CHECK_EXPECT(testobj_noprop_d); + ok(grfdex == fdexNameCaseSensitive, "grfdex = %x\n", grfdex); + return DISP_E_UNKNOWNNAME; + } + + ok(0, "unexpected name %s\n", wine_dbgstr_w(bstrName)); return E_NOTIMPL; } @@ -243,7 +259,7 @@ static IDispatchExVtbl testObjVtbl = { DispatchEx_GetTypeInfo, DispatchEx_GetIDsOfNames, DispatchEx_Invoke, - DispatchEx_GetDispID, + testObj_GetDispID, testObj_InvokeEx, testObj_DeleteMemberByName, DispatchEx_DeleteMemberByDispID, @@ -884,6 +900,14 @@ static void run_tests(void) parse_script_a("ok((testObj instanceof Object) === false, 'testObj is instance of Object');"); + SET_EXPECT(testobj_prop_d); + parse_script_a("ok(('prop' in testObj) === true, 'prop is not in testObj');"); + CHECK_CALLED(testobj_prop_d); + + SET_EXPECT(testobj_noprop_d); + parse_script_a("ok(('noprop' in testObj) === false, 'noprop is in testObj');"); + CHECK_CALLED(testobj_noprop_d); + SET_EXPECT(testobj_value); parse_script_a("ok(String(testObj) === '1', 'wrong testObj value');"); CHECK_CALLED(testobj_value);
1
0
0
0
Jacek Caban : jscript: Fixed typeof implementation for null VT_DISPATCH.
by Alexandre Julliard
08 Sep '09
08 Sep '09
Module: wine Branch: master Commit: dda957d87cf27acfd6819e2c486f383d14968663 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=dda957d87cf27acfd6819e2c4…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Sun Sep 6 19:09:30 2009 +0200 jscript: Fixed typeof implementation for null VT_DISPATCH. --- dlls/jscript/engine.c | 3 +-- dlls/jscript/tests/lang.js | 3 +++ dlls/jscript/tests/run.c | 20 ++++++++++++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/dlls/jscript/engine.c b/dlls/jscript/engine.c index 3931fff..593294c 100644 --- a/dlls/jscript/engine.c +++ b/dlls/jscript/engine.c @@ -2336,8 +2336,7 @@ static HRESULT typeof_exprval(exec_ctx_t *ctx, exprval_t *exprval, jsexcept_t *e case VT_DISPATCH: { DispatchEx *dispex; - dispex = iface_to_jsdisp((IUnknown*)V_DISPATCH(&val)); - if(dispex) { + if(V_DISPATCH(&val) && (dispex = iface_to_jsdisp((IUnknown*)V_DISPATCH(&val)))) { *ret = is_class(dispex, JSCLASS_FUNCTION) ? functionW : objectW; jsdisp_release(dispex); }else { diff --git a/dlls/jscript/tests/lang.js b/dlls/jscript/tests/lang.js index 5cd97d2..354fdb4 100644 --- a/dlls/jscript/tests/lang.js +++ b/dlls/jscript/tests/lang.js @@ -922,6 +922,9 @@ ok(re.source === "=(\\?|%3F)", "re.source = " + re.source); ok(createNullBSTR() === '', "createNullBSTR() !== ''"); +ok(getVT(nullDisp) === "VT_DISPATCH", "getVT(nullDisp) = " + typeof(nullDisp)); +ok(typeof(nullDisp) === "object", "typeof(nullDisp) = " + typeof(nullDisp)); + function do_test() {} function nosemicolon() {} nosemicolon(); function () {} nosemicolon(); diff --git a/dlls/jscript/tests/run.c b/dlls/jscript/tests/run.c index fe8274f..90b022d 100644 --- a/dlls/jscript/tests/run.c +++ b/dlls/jscript/tests/run.c @@ -76,6 +76,7 @@ DEFINE_EXPECT(GetItemInfo_testVal); #define DISPID_GLOBAL_GETVT 0x1005 #define DISPID_GLOBAL_TESTOBJ 0x1006 #define DISPID_GLOBAL_NULL_BSTR 0x1007 +#define DISPID_GLOBAL_NULL_DISP 0x1008 static const WCHAR testW[] = {'t','e','s','t',0}; static const CHAR testA[] = "test"; @@ -298,6 +299,10 @@ static HRESULT WINAPI Global_GetDispID(IDispatchEx *iface, BSTR bstrName, DWORD *pid = DISPID_GLOBAL_NULL_BSTR; return S_OK; } + if(!strcmp_wa(bstrName, "nullDisp")) { + *pid = DISPID_GLOBAL_NULL_DISP; + return S_OK; + } if(!strcmp_wa(bstrName, "notExists")) { CHECK_EXPECT(global_notexists_d); ok(grfdex == fdexNameCaseSensitive, "grfdex = %x\n", grfdex); @@ -456,6 +461,21 @@ static HRESULT WINAPI Global_InvokeEx(IDispatchEx *iface, DISPID id, LCID lcid, V_BSTR(pvarRes) = NULL; } return S_OK; + + case DISPID_GLOBAL_NULL_DISP: + ok(wFlags == INVOKE_PROPERTYGET, "wFlags = %x\n", wFlags); + ok(pdp != NULL, "pdp == NULL\n"); + ok(!pdp->rgvarg, "rgvarg != NULL\n"); + ok(!pdp->rgdispidNamedArgs, "rgdispidNamedArgs != NULL\n"); + ok(!pdp->cArgs, "cArgs = %d\n", pdp->cArgs); + ok(!pdp->cNamedArgs, "cNamedArgs = %d\n", pdp->cNamedArgs); + ok(pvarRes != NULL, "pvarRes == NULL\n"); + ok(V_VT(pvarRes) == VT_EMPTY, "V_VT(pvarRes) = %d\n", V_VT(pvarRes)); + ok(pei != NULL, "pei == NULL\n"); + + V_VT(pvarRes) = VT_DISPATCH; + V_DISPATCH(pvarRes) = NULL; + return S_OK; } ok(0, "unexpected call %x\n", id);
1
0
0
0
Henri Verbeet : wined3d: Fix some function pointers and typedefs.
by Alexandre Julliard
08 Sep '09
08 Sep '09
Module: wine Branch: master Commit: d1f5fa65d04832b785b7e6c4fc1badbf4a44abe7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d1f5fa65d04832b785b7e6c4f…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Sep 7 11:15:17 2009 +0200 wined3d: Fix some function pointers and typedefs. --- dlls/wined3d/wined3d_gl.h | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/dlls/wined3d/wined3d_gl.h b/dlls/wined3d/wined3d_gl.h index 9c85d57..79e7a1a 100644 --- a/dlls/wined3d/wined3d_gl.h +++ b/dlls/wined3d/wined3d_gl.h @@ -878,8 +878,8 @@ void (WINE_GLAPI *glEdgeFlagv) (const GLboolean* flag); void (WINE_GLAPI *glEnable) (GLenum cap); void (WINE_GLAPI *glEnableWINE) (GLenum cap); void (WINE_GLAPI *glEnableClientState) (GLenum array); -void (WINE_GLAPI *glEnd) (); -void (WINE_GLAPI *glEndList) (); +void (WINE_GLAPI *glEnd) (void); +void (WINE_GLAPI *glEndList) (void); void (WINE_GLAPI *glEvalCoord1d) (GLdouble u); void (WINE_GLAPI *glEvalCoord1dv) (const GLdouble* u); void (WINE_GLAPI *glEvalCoord1f) (GLfloat u); @@ -904,7 +904,7 @@ void (WINE_GLAPI *glGenTextures) (GLsizei n, GLuint* textures); void (WINE_GLAPI *glGetBooleanv) (GLenum pname, GLboolean* params); void (WINE_GLAPI *glGetClipPlane) (GLenum plane, GLdouble* equation); void (WINE_GLAPI *glGetDoublev) (GLenum pname, GLdouble* params); -GLenum (WINE_GLAPI *glGetError) (); +GLenum (WINE_GLAPI *glGetError) (void); void (WINE_GLAPI *glGetFloatv) (GLenum pname, GLfloat* params); void (WINE_GLAPI *glGetIntegerv) (GLenum pname, GLint* params); void (WINE_GLAPI *glGetLightfv) (GLenum light, GLenum pname, GLfloat* params); @@ -943,7 +943,7 @@ void (WINE_GLAPI *glIndexs) (GLshort c); void (WINE_GLAPI *glIndexsv) (const GLshort* c); void (WINE_GLAPI *glIndexub) (GLubyte c); void (WINE_GLAPI *glIndexubv) (const GLubyte* c); -void (WINE_GLAPI *glInitNames) (); +void (WINE_GLAPI *glInitNames) (void); void (WINE_GLAPI *glInterleavedArrays) (GLenum format, GLsizei stride, const GLvoid* pointer); GLboolean (WINE_GLAPI *glIsEnabled) (GLenum cap); GLboolean (WINE_GLAPI *glIsList) (GLuint list); @@ -959,7 +959,7 @@ void (WINE_GLAPI *glLightiv) (GLenum light, GLenum pname, const GLint* params); void (WINE_GLAPI *glLineStipple) (GLint factor, GLushort pattern); void (WINE_GLAPI *glLineWidth) (GLfloat width); void (WINE_GLAPI *glListBase) (GLuint base); -void (WINE_GLAPI *glLoadIdentity) (); +void (WINE_GLAPI *glLoadIdentity) (void); void (WINE_GLAPI *glLoadMatrixd) (const GLdouble* m); void (WINE_GLAPI *glLoadMatrixf) (const GLfloat* m); void (WINE_GLAPI *glLoadName) (GLuint name); @@ -1005,14 +1005,14 @@ void (WINE_GLAPI *glPointSize) (GLfloat size); void (WINE_GLAPI *glPolygonMode) (GLenum face, GLenum mode); void (WINE_GLAPI *glPolygonOffset) (GLfloat factor, GLfloat units); void (WINE_GLAPI *glPolygonStipple) (const GLubyte* mask); -void (WINE_GLAPI *glPopAttrib) (); -void (WINE_GLAPI *glPopClientAttrib) (); -void (WINE_GLAPI *glPopMatrix) (); -void (WINE_GLAPI *glPopName) (); +void (WINE_GLAPI *glPopAttrib) (void); +void (WINE_GLAPI *glPopClientAttrib) (void); +void (WINE_GLAPI *glPopMatrix) (void); +void (WINE_GLAPI *glPopName) (void); void (WINE_GLAPI *glPrioritizeTextures) (GLsizei n, const GLuint* textures, const GLclampf* priorities); void (WINE_GLAPI *glPushAttrib) (GLbitfield mask); void (WINE_GLAPI *glPushClientAttrib) (GLbitfield mask); -void (WINE_GLAPI *glPushMatrix) (); +void (WINE_GLAPI *glPushMatrix) (void); void (WINE_GLAPI *glPushName) (GLuint name); void (WINE_GLAPI *glRasterPos2d) (GLdouble x, GLdouble y); void (WINE_GLAPI *glRasterPos2dv) (const GLdouble* v); @@ -1146,8 +1146,8 @@ void (WINE_GLAPI *glPointParameterfv) (GLenum pname, const GLfloat *params); * They are wgl functions and must not be called inside the gl lock, give them a * name that makes this clear */ -void (__stdcall *wglFinish) (); -void (__stdcall *wglFlush) (); +void (__stdcall *wglFinish) (void); +void (__stdcall *wglFlush) (void); /* WGL functions */ HGLRC (WINAPI *pwglCreateContext)(HDC); @@ -3031,8 +3031,8 @@ typedef void (WINE_GLAPI * PGLFNPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLenum target typedef GLuint (WINE_GLAPI *PGLFNGENFRAGMENTSHADERSATI) (GLuint range); typedef void (WINE_GLAPI *PGLFNBINDFRAGMENTSHADERATI) (GLuint id); typedef void (WINE_GLAPI *PGLFNDELETEFRAGMENTSHADERATI) (GLuint id); -typedef void (WINE_GLAPI *PGLFNBEGINFRAGMENTSHADERATI) (); -typedef void (WINE_GLAPI *PGLFNENDFRAGMENTSHADERATI) (); +typedef void (WINE_GLAPI *PGLFNBEGINFRAGMENTSHADERATI) (void); +typedef void (WINE_GLAPI *PGLFNENDFRAGMENTSHADERATI) (void); typedef void (WINE_GLAPI *PGLFNPASSTEXCOORDATI) (GLuint dst, GLuint coord, GLenum swizzle); typedef void (WINE_GLAPI *PGLFNSAMPLEMAPATI) (GLuint dst, GLuint interp, GLenum swizzle); typedef void (WINE_GLAPI *PGLFNCOLORFRAGMENTOP1ATI) (GLenum op, GLuint dst, GLuint dstMask,
1
0
0
0
Henri Verbeet : wined3d: Check the correct debug channel in shader_arb_load_constantsF().
by Alexandre Julliard
08 Sep '09
08 Sep '09
Module: wine Branch: master Commit: f8a3a5fd49b768dd1f7db30d8070929b7d2f8229 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f8a3a5fd49b768dd1f7db30d8…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Sep 7 11:15:16 2009 +0200 wined3d: Check the correct debug channel in shader_arb_load_constantsF(). --- dlls/wined3d/arb_program_shader.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c index 0ac3789..5c971d2 100644 --- a/dlls/wined3d/arb_program_shader.c +++ b/dlls/wined3d/arb_program_shader.c @@ -280,7 +280,8 @@ static unsigned int shader_arb_load_constantsF(IWineD3DBaseShaderImpl *This, con DWORD i, j; unsigned int ret; - if (TRACE_ON(d3d_shader)) { + if (TRACE_ON(d3d_constants)) + { for(i = 0; i < max_constants; i++) { if(!dirty_consts[i]) continue; TRACE_(d3d_constants)("Loading constants %i: %f, %f, %f, %f\n", i,
1
0
0
0
Henri Verbeet : wined3d: Fix shader_arb_load_constantsF().
by Alexandre Julliard
08 Sep '09
08 Sep '09
Module: wine Branch: master Commit: f928d6ec871aab8f74802dcc76b2a816b941208d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f928d6ec871aab8f74802dcc7…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Sep 7 11:15:15 2009 +0200 wined3d: Fix shader_arb_load_constantsF(). --- dlls/wined3d/arb_program_shader.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c index 848d83d..0ac3789 100644 --- a/dlls/wined3d/arb_program_shader.c +++ b/dlls/wined3d/arb_program_shader.c @@ -277,7 +277,7 @@ static unsigned int shader_arb_load_constantsF(IWineD3DBaseShaderImpl *This, con GLuint target_type, unsigned int max_constants, const float *constants, char *dirty_consts) { local_constant* lconst; - DWORD i = 0, j; + DWORD i, j; unsigned int ret; if (TRACE_ON(d3d_shader)) { @@ -288,6 +288,9 @@ static unsigned int shader_arb_load_constantsF(IWineD3DBaseShaderImpl *This, con constants[i * 4 + 2], constants[i * 4 + 3]); } } + + i = 0; + /* In 1.X pixel shaders constants are implicitly clamped in the range [-1;1] */ if (target_type == GL_FRAGMENT_PROGRAM_ARB && This->baseShader.reg_maps.shader_version.major == 1) {
1
0
0
0
Henri Verbeet : d3d10: Implement IsValid() for a few interfaces.
by Alexandre Julliard
08 Sep '09
08 Sep '09
Module: wine Branch: master Commit: 400ff9f72dfeabf9e29832946679024dcc37e625 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=400ff9f72dfeabf9e29832946…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Sep 7 11:15:14 2009 +0200 d3d10: Implement IsValid() for a few interfaces. --- dlls/d3d10/effect.c | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dlls/d3d10/effect.c b/dlls/d3d10/effect.c index 61fbfee..eddce29 100644 --- a/dlls/d3d10/effect.c +++ b/dlls/d3d10/effect.c @@ -1011,9 +1011,9 @@ const struct ID3D10EffectVtbl d3d10_effect_vtbl = static BOOL STDMETHODCALLTYPE d3d10_effect_technique_IsValid(ID3D10EffectTechnique *iface) { - FIXME("iface %p stub!\n", iface); + TRACE("iface %p\n", iface); - return FALSE; + return (struct d3d10_effect_technique *)iface != &null_technique; } static HRESULT STDMETHODCALLTYPE d3d10_effect_technique_GetDesc(ID3D10EffectTechnique *iface, @@ -1127,9 +1127,9 @@ static const struct ID3D10EffectTechniqueVtbl d3d10_effect_technique_vtbl = static BOOL STDMETHODCALLTYPE d3d10_effect_pass_IsValid(ID3D10EffectPass *iface) { - FIXME("iface %p stub!\n", iface); + TRACE("iface %p\n", iface); - return FALSE; + return (struct d3d10_effect_pass *)iface != &null_pass; } static HRESULT STDMETHODCALLTYPE d3d10_effect_pass_GetDesc(ID3D10EffectPass *iface, D3D10_PASS_DESC *desc) @@ -1253,9 +1253,9 @@ static const struct ID3D10EffectPassVtbl d3d10_effect_pass_vtbl = static BOOL STDMETHODCALLTYPE d3d10_effect_variable_IsValid(ID3D10EffectVariable *iface) { - FIXME("iface %p stub!\n", iface); + TRACE("iface %p\n", iface); - return FALSE; + return (struct d3d10_effect_variable *)iface != &null_variable; } static struct ID3D10EffectType * STDMETHODCALLTYPE d3d10_effect_variable_GetType(ID3D10EffectVariable *iface) @@ -1481,9 +1481,9 @@ static const struct ID3D10EffectVariableVtbl d3d10_effect_variable_vtbl = /* ID3D10EffectVariable methods */ static BOOL STDMETHODCALLTYPE d3d10_effect_constant_buffer_IsValid(ID3D10EffectConstantBuffer *iface) { - FIXME("iface %p stub!\n", iface); + TRACE("iface %p\n", iface); - return FALSE; + return (struct d3d10_effect_local_buffer *)iface != &null_local_buffer; } static struct ID3D10EffectType * STDMETHODCALLTYPE d3d10_effect_constant_buffer_GetType(ID3D10EffectConstantBuffer *iface)
1
0
0
0
Henri Verbeet : d3d10: Add the ID3D10EffectSamplerVariable interface.
by Alexandre Julliard
08 Sep '09
08 Sep '09
Module: wine Branch: master Commit: cd1afd72eb8a8ca611bd40425b8a8d609968f728 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cd1afd72eb8a8ca611bd40425…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Sep 7 11:15:13 2009 +0200 d3d10: Add the ID3D10EffectSamplerVariable interface. --- include/d3d10effect.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/include/d3d10effect.h b/include/d3d10effect.h index b61ce91..e020583 100644 --- a/include/d3d10effect.h +++ b/include/d3d10effect.h @@ -664,6 +664,44 @@ DECLARE_INTERFACE_(ID3D10EffectRasterizerVariable, ID3D10EffectVariable) }; #undef INTERFACE +DEFINE_GUID(IID_ID3D10EffectSamplerVariable, + 0x6530d5c7, 0x07e9, 0x4271, 0xa4, 0x18, 0xe7, 0xce, 0x4b, 0xd1, 0xe4, 0x80); + +#define INTERFACE ID3D10EffectSamplerVariable +DECLARE_INTERFACE_(ID3D10EffectSamplerVariable, ID3D10EffectVariable) +{ + /* ID3D10EffectVariable methods */ + STDMETHOD_(BOOL, IsValid)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE; + STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE; + STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE; + STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE; + STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE; + STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE; + STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE; + STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE; + STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE; + STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE; + STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE; + /* ID3D10EffectSamplerVariable methods */ + STDMETHOD(GetSampler)(THIS_ UINT index, ID3D10SamplerState **sampler) PURE; + STDMETHOD(GetBackingStore)(THIS_ UINT index, D3D10_SAMPLER_DESC *desc) PURE; +}; +#undef INTERFACE + DEFINE_GUID(IID_ID3D10EffectTechnique, 0xdb122ce8, 0xd1c9, 0x4292, 0xb2, 0x37, 0x24, 0xed, 0x3d, 0xe8, 0xb1, 0x75); #define INTERFACE ID3D10EffectTechnique
1
0
0
0
Henri Verbeet : d3d10: Add the ID3D10EffectRasterizerVariable interface.
by Alexandre Julliard
08 Sep '09
08 Sep '09
Module: wine Branch: master Commit: a6afc5e0a4c7256b7708a6bfb04896526c28fce5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a6afc5e0a4c7256b7708a6bfb…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Sep 7 11:15:12 2009 +0200 d3d10: Add the ID3D10EffectRasterizerVariable interface. --- include/d3d10effect.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/include/d3d10effect.h b/include/d3d10effect.h index b96bbe0..b61ce91 100644 --- a/include/d3d10effect.h +++ b/include/d3d10effect.h @@ -626,6 +626,44 @@ DECLARE_INTERFACE_(ID3D10EffectDepthStencilVariable, ID3D10EffectVariable) }; #undef INTERFACE +DEFINE_GUID(IID_ID3D10EffectRasterizerVariable, + 0x21af9f0e, 0x4d94, 0x4ea9, 0x97, 0x85, 0x2c, 0xb7, 0x6b, 0x8c, 0x0b, 0x34); + +#define INTERFACE ID3D10EffectRasterizerVariable +DECLARE_INTERFACE_(ID3D10EffectRasterizerVariable, ID3D10EffectVariable) +{ + /* ID3D10EffectVariable methods */ + STDMETHOD_(BOOL, IsValid)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE; + STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE; + STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE; + STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE; + STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE; + STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE; + STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE; + STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE; + STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE; + STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE; + STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE; + STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE; + /* ID3D10EffectRasterizerVariable methods */ + STDMETHOD(GetRasterizerState)(THIS_ UINT index, ID3D10RasterizerState **rasterizer_state) PURE; + STDMETHOD(GetBackingStore)(THIS_ UINT index, D3D10_RASTERIZER_DESC *desc) PURE; +}; +#undef INTERFACE + DEFINE_GUID(IID_ID3D10EffectTechnique, 0xdb122ce8, 0xd1c9, 0x4292, 0xb2, 0x37, 0x24, 0xed, 0x3d, 0xe8, 0xb1, 0x75); #define INTERFACE ID3D10EffectTechnique
1
0
0
0
Stefan Dösinger : wined3d: Test and fix ddraw and d3d9 GetDC differences.
by Alexandre Julliard
08 Sep '09
08 Sep '09
Module: wine Branch: master Commit: e1469961d42d0eb077d3fa0236de17b56bc51a56 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e1469961d42d0eb077d3fa023…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Sat Sep 5 16:37:19 2009 +0200 wined3d: Test and fix ddraw and d3d9 GetDC differences. The MSDN is not totally correct: A8R8G8B8 and A1R5G5B5 also allow GetDC. The main differences that have to be filtered out in d3d9.dll are GetDC on A8B8G8R8, X8B8G8R8 and P8. --- dlls/d3d9/d3d9_private.h | 2 + dlls/d3d9/device.c | 16 +++ dlls/d3d9/surface.c | 7 ++ dlls/d3d9/tests/surface.c | 81 ++++++++++++++ dlls/ddraw/surface.c | 12 ++- dlls/ddraw/tests/dsurface.c | 234 ++++++++++++++++++++++++++++++++++++++++ dlls/wined3d/surface.c | 12 +-- dlls/wined3d/surface_base.c | 6 + dlls/wined3d/surface_gdi.c | 21 +++- dlls/wined3d/utils.c | 31 ++++-- dlls/wined3d/wined3d_private.h | 1 + 11 files changed, 394 insertions(+), 29 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=e1469961d42d0eb077d3f…
1
0
0
0
Stefan Dösinger : wined3d: Silence a compiler warning.
by Alexandre Julliard
08 Sep '09
08 Sep '09
Module: wine Branch: master Commit: 65f3d54da52784a07552adc7cb3dce272bc5d5e9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=65f3d54da52784a07552adc7c…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Sun Aug 30 22:35:00 2009 +0200 wined3d: Silence a compiler warning. --- dlls/wined3d/drawprim.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c index 5a2c7e7..0571e99 100644 --- a/dlls/wined3d/drawprim.c +++ b/dlls/wined3d/drawprim.c @@ -129,18 +129,19 @@ static void drawStridedSlow(IWineD3DDevice *iface, const struct wined3d_context glNormal3f(0, 0, 0); } + num_untracked_materials = context->num_untracked_materials; if (si->use_map & (1 << WINED3D_FFP_DIFFUSE)) { element = &si->elements[WINED3D_FFP_DIFFUSE]; diffuse = element->data + streamOffset[element->stream_idx]; + + if (num_untracked_materials && element->format_desc->format != WINED3DFMT_A8R8G8B8) + FIXME("Implement diffuse color tracking from %s\n", debug_d3dformat(element->format_desc->format)); } else { glColor4f(1.0f, 1.0f, 1.0f, 1.0f); } - num_untracked_materials = context->num_untracked_materials; - if (num_untracked_materials && element->format_desc->format != WINED3DFMT_A8R8G8B8) - FIXME("Implement diffuse color tracking from %s\n", debug_d3dformat(element->format_desc->format)); if (si->use_map & (1 << WINED3D_FFP_SPECULAR)) {
1
0
0
0
← Newer
1
...
72
73
74
75
76
77
78
...
87
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
Results per page:
10
25
50
100
200