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
July
June
May
April
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
August 2007
----- 2025 -----
July 2025
June 2025
May 2025
April 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
1085 discussions
Start a n
N
ew thread
Evan Stade : gdiplus: Added GdipDrawLine.
by Alexandre Julliard
02 Aug '07
02 Aug '07
Module: wine Branch: master Commit: 5e29e37af5780793e64631670cfcf15ee0b9159b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5e29e37af5780793e64631670…
Author: Evan Stade <estade(a)gmail.com> Date: Wed Aug 1 17:55:58 2007 -0700 gdiplus: Added GdipDrawLine. --- dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/graphics.c | 24 ++++++++++++++++++++++++ include/gdiplusflat.h | 1 + 3 files changed, 26 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index bb5c36d..871a9c4 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -185,7 +185,7 @@ @ stub GdipDrawImageRectI @ stub GdipDrawImageRectRect @ stub GdipDrawImageRectRectI -@ stub GdipDrawLine +@ stdcall GdipDrawLine(ptr ptr long long long long) @ stdcall GdipDrawLineI(ptr ptr long long long long) @ stdcall GdipDrawLines(ptr ptr ptr long) @ stub GdipDrawLinesI diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 7c8fc16..439dedd 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -1076,6 +1076,30 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics *graphics, GpImage *image return Ok; } +GpStatus WINGDIPAPI GdipDrawLine(GpGraphics *graphics, GpPen *pen, REAL x1, + REAL y1, REAL x2, REAL y2) +{ + INT save_state; + GpPointF pt[2]; + GpStatus retval; + + if(!pen || !graphics) + return InvalidParameter; + + pt[0].X = x1; + pt[0].Y = y1; + pt[1].X = x2; + pt[1].Y = y2; + + save_state = prepare_dc(graphics, pen); + + retval = draw_polyline(graphics, pen, pt, 2, TRUE); + + restore_dc(graphics, save_state); + + return retval; +} + GpStatus WINGDIPAPI GdipDrawLineI(GpGraphics *graphics, GpPen *pen, INT x1, INT y1, INT x2, INT y2) { diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index 9756403..25b9b1b 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -60,6 +60,7 @@ GpStatus WINGDIPAPI GdipDrawCurve2(GpGraphics*,GpPen*,GDIPCONST GpPointF*,INT,RE GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics*,GpImage*, GDIPCONST GpPointF*,INT,REAL,REAL,REAL,REAL,GpUnit, GDIPCONST GpImageAttributes*,DrawImageAbort,VOID*); +GpStatus WINGDIPAPI GdipDrawLine(GpGraphics *graphics,GpPen*,REAL,REAL,REAL,REAL); GpStatus WINGDIPAPI GdipDrawLineI(GpGraphics*,GpPen*,INT,INT,INT,INT); GpStatus WINGDIPAPI GdipDrawLines(GpGraphics*,GpPen*,GDIPCONST GpPointF*,INT); GpStatus WINGDIPAPI GdipDrawPath(GpGraphics*,GpPen*,GpPath*);
1
0
0
0
Evan Stade : gdiplus: Added GdipSetPenWidth.
by Alexandre Julliard
02 Aug '07
02 Aug '07
Module: wine Branch: master Commit: 0d45cd0212365dd66898dbe895ebf18ded265b72 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0d45cd0212365dd66898dbe89…
Author: Evan Stade <estade(a)gmail.com> Date: Wed Aug 1 17:55:54 2007 -0700 gdiplus: Added GdipSetPenWidth. --- dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/pen.c | 9 +++++++++ include/gdiplusflat.h | 1 + 3 files changed, 11 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index 0087aef..bb5c36d 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -579,7 +579,7 @@ @ stdcall GdipSetPenStartCap(ptr long) @ stub GdipSetPenTransform @ stub GdipSetPenUnit -@ stub GdipSetPenWidth +@ stdcall GdipSetPenWidth(ptr long) @ stdcall GdipSetPixelOffsetMode(ptr long) @ stub GdipSetPropertyItem @ stub GdipSetRenderingOrigin diff --git a/dlls/gdiplus/pen.c b/dlls/gdiplus/pen.c index f121380..388567a 100644 --- a/dlls/gdiplus/pen.c +++ b/dlls/gdiplus/pen.c @@ -341,3 +341,12 @@ GpStatus WINGDIPAPI GdipSetPenStartCap(GpPen *pen, GpLineCap cap) return Ok; } + +GpStatus WINGDIPAPI GdipSetPenWidth(GpPen *pen, REAL width) +{ + if(!pen) return InvalidParameter; + + pen->width = width; + + return Ok; +} diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index cd4f3d6..9756403 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -45,6 +45,7 @@ GpStatus WINGDIPAPI GdipSetPenLineCap197819(GpPen*,GpLineCap,GpLineCap,GpDashCap GpStatus WINGDIPAPI GdipSetPenLineJoin(GpPen*,GpLineJoin); GpStatus WINGDIPAPI GdipSetPenMiterLimit(GpPen*,REAL); GpStatus WINGDIPAPI GdipSetPenStartCap(GpPen*,GpLineCap); +GpStatus WINGDIPAPI GdipSetPenWidth(GpPen*,REAL); GpStatus WINGDIPAPI GdipCreateFromHDC(HDC,GpGraphics**); GpStatus WINGDIPAPI GdipCreateFromHWND(HWND,GpGraphics**);
1
0
0
0
Evan Stade : gdiplus: Added GdipFillPolygon.
by Alexandre Julliard
02 Aug '07
02 Aug '07
Module: wine Branch: master Commit: 1ef7793b51339d37c3f695faa9e90576e8ff5d2b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1ef7793b51339d37c3f695faa…
Author: Evan Stade <estade(a)gmail.com> Date: Wed Aug 1 17:55:50 2007 -0700 gdiplus: Added GdipFillPolygon. --- dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/graphics.c | 39 +++++++++++++++++++++++++++++++++++++++ include/gdiplusflat.h | 2 ++ 3 files changed, 42 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index 81ff0ae..0087aef 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -224,7 +224,7 @@ @ stub GdipFillPieI @ stub GdipFillPolygon2 @ stub GdipFillPolygon2I -@ stub GdipFillPolygon +@ stdcall GdipFillPolygon(ptr ptr ptr long long) @ stdcall GdipFillPolygonI(ptr ptr ptr long long) @ stub GdipFillRectangle @ stub GdipFillRectangleI diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 2be9fc7..7c8fc16 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -1224,6 +1224,45 @@ GpStatus WINGDIPAPI GdipFillPie(GpGraphics *graphics, GpBrush *brush, REAL x, return Ok; } +GpStatus WINGDIPAPI GdipFillPolygon(GpGraphics *graphics, GpBrush *brush, + GDIPCONST GpPointF *points, INT count, GpFillMode fillMode) +{ + INT save_state; + GpPointF *ptf = NULL; + POINT *pti = NULL; + GpStatus retval = Ok; + + if(!graphics || !brush || !points || !count) + return InvalidParameter; + + ptf = GdipAlloc(count * sizeof(GpPointF)); + pti = GdipAlloc(count * sizeof(POINT)); + if(!ptf || !pti){ + retval = OutOfMemory; + goto end; + } + + memcpy(ptf, points, count * sizeof(GpPointF)); + + save_state = SaveDC(graphics->hdc); + EndPath(graphics->hdc); + SelectObject(graphics->hdc, brush->gdibrush); + SelectObject(graphics->hdc, GetStockObject(NULL_PEN)); + SetPolyFillMode(graphics->hdc, (fillMode == FillModeAlternate ? ALTERNATE + : WINDING)); + + transform_and_round_points(graphics, pti, ptf, count); + Polygon(graphics->hdc, pti, count); + + RestoreDC(graphics->hdc, save_state); + +end: + GdipFree(ptf); + GdipFree(pti); + + return retval; +} + GpStatus WINGDIPAPI GdipFillPolygonI(GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPoint *points, INT count, GpFillMode fillMode) { diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index 045c17b..cd4f3d6 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -102,6 +102,8 @@ GpStatus WINGDIPAPI GdipClosePathFigure(GpPath*); GpStatus WINGDIPAPI GdipClosePathFigures(GpPath*); GpStatus WINGDIPAPI GdipCreatePath(GpFillMode,GpPath**); GpStatus WINGDIPAPI GdipDeletePath(GpPath*); +GpStatus WINGDIPAPI GdipFillPolygon(GpGraphics*,GpBrush*,GDIPCONST GpPointF*, + INT,GpFillMode); GpStatus WINGDIPAPI GdipGetPathFillMode(GpPath*,GpFillMode*); GpStatus WINGDIPAPI GdipGetPathPoints(GpPath*,GpPointF*,INT); GpStatus WINGDIPAPI GdipGetPathTypes(GpPath*,BYTE*,INT);
1
0
0
0
Evan Stade : gdiplus: Added GdipClonePath.
by Alexandre Julliard
02 Aug '07
02 Aug '07
Module: wine Branch: master Commit: bba20a68b8e4895583b917e9df8962d94f4b45bf URL:
http://source.winehq.org/git/wine.git/?a=commit;h=bba20a68b8e4895583b917e9d…
Author: Evan Stade <estade(a)gmail.com> Date: Wed Aug 1 17:55:44 2007 -0700 gdiplus: Added GdipClonePath. --- dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/graphicspath.c | 26 ++++++++++++++++++++++++++ include/gdiplusflat.h | 1 + 3 files changed, 28 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index 1b96a3b..81ff0ae 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -55,7 +55,7 @@ @ stub GdipCloneImage @ stub GdipCloneImageAttributes @ stdcall GdipCloneMatrix(ptr ptr) -@ stub GdipClonePath +@ stdcall GdipClonePath(ptr ptr) @ stdcall GdipClonePen(ptr ptr) @ stub GdipCloneRegion @ stub GdipCloneStringFormat diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c index 82f5838..b11d918 100644 --- a/dlls/gdiplus/graphicspath.c +++ b/dlls/gdiplus/graphicspath.c @@ -212,6 +212,32 @@ GpStatus WINGDIPAPI GdipAddPathPath(GpPath *path, GDIPCONST GpPath* addingPath, return Ok; } +GpStatus WINGDIPAPI GdipClonePath(GpPath* path, GpPath **clone) +{ + if(!path || !clone) + return InvalidParameter; + + *clone = GdipAlloc(sizeof(GpPath)); + if(!*clone) return OutOfMemory; + + memcpy(*clone, path, sizeof(GpPath)); + + (*clone)->pathdata.Points = GdipAlloc(path->datalen * sizeof(PointF)); + (*clone)->pathdata.Types = GdipAlloc(path->datalen); + if(!(*clone)->pathdata.Points || !(*clone)->pathdata.Types){ + GdipFree(*clone); + GdipFree((*clone)->pathdata.Points); + GdipFree((*clone)->pathdata.Types); + return OutOfMemory; + } + + memcpy((*clone)->pathdata.Points, path->pathdata.Points, + path->datalen * sizeof(PointF)); + memcpy((*clone)->pathdata.Types, path->pathdata.Types, path->datalen); + + return Ok; +} + GpStatus WINGDIPAPI GdipClosePathFigure(GpPath* path) { if(!path) diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index 90c7e45..045c17b 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -97,6 +97,7 @@ GpStatus WINGDIPAPI GdipAddPathBeziers(GpPath*,GDIPCONST GpPointF*,INT); GpStatus WINGDIPAPI GdipAddPathEllipse(GpPath*,REAL,REAL,REAL,REAL); GpStatus WINGDIPAPI GdipAddPathLine2(GpPath*,GDIPCONST GpPointF*,INT); GpStatus WINGDIPAPI GdipAddPathPath(GpPath*,GDIPCONST GpPath*,BOOL); +GpStatus WINGDIPAPI GdipClonePath(GpPath*,GpPath**); GpStatus WINGDIPAPI GdipClosePathFigure(GpPath*); GpStatus WINGDIPAPI GdipClosePathFigures(GpPath*); GpStatus WINGDIPAPI GdipCreatePath(GpFillMode,GpPath**);
1
0
0
0
Evan Stade : gdiplus: Added GdipIsOutlineVisiblePathPointI stub.
by Alexandre Julliard
02 Aug '07
02 Aug '07
Module: wine Branch: master Commit: fdf9f8fb0536d2f56198478e04f2f928f5c22323 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fdf9f8fb0536d2f56198478e0…
Author: Evan Stade <estade(a)gmail.com> Date: Wed Aug 1 17:55:38 2007 -0700 gdiplus: Added GdipIsOutlineVisiblePathPointI stub. --- dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/graphicspath.c | 14 ++++++++++++++ include/gdiplusflat.h | 2 ++ 3 files changed, 17 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index e1878e9..1b96a3b 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -422,7 +422,7 @@ @ stub GdipIsMatrixIdentity @ stub GdipIsMatrixInvertible @ stub GdipIsOutlineVisiblePathPoint -@ stub GdipIsOutlineVisiblePathPointI +@ stdcall GdipIsOutlineVisiblePathPointI(ptr long long ptr ptr ptr) @ stub GdipIsStyleAvailable @ stub GdipIsVisibleClipEmpty @ stub GdipIsVisiblePathPoint diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c index ea52408..82f5838 100644 --- a/dlls/gdiplus/graphicspath.c +++ b/dlls/gdiplus/graphicspath.c @@ -399,6 +399,20 @@ GpStatus WINGDIPAPI GdipGetPointCount(GpPath *path, INT *count) return Ok; } +GpStatus WINGDIPAPI GdipIsOutlineVisiblePathPointI(GpPath* path, INT x, INT y, + GpPen *pen, GpGraphics *graphics, BOOL *result) +{ + static int calls; + + if(!path || !pen) + return InvalidParameter; + + if(!(calls++)) + FIXME("not implemented\n"); + + return NotImplemented; +} + GpStatus WINGDIPAPI GdipStartPathFigure(GpPath *path) { if(!path) diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index e8b067d..90c7e45 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -107,6 +107,8 @@ GpStatus WINGDIPAPI GdipGetPathTypes(GpPath*,BYTE*,INT); GpStatus WINGDIPAPI GdipGetPathWorldBounds(GpPath*,GpRectF*,GDIPCONST GpMatrix*, GDIPCONST GpPen*); GpStatus WINGDIPAPI GdipGetPointCount(GpPath*,INT*); +GpStatus WINGDIPAPI GdipIsOutlineVisiblePathPointI(GpPath*,INT,INT,GpPen*, + GpGraphics*,BOOL*); GpStatus WINGDIPAPI GdipStartPathFigure(GpPath*); GpStatus WINGDIPAPI GdipResetPath(GpPath*); GpStatus WINGDIPAPI GdipSetPathFillMode(GpPath*,GpFillMode);
1
0
0
0
Evan Stade : gdiplus: Don't suggest image size when converting WMF to EMF.
by Alexandre Julliard
02 Aug '07
02 Aug '07
Module: wine Branch: master Commit: 192e1115bd9416944ff5fed8c3962271a795cf22 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=192e1115bd9416944ff5fed8c…
Author: Evan Stade <estade(a)gmail.com> Date: Wed Aug 1 17:55:33 2007 -0700 gdiplus: Don't suggest image size when converting WMF to EMF. --- dlls/gdiplus/graphics.c | 11 +---------- 1 files changed, 1 insertions(+), 10 deletions(-) diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 7ba2d52..2be9fc7 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -849,7 +849,6 @@ GpStatus WINGDIPAPI GdipCreateMetafileFromWmf(HMETAFILE hwmf, BOOL delete, IStream *stream = NULL; UINT read; BYTE* copy; - METAFILEPICT mfp; HENHMETAFILE hemf; GpStatus retval = GenericError; @@ -859,21 +858,13 @@ GpStatus WINGDIPAPI GdipCreateMetafileFromWmf(HMETAFILE hwmf, BOOL delete, if(!(calls++)) FIXME("partially implemented\n"); - if(placeable->Inch != INCH_HIMETRIC) - return NotImplemented; - - mfp.mm = MM_HIMETRIC; - mfp.xExt = placeable->BoundingBox.Right - placeable->BoundingBox.Left; - mfp.yExt = placeable->BoundingBox.Bottom - placeable->BoundingBox.Top; - mfp.hMF = NULL; - read = GetMetaFileBitsEx(hwmf, 0, NULL); if(!read) return GenericError; copy = GdipAlloc(read); GetMetaFileBitsEx(hwmf, read, copy); - hemf = SetWinMetaFileBits(read, copy, NULL, &mfp); + hemf = SetWinMetaFileBits(read, copy, NULL, NULL); GdipFree(copy); read = GetEnhMetaFileBits(hemf, 0, NULL);
1
0
0
0
Evan Stade : oleaut32: Slight correction to EMF rendering.
by Alexandre Julliard
02 Aug '07
02 Aug '07
Module: wine Branch: master Commit: a55f233219c3877db9defd1c86c4046e869da76f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a55f233219c3877db9defd1c8…
Author: Evan Stade <estade(a)gmail.com> Date: Wed Aug 1 17:55:27 2007 -0700 oleaut32: Slight correction to EMF rendering. --- dlls/oleaut32/olepicture.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c index e1c61b2..a7dc158 100644 --- a/dlls/oleaut32/olepicture.c +++ b/dlls/oleaut32/olepicture.c @@ -683,7 +683,7 @@ static HRESULT WINAPI OLEPictureImpl_Render(IPicture *iface, HDC hdc, case PICTYPE_ENHMETAFILE: { - RECT rc = { x, y, cx, cy }; + RECT rc = { x, y, x + cx, y + cy }; PlayEnhMetaFile(hdc, This->desc.u.emf.hemf, &rc); break; }
1
0
0
0
James Hawkins : msi: Reimplement joins to allow joining any number of tables, each of arbitrary size.
by Alexandre Julliard
02 Aug '07
02 Aug '07
Module: wine Branch: master Commit: 2e6ed06fdcfbb9b71dd550505e784f5d1041eff6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2e6ed06fdcfbb9b71dd550505…
Author: James Hawkins <truiken(a)gmail.com> Date: Wed Aug 1 14:25:45 2007 -0700 msi: Reimplement joins to allow joining any number of tables, each of arbitrary size. --- dlls/msi/join.c | 308 ++++++++++++++++++++++++++------------------------- dlls/msi/query.h | 3 +- dlls/msi/sql.y | 36 ++++++- dlls/msi/tests/db.c | 25 ++--- 4 files changed, 200 insertions(+), 172 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=2e6ed06fdcfbb9b71dd55…
1
0
0
0
James Hawkins : msi: Add tests for joining three tables.
by Alexandre Julliard
02 Aug '07
02 Aug '07
Module: wine Branch: master Commit: 4f6a93b9c87e930fe6bd5ba16c3e17507dbb1012 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4f6a93b9c87e930fe6bd5ba16…
Author: James Hawkins <truiken(a)gmail.com> Date: Wed Aug 1 14:24:01 2007 -0700 msi: Add tests for joining three tables. --- dlls/msi/tests/db.c | 137 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 137 insertions(+), 0 deletions(-) diff --git a/dlls/msi/tests/db.c b/dlls/msi/tests/db.c index 89cc48a..a857dbf 100644 --- a/dlls/msi/tests/db.c +++ b/dlls/msi/tests/db.c @@ -2463,6 +2463,16 @@ struct join_res_4col const CHAR four[MAX_PATH]; }; +struct join_res_uint +{ + UINT one; + UINT two; + UINT three; + UINT four; + UINT five; + UINT six; +}; + static const struct join_res join_res_first[] = { { "alveolar", "procerus" }, @@ -2521,6 +2531,16 @@ static const struct join_res_4col join_res_eighth[] = { "msvcr.dll", "msvcr.dll.56789", "single.dll.31415", "msvcp.dll" }, }; +static const struct join_res_uint join_res_ninth[] = +{ + { 1, 2, 3, 4, 7, 8 }, + { 1, 2, 5, 6, 7, 8 }, + { 1, 2, 3, 4, 9, 10 }, + { 1, 2, 5, 6, 9, 10 }, + { 1, 2, 3, 4, 11, 12 }, + { 1, 2, 5, 6, 11, 12 }, +}; + static void test_join(void) { MSIHANDLE hdb, hview, hrec; @@ -2590,6 +2610,58 @@ static void test_join(void) r = add_binary_entry( hdb, "'single.dll.31415', 'msvcp.dll'" ); ok( r == ERROR_SUCCESS, "cannot add binary: %d\n", r ); + query = "CREATE TABLE `One` (`A` SHORT, `B` SHORT PRIMARY KEY `A`)"; + r = run_query( hdb, 0, query); + ok(r == ERROR_SUCCESS, "cannot create table: %d\n", r ); + + query = "CREATE TABLE `Two` (`C` SHORT, `D` SHORT PRIMARY KEY `C`)"; + r = run_query( hdb, 0, query); + ok(r == ERROR_SUCCESS, "cannot create table: %d\n", r ); + + query = "CREATE TABLE `Three` (`E` SHORT, `F` SHORT PRIMARY KEY `E`)"; + r = run_query( hdb, 0, query); + ok(r == ERROR_SUCCESS, "cannot create table: %d\n", r ); + + query = "INSERT INTO `One` (`A`, `B`) VALUES (1, 2)"; + r = run_query( hdb, 0, query); + ok(r == ERROR_SUCCESS, "cannot insert into table: %d\n", r ); + + query = "INSERT INTO `Two` (`C`, `D`) VALUES (3, 4)"; + r = run_query( hdb, 0, query); + ok(r == ERROR_SUCCESS, "cannot insert into table: %d\n", r ); + + query = "INSERT INTO `Two` (`C`, `D`) VALUES (5, 6)"; + r = run_query( hdb, 0, query); + ok(r == ERROR_SUCCESS, "cannot insert into table: %d\n", r ); + + query = "INSERT INTO `Three` (`E`, `F`) VALUES (7, 8)"; + r = run_query( hdb, 0, query); + ok(r == ERROR_SUCCESS, "cannot insert into table: %d\n", r ); + + query = "INSERT INTO `Three` (`E`, `F`) VALUES (9, 10)"; + r = run_query( hdb, 0, query); + ok(r == ERROR_SUCCESS, "cannot insert into table: %d\n", r ); + + query = "INSERT INTO `Three` (`E`, `F`) VALUES (11, 12)"; + r = run_query( hdb, 0, query); + ok(r == ERROR_SUCCESS, "cannot insert into table: %d\n", r ); + + query = "CREATE TABLE `Four` (`G` SHORT, `H` SHORT PRIMARY KEY `G`)"; + r = run_query( hdb, 0, query); + ok(r == ERROR_SUCCESS, "cannot create table: %d\n", r ); + + query = "CREATE TABLE `Five` (`I` SHORT, `J` SHORT PRIMARY KEY `I`)"; + r = run_query( hdb, 0, query); + ok(r == ERROR_SUCCESS, "cannot create table: %d\n", r ); + + query = "INSERT INTO `Five` (`I`, `J`) VALUES (13, 14)"; + r = run_query( hdb, 0, query); + ok(r == ERROR_SUCCESS, "cannot insert into table: %d\n", r ); + + query = "INSERT INTO `Five` (`I`, `J`) VALUES (15, 16)"; + r = run_query( hdb, 0, query); + ok(r == ERROR_SUCCESS, "cannot insert into table: %d\n", r ); + query = "SELECT `Component`.`ComponentId`, `FeatureComponents`.`Feature_` " "FROM `Component`, `FeatureComponents` " "WHERE `Component`.`Component` = `FeatureComponents`.`Component_` " @@ -2984,6 +3056,71 @@ static void test_join(void) MsiViewClose(hview); MsiCloseHandle(hview); + query = "SELECT * FROM `One`, `Two`, `Three` "; + r = MsiDatabaseOpenView(hdb, query, &hview); + todo_wine ok( r == ERROR_SUCCESS, "failed to open view: %d\n", r ); + + r = MsiViewExecute(hview, 0); + todo_wine ok( r == ERROR_SUCCESS, "failed to execute view: %d\n", r ); + + i = 0; + data_correct = TRUE; + while ((r = MsiViewFetch(hview, &hrec)) == ERROR_SUCCESS) + { + count = MsiRecordGetFieldCount( hrec ); + ok( count == 6, "Expected 6 record fields, got %d\n", count ); + + r = MsiRecordGetInteger( hrec, 1 ); + if( r != join_res_ninth[i].one ) + data_correct = FALSE; + + r = MsiRecordGetInteger( hrec, 2 ); + if( r != join_res_ninth[i].two ) + data_correct = FALSE; + + r = MsiRecordGetInteger( hrec, 3 ); + if( r != join_res_ninth[i].three ) + data_correct = FALSE; + + r = MsiRecordGetInteger( hrec, 4 ); + if( r != join_res_ninth[i].four ) + data_correct = FALSE; + + r = MsiRecordGetInteger( hrec, 5 ); + if( r != join_res_ninth[i].five ) + data_correct = FALSE; + + r = MsiRecordGetInteger( hrec, 6); + if( r != join_res_ninth[i].six ) + data_correct = FALSE; + + i++; + MsiCloseHandle(hrec); + } + ok( data_correct, "data returned in the wrong order\n"); + + todo_wine + { + ok( i == 6, "Expected 6 rows, got %d\n", i ); + ok( r == ERROR_NO_MORE_ITEMS, "expected no more items: %d\n", r ); + } + + MsiViewClose(hview); + MsiCloseHandle(hview); + + query = "SELECT * FROM `Four`, `Five`"; + r = MsiDatabaseOpenView(hdb, query, &hview); + ok( r == ERROR_SUCCESS, "failed to open view: %d\n", r ); + + r = MsiViewExecute(hview, 0); + ok( r == ERROR_SUCCESS, "failed to execute view: %d\n", r ); + + r = MsiViewFetch(hview, &hrec); + ok(r == ERROR_NO_MORE_ITEMS, "Expected ERROR_NO_MORE_ITEMS, got %d\n", r); + + MsiViewClose(hview); + MsiCloseHandle(hview); + MsiCloseHandle(hdb); DeleteFile(msifile); }
1
0
0
0
H. Verbeet : wined3d: Only report 16 bit float declaration types as supported if we support them .
by Alexandre Julliard
02 Aug '07
02 Aug '07
Module: wine Branch: master Commit: 3ac2271f5cb8722df501935e6a71e56ef8f6993d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3ac2271f5cb8722df501935e6…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Wed Aug 1 23:14:03 2007 +0200 wined3d: Only report 16 bit float declaration types as supported if we support them. --- dlls/wined3d/directx.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index d4a905a..7da3ef2 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -2301,10 +2301,12 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter, *pCaps->DeclTypes = WINED3DDTCAPS_UBYTE4 | WINED3DDTCAPS_UBYTE4N | WINED3DDTCAPS_SHORT2N | - WINED3DDTCAPS_SHORT4N | + WINED3DDTCAPS_SHORT4N; + if (GL_SUPPORT(NV_HALF_FLOAT)) { + *pCaps->DeclTypes |= WINED3DDTCAPS_FLOAT16_2 | WINED3DDTCAPS_FLOAT16_4; - + } } else *pCaps->DeclTypes = 0;
1
0
0
0
← Newer
1
...
99
100
101
102
103
104
105
...
109
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
Results per page:
10
25
50
100
200