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
April 2017
----- 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
757 discussions
Start a n
N
ew thread
Alexandre Julliard : opengl32: Directly link to glu32.
by Alexandre Julliard
07 Apr '17
07 Apr '17
Module: wine Branch: master Commit: f89d01d94a71ae960d83c35b0c74336648894870 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f89d01d94a71ae960d83c35b0…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Apr 7 21:26:09 2017 +0200 opengl32: Directly link to glu32. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/opengl32/Makefile.in | 1 + dlls/opengl32/wgl.c | 76 ++++++++++------------------------------------- 2 files changed, 16 insertions(+), 61 deletions(-) diff --git a/dlls/opengl32/Makefile.in b/dlls/opengl32/Makefile.in index 4df6bce..3b1293e 100644 --- a/dlls/opengl32/Makefile.in +++ b/dlls/opengl32/Makefile.in @@ -1,6 +1,7 @@ MODULE = opengl32.dll IMPORTLIB = opengl32 IMPORTS = user32 gdi32 advapi32 +DELAYIMPORTS = glu32 EXTRADLLFLAGS = -Wl,--image-base,0x7a800000 C_SRCS = \ diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c index d3d20bf..73be013 100644 --- a/dlls/opengl32/wgl.c +++ b/dlls/opengl32/wgl.c @@ -1395,50 +1395,6 @@ BOOL WINAPI wglUseFontBitmapsW(HDC hdc, DWORD first, DWORD count, DWORD listBase return wglUseFontBitmaps_common( hdc, first, count, listBase, TRUE ); } -typedef void (WINAPI *_GLUfuncptr)(void); - -#define DECL_FUNCPTR(f) static typeof(f) *p##f -DECL_FUNCPTR(gluNewTess); -DECL_FUNCPTR(gluDeleteTess); -DECL_FUNCPTR(gluTessNormal); -DECL_FUNCPTR(gluTessBeginPolygon); -DECL_FUNCPTR(gluTessEndPolygon); -DECL_FUNCPTR(gluTessCallback); -DECL_FUNCPTR(gluTessBeginContour); -DECL_FUNCPTR(gluTessEndContour); -DECL_FUNCPTR(gluTessVertex); -#undef DECL_FUNCPTR - -static HMODULE load_libglu(void) -{ - static const WCHAR glu32W[] = {'g','l','u','3','2','.','d','l','l',0}; - static BOOL already_loaded; - static HMODULE module; - - if (already_loaded) return module; - already_loaded = TRUE; - - TRACE("Trying to load GLU library\n"); - module = LoadLibraryW( glu32W ); - if (!module) - { - WARN("Failed to load glu32\n"); - return NULL; - } -#define LOAD_FUNCPTR(f) p##f = (void *)GetProcAddress( module, #f ) - LOAD_FUNCPTR(gluNewTess); - LOAD_FUNCPTR(gluDeleteTess); - LOAD_FUNCPTR(gluTessBeginContour); - LOAD_FUNCPTR(gluTessNormal); - LOAD_FUNCPTR(gluTessBeginPolygon); - LOAD_FUNCPTR(gluTessCallback); - LOAD_FUNCPTR(gluTessEndContour); - LOAD_FUNCPTR(gluTessEndPolygon); - LOAD_FUNCPTR(gluTessVertex); -#undef LOAD_FUNCPTR - return module; -} - static void fixed_to_double(POINTFX fixed, UINT em_size, GLdouble vertex[3]) { vertex[0] = (fixed.x.value + (GLdouble)fixed.x.fract / (1 << 16)) / em_size; @@ -1565,17 +1521,15 @@ static BOOL wglUseFontOutlines_common(HDC hdc, if(format == WGL_FONT_POLYGONS) { - if (!load_libglu()) + tess = gluNewTess(); + if(!tess) { ERR("glu32 is required for this function but isn't available\n"); return FALSE; } - - tess = pgluNewTess(); - if(!tess) return FALSE; - pgluTessCallback(tess, GLU_TESS_VERTEX, (_GLUfuncptr)tess_callback_vertex); - pgluTessCallback(tess, GLU_TESS_BEGIN, (_GLUfuncptr)tess_callback_begin); - pgluTessCallback(tess, GLU_TESS_END, tess_callback_end); + gluTessCallback(tess, GLU_TESS_VERTEX, (void *)tess_callback_vertex); + gluTessCallback(tess, GLU_TESS_BEGIN, (void *)tess_callback_begin); + gluTessCallback(tess, GLU_TESS_END, tess_callback_end); } GetObjectW(GetCurrentObject(hdc, OBJ_FONT), sizeof(lf), &lf); @@ -1633,8 +1587,8 @@ static BOOL wglUseFontOutlines_common(HDC hdc, if(format == WGL_FONT_POLYGONS) { funcs->gl.p_glNormal3d(0.0, 0.0, 1.0); - pgluTessNormal(tess, 0, 0, 1); - pgluTessBeginPolygon(tess, NULL); + gluTessNormal(tess, 0, 0, 1); + gluTessBeginPolygon(tess, NULL); } while(!vertices) @@ -1653,7 +1607,7 @@ static BOOL wglUseFontOutlines_common(HDC hdc, TRACE("\tstart %d, %d\n", pph->pfxStart.x.value, pph->pfxStart.y.value); if(format == WGL_FONT_POLYGONS) - pgluTessBeginContour(tess); + gluTessBeginContour(tess); else funcs->gl.p_glBegin(GL_LINE_LOOP); @@ -1661,7 +1615,7 @@ static BOOL wglUseFontOutlines_common(HDC hdc, { fixed_to_double(pph->pfxStart, em_size, vertices); if(format == WGL_FONT_POLYGONS) - pgluTessVertex(tess, vertices, vertices); + gluTessVertex(tess, vertices, vertices); else funcs->gl.p_glVertex3d(vertices[0], vertices[1], vertices[2]); vertices += 3; @@ -1684,7 +1638,7 @@ static BOOL wglUseFontOutlines_common(HDC hdc, ppc->apfx[i].x.value, ppc->apfx[i].y.value); fixed_to_double(ppc->apfx[i], em_size, vertices); if(format == WGL_FONT_POLYGONS) - pgluTessVertex(tess, vertices, vertices); + gluTessVertex(tess, vertices, vertices); else funcs->gl.p_glVertex3d(vertices[0], vertices[1], vertices[2]); vertices += 3; @@ -1732,7 +1686,7 @@ static BOOL wglUseFontOutlines_common(HDC hdc, vertices[1] = points[j].y; vertices[2] = 0.0; if(format == WGL_FONT_POLYGONS) - pgluTessVertex(tess, vertices, vertices); + gluTessVertex(tess, vertices, vertices); else funcs->gl.p_glVertex3d(vertices[0], vertices[1], vertices[2]); vertices += 3; @@ -1746,7 +1700,7 @@ static BOOL wglUseFontOutlines_common(HDC hdc, default: ERR("\t\tcurve type = %d\n", ppc->wType); if(format == WGL_FONT_POLYGONS) - pgluTessEndContour(tess); + gluTessEndContour(tess); else funcs->gl.p_glEnd(); goto error_in_list; @@ -1756,7 +1710,7 @@ static BOOL wglUseFontOutlines_common(HDC hdc, (ppc->cpfx - 1) * sizeof(POINTFX)); } if(format == WGL_FONT_POLYGONS) - pgluTessEndContour(tess); + gluTessEndContour(tess); else funcs->gl.p_glEnd(); pph = (TTPOLYGONHEADER*)((char*)pph + pph->cb); @@ -1765,7 +1719,7 @@ static BOOL wglUseFontOutlines_common(HDC hdc, error_in_list: if(format == WGL_FONT_POLYGONS) - pgluTessEndPolygon(tess); + gluTessEndPolygon(tess); funcs->gl.p_glTranslated((GLdouble)gm.gmCellIncX / em_size, (GLdouble)gm.gmCellIncY / em_size, 0.0); funcs->gl.p_glEndList(); HeapFree(GetProcessHeap(), 0, buf); @@ -1775,7 +1729,7 @@ error_in_list: error: DeleteObject(SelectObject(hdc, old_font)); if(format == WGL_FONT_POLYGONS) - pgluDeleteTess(tess); + gluDeleteTess(tess); return TRUE; }
1
0
0
0
Alexandre Julliard : glu32: Implement gluErrorUnicodeStringEXT.
by Alexandre Julliard
07 Apr '17
07 Apr '17
Module: wine Branch: master Commit: b4e31e023260ce3a13f92570d1e604a9b1462fce URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b4e31e023260ce3a13f92570d…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Apr 7 20:47:27 2017 +0200 glu32: Implement gluErrorUnicodeStringEXT. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/glu32/glu.c | 18 ++++++++++++++++++ dlls/glu32/glu32.spec | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/dlls/glu32/glu.c b/dlls/glu32/glu.c index bdcb620..ee4986e 100644 --- a/dlls/glu32/glu.c +++ b/dlls/glu32/glu.c @@ -271,6 +271,24 @@ const GLubyte * WINAPI wine_gluErrorString( GLenum errCode ) } /*********************************************************************** + * gluErrorUnicodeStringEXT (GLU32.@) + */ +const WCHAR * WINAPI wine_gluErrorUnicodeStringEXT( GLenum errCode ) +{ + static WCHAR errorsW[NB_ERRORS][64]; + unsigned int i, j; + + for (i = 0; i < NB_ERRORS; i++) + { + if (errors[i].err != errCode) continue; + if (!errorsW[i][0]) /* errors use only ASCII, do a simple mapping */ + for (j = 0; errors[i].str[j]; j++) errorsW[i][j] = (WCHAR)errors[i].str[j]; + return errorsW[i]; + } + return NULL; +} + +/*********************************************************************** * gluScaleImage (GLU32.@) */ int WINAPI wine_gluScaleImage( GLenum format, GLint widthin, GLint heightin, GLenum typein, const void *datain, diff --git a/dlls/glu32/glu32.spec b/dlls/glu32/glu32.spec index 8f98fec..5b416fd 100644 --- a/dlls/glu32/glu32.spec +++ b/dlls/glu32/glu32.spec @@ -15,7 +15,7 @@ @ stdcall gluEndSurface(ptr) wine_gluEndSurface @ stdcall gluEndTrim(ptr) wine_gluEndTrim @ stdcall gluErrorString(long) wine_gluErrorString -@ stub gluErrorUnicodeStringEXT +@ stdcall gluErrorUnicodeStringEXT(long) wine_gluErrorUnicodeStringEXT @ stdcall gluGetNurbsProperty(ptr long ptr) wine_gluGetNurbsProperty @ stdcall gluGetString(long) wine_gluGetString @ stdcall gluGetTessProperty(ptr long ptr) wine_gluGetTessProperty
1
0
0
0
Alexandre Julliard : glu32: Implement gluErrorString.
by Alexandre Julliard
07 Apr '17
07 Apr '17
Module: wine Branch: master Commit: 89edb2eee28db6fbf4984f9f6dd6ff1a0cc2335d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=89edb2eee28db6fbf4984f9f6…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Apr 7 20:09:18 2017 +0200 glu32: Implement gluErrorString. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/glu32/glu.c | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 67 insertions(+), 3 deletions(-) diff --git a/dlls/glu32/glu.c b/dlls/glu32/glu.c index 6a00df9..bdcb620 100644 --- a/dlls/glu32/glu.c +++ b/dlls/glu32/glu.c @@ -32,6 +32,67 @@ WINE_DEFAULT_DEBUG_CHANNEL(glu); +static const struct { GLuint err; const char *str; } errors[] = +{ + { GL_NO_ERROR, "no error" }, + { GL_INVALID_ENUM, "invalid enumerant" }, + { GL_INVALID_VALUE, "invalid value" }, + { GL_INVALID_OPERATION, "invalid operation" }, + { GL_STACK_OVERFLOW, "stack overflow" }, + { GL_STACK_UNDERFLOW, "stack underflow" }, + { GL_OUT_OF_MEMORY, "out of memory" }, + { GL_TABLE_TOO_LARGE, "table too large" }, + { GL_INVALID_FRAMEBUFFER_OPERATION_EXT, "invalid framebuffer operation" }, + { GLU_INVALID_ENUM, "invalid enumerant" }, + { GLU_INVALID_VALUE, "invalid value" }, + { GLU_OUT_OF_MEMORY, "out of memory" }, + { GLU_INCOMPATIBLE_GL_VERSION, "incompatible gl version" }, + { GLU_TESS_ERROR1, "gluTessBeginPolygon() must precede a gluTessEndPolygon()" }, + { GLU_TESS_ERROR2, "gluTessBeginContour() must precede a gluTessEndContour()" }, + { GLU_TESS_ERROR3, "gluTessEndPolygon() must follow a gluTessBeginPolygon()" }, + { GLU_TESS_ERROR4, "gluTessEndContour() must follow a gluTessBeginContour()" }, + { GLU_TESS_ERROR5, "a coordinate is too large" }, + { GLU_TESS_ERROR6, "need combine callback" }, + { GLU_NURBS_ERROR1, "spline order un-supported" }, + { GLU_NURBS_ERROR2, "too few knots" }, + { GLU_NURBS_ERROR3, "valid knot range is empty" }, + { GLU_NURBS_ERROR4, "decreasing knot sequence knot" }, + { GLU_NURBS_ERROR5, "knot multiplicity greater than order of spline" }, + { GLU_NURBS_ERROR6, "gluEndCurve() must follow gluBeginCurve()" }, + { GLU_NURBS_ERROR7, "gluBeginCurve() must precede gluEndCurve()" }, + { GLU_NURBS_ERROR8, "missing or extra geometric data" }, + { GLU_NURBS_ERROR9, "can't draw piecewise linear trimming curves" }, + { GLU_NURBS_ERROR10, "missing or extra domain data" }, + { GLU_NURBS_ERROR11, "missing or extra domain data" }, + { GLU_NURBS_ERROR12, "gluEndTrim() must precede gluEndSurface()" }, + { GLU_NURBS_ERROR13, "gluBeginSurface() must precede gluEndSurface()" }, + { GLU_NURBS_ERROR14, "curve of improper type passed as trim curve" }, + { GLU_NURBS_ERROR15, "gluBeginSurface() must precede gluBeginTrim()" }, + { GLU_NURBS_ERROR16, "gluEndTrim() must follow gluBeginTrim()" }, + { GLU_NURBS_ERROR17, "gluBeginTrim() must precede gluEndTrim()" }, + { GLU_NURBS_ERROR18, "invalid or missing trim curve" }, + { GLU_NURBS_ERROR19, "gluBeginTrim() must precede gluPwlCurve()" }, + { GLU_NURBS_ERROR20, "piecewise linear trimming curve referenced twice" }, + { GLU_NURBS_ERROR21, "piecewise linear trimming curve and nurbs curve mixed" }, + { GLU_NURBS_ERROR22, "improper usage of trim data type" }, + { GLU_NURBS_ERROR23, "nurbs curve referenced twice" }, + { GLU_NURBS_ERROR24, "nurbs curve and piecewise linear trimming curve mixed" }, + { GLU_NURBS_ERROR25, "nurbs surface referenced twice" }, + { GLU_NURBS_ERROR26, "invalid property" }, + { GLU_NURBS_ERROR27, "gluEndSurface() must follow gluBeginSurface()" }, + { GLU_NURBS_ERROR28, "intersecting or misoriented trim curves" }, + { GLU_NURBS_ERROR29, "intersecting trim curves" }, + { GLU_NURBS_ERROR30, "UNUSED" }, + { GLU_NURBS_ERROR31, "unconnected trim curves" }, + { GLU_NURBS_ERROR32, "unknown knot error" }, + { GLU_NURBS_ERROR33, "negative vertex count encountered" }, + { GLU_NURBS_ERROR34, "negative byte-stride encountered" }, + { GLU_NURBS_ERROR35, "unknown type descriptor" }, + { GLU_NURBS_ERROR36, "null control point reference" }, + { GLU_NURBS_ERROR37, "duplicate point on piecewise linear trimming curve" }, +}; +#define NB_ERRORS (sizeof(errors) / sizeof(errors[0])) + typedef void (*_GLUfuncptr)(void); /* The only non-trivial bit of this is the *Tess* functions. Here we @@ -72,7 +133,6 @@ static void (*p_gluDisk)( GLUquadric* quad, GLdouble inner, GLdouble outer, GLi static void (*p_gluEndCurve)( GLUnurbs* nurb ); static void (*p_gluEndSurface)( GLUnurbs* nurb ); static void (*p_gluEndTrim)( GLUnurbs* nurb ); -static const GLubyte * (*p_gluErrorString)( GLenum error ); static void (*p_gluGetNurbsProperty)( GLUnurbs* nurb, GLenum property, GLfloat* data ); static void (*p_gluGetTessProperty)( GLUtesselator* tess, GLenum which, GLdouble* data ); static void (*p_gluLoadSamplingMatrices)( GLUnurbs* nurb, const GLfloat *model, const GLfloat *perspective, const GLint *view ); @@ -202,8 +262,12 @@ int WINAPI wine_gluUnProject( GLdouble winx, GLdouble winy, GLdouble winz, const */ const GLubyte * WINAPI wine_gluErrorString( GLenum errCode ) { - if (!LOAD_FUNCPTR( gluErrorString )) return (const GLubyte *)"unknown error"; - return p_gluErrorString( errCode ); + unsigned int i; + + for (i = 0; i < NB_ERRORS; i++) + if (errors[i].err == errCode) return (const GLubyte *)errors[i].str; + + return NULL; } /***********************************************************************
1
0
0
0
Alexandre Julliard : include: Add a glu.h header.
by Alexandre Julliard
07 Apr '17
07 Apr '17
Module: wine Branch: master Commit: 5fff9bcb63192eb93426add62126abc4701cf48b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5fff9bcb63192eb93426add62…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Apr 7 19:52:51 2017 +0200 include: Add a glu.h header. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/glu32/glu.c | 28 +----- dlls/opengl32/wgl.c | 28 +++--- include/wine/glu.h | 264 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 277 insertions(+), 43 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=5fff9bcb63192eb93426a…
1
0
0
0
Stefan Dösinger : comctl32/tests: Don' t dump successful sequences on Windows.
by Alexandre Julliard
07 Apr '17
07 Apr '17
Module: wine Branch: master Commit: 490d6f456b0a6869d5d044a842f00593021cc905 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=490d6f456b0a6869d5d044a84…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Fri Apr 7 16:02:01 2017 +0200 comctl32/tests: Don't dump successful sequences on Windows. Signed-off-by: Stefan Dösinger <stefan(a)codeweavers.com> Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/comctl32/tests/msg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comctl32/tests/msg.h b/dlls/comctl32/tests/msg.h index 3fa0fae..242d690 100644 --- a/dlls/comctl32/tests/msg.h +++ b/dlls/comctl32/tests/msg.h @@ -371,7 +371,7 @@ static void ok_sequence_(struct msg_sequence **seq, int sequence_index, if(todo && !failcount) /* succeeded yet marked todo */ { - dump++; + if (!strcmp(winetest_platform, "wine")) dump++; todo_wine { ok_(file, line)(TRUE, "%s: marked \"todo_wine\" but succeeds\n", context);
1
0
0
0
Jacek Caban : mshtml: Added IHTMLTableCell:: colSpan property implementation.
by Alexandre Julliard
07 Apr '17
07 Apr '17
Module: wine Branch: master Commit: e2a9d203cd781f2ce26b501d8429feb9309fd4fb URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e2a9d203cd781f2ce26b501d8…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Fri Apr 7 19:19:15 2017 +0200 mshtml: Added IHTMLTableCell::colSpan property implementation. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/mshtml/htmltablecell.c | 29 +++++++++++++++++++++++++---- dlls/mshtml/tests/dom.c | 17 +++++++++++++++++ 2 files changed, 42 insertions(+), 4 deletions(-) diff --git a/dlls/mshtml/htmltablecell.c b/dlls/mshtml/htmltablecell.c index 8e3a8d1..12895a2 100644 --- a/dlls/mshtml/htmltablecell.c +++ b/dlls/mshtml/htmltablecell.c @@ -135,15 +135,36 @@ static HRESULT WINAPI HTMLTableCell_get_rowSpan(IHTMLTableCell *iface, LONG *p) static HRESULT WINAPI HTMLTableCell_put_colSpan(IHTMLTableCell *iface, LONG v) { HTMLTableCell *This = impl_from_IHTMLTableCell(iface); - FIXME("(%p)->(%d)\n", This, v); - return E_NOTIMPL; + nsresult nsres; + + TRACE("(%p)->(%d)\n", This, v); + + if(v <= 0) + return E_INVALIDARG; + + nsres = nsIDOMHTMLTableCellElement_SetColSpan(This->nscell, v); + if(NS_FAILED(nsres)) { + ERR("SetColSpan failed: %08x\n", nsres); + return E_FAIL; + } + + return S_OK; } static HRESULT WINAPI HTMLTableCell_get_colSpan(IHTMLTableCell *iface, LONG *p) { HTMLTableCell *This = impl_from_IHTMLTableCell(iface); - FIXME("(%p)->(%p)\n", This, p); - return E_NOTIMPL; + nsresult nsres; + + TRACE("(%p)->(%p)\n", This, p); + + nsres = nsIDOMHTMLTableCellElement_GetColSpan(This->nscell, p); + if(NS_FAILED(nsres)) { + ERR("GetColSpan failed: %08x\n", nsres); + return E_FAIL; + } + + return S_OK; } static HRESULT WINAPI HTMLTableCell_put_align(IHTMLTableCell *iface, BSTR v) diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c index ac0ddff..db1de1f 100644 --- a/dlls/mshtml/tests/dom.c +++ b/dlls/mshtml/tests/dom.c @@ -7325,6 +7325,23 @@ static void test_td_elem(IHTMLDocument2 *doc, IHTMLElement *div) ok(hres == S_OK, "get_rowSpan failed: %08x\n", hres); ok(lval == 2, "rowSpan = %d\n", lval); + hres = IHTMLTableCell_get_colSpan(cell, &lval); + ok(hres == S_OK, "get_rowSpan failed: %08x\n", hres); + ok(lval == 1, "rowSpan = %d\n", lval); + + hres = IHTMLTableCell_put_colSpan(cell, -1); + ok(hres == E_INVALIDARG, "put_rowSpan failed: %08x\n", hres); + + hres = IHTMLTableCell_put_colSpan(cell, 0); + ok(hres == E_INVALIDARG, "put_rowSpan failed: %08x\n", hres); + + hres = IHTMLTableCell_put_colSpan(cell, 2); + ok(hres == S_OK, "put_rowSpan failed: %08x\n", hres); + + hres = IHTMLTableCell_get_colSpan(cell, &lval); + ok(hres == S_OK, "get_rowSpan failed: %08x\n", hres); + ok(lval == 2, "rowSpan = %d\n", lval); + IHTMLTableCell_Release(cell); }
1
0
0
0
Jacek Caban : mshtml: Added IHTMLTableCell:: rowSpan property implementation.
by Alexandre Julliard
07 Apr '17
07 Apr '17
Module: wine Branch: master Commit: b1c7b89125c6fb52a65a87e70bec7fd2678a9b34 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b1c7b89125c6fb52a65a87e70…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Fri Apr 7 19:19:09 2017 +0200 mshtml: Added IHTMLTableCell::rowSpan property implementation. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/mshtml/htmltablecell.c | 29 +++++++++++++++++++++++++---- dlls/mshtml/tests/dom.c | 41 ++++++++++++++++++++++++++++++----------- 2 files changed, 55 insertions(+), 15 deletions(-) diff --git a/dlls/mshtml/htmltablecell.c b/dlls/mshtml/htmltablecell.c index 64a5862..8e3a8d1 100644 --- a/dlls/mshtml/htmltablecell.c +++ b/dlls/mshtml/htmltablecell.c @@ -100,15 +100,36 @@ static HRESULT WINAPI HTMLTableCell_Invoke(IHTMLTableCell *iface, DISPID dispIdM static HRESULT WINAPI HTMLTableCell_put_rowSpan(IHTMLTableCell *iface, LONG v) { HTMLTableCell *This = impl_from_IHTMLTableCell(iface); - FIXME("(%p)->(%d)\n", This, v); - return E_NOTIMPL; + nsresult nsres; + + TRACE("(%p)->(%d)\n", This, v); + + if(v <= 0) + return E_INVALIDARG; + + nsres = nsIDOMHTMLTableCellElement_SetRowSpan(This->nscell, v); + if(NS_FAILED(nsres)) { + ERR("SetRowSpan failed: %08x\n", nsres); + return E_FAIL; + } + + return S_OK; } static HRESULT WINAPI HTMLTableCell_get_rowSpan(IHTMLTableCell *iface, LONG *p) { HTMLTableCell *This = impl_from_IHTMLTableCell(iface); - FIXME("(%p)->(%p)\n", This, p); - return E_NOTIMPL; + nsresult nsres; + + TRACE("(%p)->(%p)\n", This, p); + + nsres = nsIDOMHTMLTableCellElement_GetRowSpan(This->nscell, p); + if(NS_FAILED(nsres)) { + ERR("GetRowSpan failed: %08x\n", nsres); + return E_FAIL; + } + + return S_OK; } static HRESULT WINAPI HTMLTableCell_put_colSpan(IHTMLTableCell *iface, LONG v) diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c index 7524d55..ac0ddff 100644 --- a/dlls/mshtml/tests/dom.c +++ b/dlls/mshtml/tests/dom.c @@ -7234,23 +7234,31 @@ static void test_tr_elem(IHTMLElement *elem) IHTMLTableRow_Release(row); } -static void test_td_elem(IHTMLElement *elem) +static void test_td_elem(IHTMLDocument2 *doc, IHTMLElement *div) { IHTMLTableCell *cell; + IHTMLElement *elem; HRESULT hres; LONG lval; BSTR str; VARIANT vbg, vDefaultbg; + test_elem_set_innerhtml((IUnknown*)div, + "<table id=\"tbl\"><tbody>" + " <tr></tr>" + " <tr id=\"row2\"><td id=\"td1\">td1 text</td><td id=\"td2\">td2 text</td><td></td></tr>" + " <tr></tr>" + "</tbody></table>"); + + elem = get_doc_elem_by_id(doc, "td1"); hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLTableCell, (void**)&cell); ok(hres == S_OK, "Could not get IHTMLTableRow iface: %08x\n", hres); - if(FAILED(hres)) - return; + IHTMLElement_Release(elem); lval = 0xdeadbeef; hres = IHTMLTableCell_get_cellIndex(cell, &lval); ok(hres == S_OK, "get cellIndex failed: %08x\n", hres); - ok(lval == 1, "Expected 1, got %d\n", lval); + ok(!lval, "Expected 0, got %d\n", lval); str = a2bstr("left"); hres = IHTMLTableCell_put_align(cell, str); @@ -7300,6 +7308,23 @@ static void test_td_elem(IHTMLElement *elem) ok(hres == S_OK, "put_bgColor failed: %08x\n", hres); VariantClear(&vDefaultbg); + hres = IHTMLTableCell_get_rowSpan(cell, &lval); + ok(hres == S_OK, "get_rowSpan failed: %08x\n", hres); + ok(lval == 1, "rowSpan = %d\n", lval); + + hres = IHTMLTableCell_put_rowSpan(cell, -1); + ok(hres == E_INVALIDARG, "put_rowSpan failed: %08x\n", hres); + + hres = IHTMLTableCell_put_rowSpan(cell, 0); + ok(hres == E_INVALIDARG, "put_rowSpan failed: %08x\n", hres); + + hres = IHTMLTableCell_put_rowSpan(cell, 2); + ok(hres == S_OK, "put_rowSpan failed: %08x\n", hres); + + hres = IHTMLTableCell_get_rowSpan(cell, &lval); + ok(hres == S_OK, "get_rowSpan failed: %08x\n", hres); + ok(lval == 2, "rowSpan = %d\n", lval); + IHTMLTableCell_Release(cell); } @@ -8543,13 +8568,6 @@ static void test_elems(IHTMLDocument2 *doc) IHTMLElement_Release(elem); } - elem = get_doc_elem_by_id(doc, "td2"); - ok(elem != NULL, "elem == NULL\n"); - if(elem) { - test_td_elem(elem); - IHTMLElement_Release(elem); - } - elem = get_doc_elem_by_id(doc, "row2"); ok(elem != NULL, "elem == NULL\n"); if(elem) { @@ -9246,6 +9264,7 @@ static void test_elems2(IHTMLDocument2 *doc) IHTMLElement_Release(elem); } + test_td_elem(doc, div); test_attr(doc, div); test_blocked(doc, div); test_elem_names(doc);
1
0
0
0
Jacek Caban : wininet: Don' t use returned read size if read failed in gzip_read.
by Alexandre Julliard
07 Apr '17
07 Apr '17
Module: wine Branch: master Commit: 7d8cf318a40ed01a496056e12fecf374b654e966 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7d8cf318a40ed01a496056e12…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Fri Apr 7 17:31:02 2017 +0200 wininet: Don't use returned read size if read failed in gzip_read. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/wininet/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index fd58b1f..321d569 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -466,10 +466,10 @@ static DWORD gzip_read(data_stream_t *stream, http_request_t *req, BYTE *buf, DW } res = gzip_stream->parent_stream->vtbl->read(gzip_stream->parent_stream, req, gzip_stream->buf+gzip_stream->buf_size, sizeof(gzip_stream->buf)-gzip_stream->buf_size, ¤t_read, allow_blocking); - gzip_stream->buf_size += current_read; if(res != ERROR_SUCCESS) break; + gzip_stream->buf_size += current_read; if(!current_read) { WARN("unexpected end of data\n"); gzip_stream->end_of_data = TRUE;
1
0
0
0
Józef Kucia : wined3d: Eliminate holes in wined3d_shader_instruction structure.
by Alexandre Julliard
07 Apr '17
07 Apr '17
Module: wine Branch: master Commit: 250f719749129fd81f3f1c74bc8190d3dd825c84 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=250f719749129fd81f3f1c74b…
Author: Józef Kucia <jkucia(a)codeweavers.com> Date: Fri Apr 7 14:45:15 2017 +0200 wined3d: Eliminate holes in wined3d_shader_instruction structure. Signed-off-by: Józef Kucia <jkucia(a)codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/wined3d/wined3d_private.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index 1641390..761ef18 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -1140,13 +1140,13 @@ struct wined3d_shader_instruction const struct wined3d_shader_context *ctx; enum WINED3D_SHADER_INSTRUCTION_HANDLER handler_idx; DWORD flags; - BOOL coissue; - const struct wined3d_shader_src_param *predicate; - UINT dst_count; + unsigned int dst_count; + unsigned int src_count; const struct wined3d_shader_dst_param *dst; - UINT src_count; const struct wined3d_shader_src_param *src; struct wined3d_shader_texel_offset texel_offset; + BOOL coissue; + const struct wined3d_shader_src_param *predicate; union { struct wined3d_shader_semantic semantic;
1
0
0
0
Józef Kucia : wined3d: Eliminate holes in wined3d_resource structure.
by Alexandre Julliard
07 Apr '17
07 Apr '17
Module: wine Branch: master Commit: a48d7a275d33ba435f3808b2e97e582dbd4d38d7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a48d7a275d33ba435f3808b2e…
Author: Józef Kucia <jkucia(a)codeweavers.com> Date: Fri Apr 7 14:45:14 2017 +0200 wined3d: Eliminate holes in wined3d_resource structure. Signed-off-by: Józef Kucia <jkucia(a)codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/wined3d/wined3d_private.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index 8ce3363..1641390 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -2749,6 +2749,7 @@ struct wined3d_resource LONG ref; LONG bind_count; LONG map_count; + LONG access_count; struct wined3d_device *device; enum wined3d_resource_type type; enum wined3d_gl_resource_type gl_type; @@ -2759,20 +2760,20 @@ struct wined3d_resource DWORD usage; enum wined3d_pool pool; DWORD access_flags; - DWORD draw_binding; - DWORD map_binding; + WORD draw_binding; + WORD map_binding; UINT width; UINT height; UINT depth; UINT size; DWORD priority; void *heap_memory; - struct list resource_list_entry; - LONG access_count; void *parent; const struct wined3d_parent_ops *parent_ops; const struct wined3d_resource_ops *resource_ops; + + struct list resource_list_entry; }; static inline ULONG wined3d_resource_incref(struct wined3d_resource *resource)
1
0
0
0
← Newer
1
...
57
58
59
60
61
62
63
...
76
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
Results per page:
10
25
50
100
200