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
August 2007
----- 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 GdipS/GetPathGradientGammaCorrection.
by Alexandre Julliard
03 Aug '07
03 Aug '07
Module: wine Branch: master Commit: 9ea7ef468b1911393bf95e3d6359cef3ba9e3a6c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9ea7ef468b1911393bf95e3d6…
Author: Evan Stade <estade(a)gmail.com> Date: Thu Aug 2 17:52:49 2007 -0700 gdiplus: Added GdipS/GetPathGradientGammaCorrection. --- dlls/gdiplus/brush.c | 24 ++++++++++++++++++++++++ dlls/gdiplus/gdiplus.spec | 4 ++-- dlls/gdiplus/gdiplus_private.h | 1 + include/gdiplusflat.h | 2 ++ 4 files changed, 29 insertions(+), 2 deletions(-) diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c index 4864caf..d993119 100644 --- a/dlls/gdiplus/brush.c +++ b/dlls/gdiplus/brush.c @@ -84,6 +84,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradient(GDIPCONST GpPointF* points, (*grad)->brush.bt = BrushTypePathGradient; (*grad)->centercolor = 0xffffffff; (*grad)->wrap = wrap; + (*grad)->gamma = FALSE; return Ok; } @@ -123,6 +124,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath* path, (*grad)->brush.bt = BrushTypePathGradient; (*grad)->centercolor = 0xffffffff; (*grad)->wrap = WrapModeClamp; + (*grad)->gamma = FALSE; return Ok; } @@ -166,6 +168,17 @@ GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush *brush) return Ok; } +GpStatus WINGDIPAPI GdipGetPathGradientGammaCorrection(GpPathGradient *grad, + BOOL *gamma) +{ + if(!grad || !gamma) + return InvalidParameter; + + *gamma = grad->gamma; + + return Ok; +} + GpStatus WINGDIPAPI GdipGetPathGradientPointCount(GpPathGradient *grad, INT *count) { @@ -216,6 +229,17 @@ GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient *grad, return Ok; } +GpStatus WINGDIPAPI GdipSetPathGradientGammaCorrection(GpPathGradient *grad, + BOOL gamma) +{ + if(!grad) + return InvalidParameter; + + grad->gamma = gamma; + + return Ok; +} + GpStatus WINGDIPAPI GdipSetPathGradientSigmaBlend(GpPathGradient *grad, REAL focus, REAL scale) { diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index a3da26a..467ba82 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -331,7 +331,7 @@ @ stub GdipGetPathGradientCenterPoint @ stub GdipGetPathGradientCenterPointI @ stub GdipGetPathGradientFocusScales -@ stub GdipGetPathGradientGammaCorrection +@ stdcall GdipGetPathGradientGammaCorrection(ptr ptr) @ stub GdipGetPathGradientPath @ stdcall GdipGetPathGradientPointCount(ptr ptr) @ stub GdipGetPathGradientPresetBlend @@ -553,7 +553,7 @@ @ stub GdipSetPathGradientCenterPoint @ stub GdipSetPathGradientCenterPointI @ stub GdipSetPathGradientFocusScales -@ stub GdipSetPathGradientGammaCorrection +@ stdcall GdipSetPathGradientGammaCorrection(ptr long) @ stub GdipSetPathGradientLinearBlend @ stub GdipSetPathGradientPath @ stub GdipSetPathGradientPresetBlend diff --git a/dlls/gdiplus/gdiplus_private.h b/dlls/gdiplus/gdiplus_private.h index 1c59a59..5f92680 100644 --- a/dlls/gdiplus/gdiplus_private.h +++ b/dlls/gdiplus/gdiplus_private.h @@ -97,6 +97,7 @@ struct GpPathGradient{ PathData pathdata; ARGB centercolor; GpWrapMode wrap; + BOOL gamma; }; struct GpPath{ diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index 87b8ccb..35edfba 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -94,12 +94,14 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath*, GpPathGradient**); GpStatus WINGDIPAPI GdipCreateSolidFill(ARGB,GpSolidFill**); GpStatus WINGDIPAPI GdipGetBrushType(GpBrush*,GpBrushType*); +GpStatus WINGDIPAPI GdipGetPathGradientGammaCorrection(GpPathGradient*,BOOL*); GpStatus WINGDIPAPI GdipGetPathGradientPointCount(GpPathGradient*,INT*); GpStatus WINGDIPAPI GdipGetPathGradientSurroundColorsWithCount(GpPathGradient*, ARGB*,INT*); GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush*); GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill*,ARGB*); GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient*,ARGB); +GpStatus WINGDIPAPI GdipSetPathGradientGammaCorrection(GpPathGradient*,BOOL); GpStatus WINGDIPAPI GdipSetPathGradientSigmaBlend(GpPathGradient*,REAL,REAL); GpStatus WINGDIPAPI GdipSetPathGradientSurroundColorsWithCount(GpPathGradient*, ARGB*,INT*);
1
0
0
0
Evan Stade : gdiplus: Added GdipSetPathGradientSigmaBlend stub.
by Alexandre Julliard
03 Aug '07
03 Aug '07
Module: wine Branch: master Commit: 15dce3a4324d8f69f9bd8124c09f2b37301910fe URL:
http://source.winehq.org/git/wine.git/?a=commit;h=15dce3a4324d8f69f9bd8124c…
Author: Evan Stade <estade(a)gmail.com> Date: Thu Aug 2 17:52:43 2007 -0700 gdiplus: Added GdipSetPathGradientSigmaBlend stub. --- dlls/gdiplus/brush.c | 14 ++++++++++++++ dlls/gdiplus/gdiplus.spec | 2 +- include/gdiplusflat.h | 1 + 3 files changed, 16 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c index 3994771..4864caf 100644 --- a/dlls/gdiplus/brush.c +++ b/dlls/gdiplus/brush.c @@ -216,6 +216,20 @@ GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient *grad, return Ok; } +GpStatus WINGDIPAPI GdipSetPathGradientSigmaBlend(GpPathGradient *grad, + REAL focus, REAL scale) +{ + static int calls; + + if(!grad || focus < 0.0 || focus > 1.0 || scale < 0.0 || scale > 1.0) + return InvalidParameter; + + if(!(calls++)) + FIXME("not implemented\n"); + + return NotImplemented; +} + GpStatus WINGDIPAPI GdipSetPathGradientSurroundColorsWithCount(GpPathGradient *grad, ARGB *argb, INT *count) { diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index fc4a8f3..a3da26a 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -557,7 +557,7 @@ @ stub GdipSetPathGradientLinearBlend @ stub GdipSetPathGradientPath @ stub GdipSetPathGradientPresetBlend -@ stub GdipSetPathGradientSigmaBlend +@ stdcall GdipSetPathGradientSigmaBlend(ptr long long) @ stdcall GdipSetPathGradientSurroundColorsWithCount(ptr ptr ptr) @ stub GdipSetPathGradientTransform @ stdcall GdipSetPathGradientWrapMode(ptr long) diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index 60115a4..87b8ccb 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -100,6 +100,7 @@ GpStatus WINGDIPAPI GdipGetPathGradientSurroundColorsWithCount(GpPathGradient*, GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush*); GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill*,ARGB*); GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient*,ARGB); +GpStatus WINGDIPAPI GdipSetPathGradientSigmaBlend(GpPathGradient*,REAL,REAL); GpStatus WINGDIPAPI GdipSetPathGradientSurroundColorsWithCount(GpPathGradient*, ARGB*,INT*); GpStatus WINGDIPAPI GdipSetPathGradientWrapMode(GpPathGradient*,GpWrapMode);
1
0
0
0
Evan Stade : gdiplus: Added GdipS/ GetPathGradientSurroundColorsWithCount stubs.
by Alexandre Julliard
03 Aug '07
03 Aug '07
Module: wine Branch: master Commit: 03af4ed338257ffc71018e620c1c23cc5d5c43de URL:
http://source.winehq.org/git/wine.git/?a=commit;h=03af4ed338257ffc71018e620…
Author: Evan Stade <estade(a)gmail.com> Date: Thu Aug 2 17:51:58 2007 -0700 gdiplus: Added GdipS/GetPathGradientSurroundColorsWithCount stubs. --- dlls/gdiplus/brush.c | 29 +++++++++++++++++++++++++++++ dlls/gdiplus/gdiplus.spec | 4 ++-- include/gdiplusflat.h | 4 ++++ 3 files changed, 35 insertions(+), 2 deletions(-) diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c index 2bdeb89..3994771 100644 --- a/dlls/gdiplus/brush.c +++ b/dlls/gdiplus/brush.c @@ -177,6 +177,20 @@ GpStatus WINGDIPAPI GdipGetPathGradientPointCount(GpPathGradient *grad, return Ok; } +GpStatus WINGDIPAPI GdipGetPathGradientSurroundColorsWithCount(GpPathGradient + *grad, ARGB *argb, INT *count) +{ + static int calls; + + if(!grad || !argb || !count || (*count < grad->pathdata.Count)) + return InvalidParameter; + + if(!(calls++)) + FIXME("not implemented\n"); + + return NotImplemented; +} + GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill *sf, ARGB *argb) { if(!sf || !argb) @@ -202,6 +216,21 @@ GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient *grad, return Ok; } +GpStatus WINGDIPAPI GdipSetPathGradientSurroundColorsWithCount(GpPathGradient + *grad, ARGB *argb, INT *count) +{ + static int calls; + + if(!grad || !argb || !count || (*count <= 0) || + (*count > grad->pathdata.Count)) + return InvalidParameter; + + if(!(calls++)) + FIXME("not implemented\n"); + + return NotImplemented; +} + GpStatus WINGDIPAPI GdipSetPathGradientWrapMode(GpPathGradient *grad, GpWrapMode wrap) { diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index a502b14..fc4a8f3 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -339,7 +339,7 @@ @ stub GdipGetPathGradientRect @ stub GdipGetPathGradientRectI @ stub GdipGetPathGradientSurroundColorCount -@ stub GdipGetPathGradientSurroundColorsWithCount +@ stdcall GdipGetPathGradientSurroundColorsWithCount(ptr ptr ptr) @ stub GdipGetPathGradientTransform @ stub GdipGetPathGradientWrapMode @ stub GdipGetPathLastPoint @@ -558,7 +558,7 @@ @ stub GdipSetPathGradientPath @ stub GdipSetPathGradientPresetBlend @ stub GdipSetPathGradientSigmaBlend -@ stub GdipSetPathGradientSurroundColorsWithCount +@ stdcall GdipSetPathGradientSurroundColorsWithCount(ptr ptr ptr) @ stub GdipSetPathGradientTransform @ stdcall GdipSetPathGradientWrapMode(ptr long) @ stub GdipSetPathMarker diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index fab9e0e..60115a4 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -95,9 +95,13 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath*, GpStatus WINGDIPAPI GdipCreateSolidFill(ARGB,GpSolidFill**); GpStatus WINGDIPAPI GdipGetBrushType(GpBrush*,GpBrushType*); GpStatus WINGDIPAPI GdipGetPathGradientPointCount(GpPathGradient*,INT*); +GpStatus WINGDIPAPI GdipGetPathGradientSurroundColorsWithCount(GpPathGradient*, + ARGB*,INT*); GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush*); GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill*,ARGB*); GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient*,ARGB); +GpStatus WINGDIPAPI GdipSetPathGradientSurroundColorsWithCount(GpPathGradient*, + ARGB*,INT*); GpStatus WINGDIPAPI GdipSetPathGradientWrapMode(GpPathGradient*,GpWrapMode); GpStatus WINGDIPAPI GdipSetSolidFillColor(GpSolidFill*,ARGB);
1
0
0
0
Evan Stade : gdiplus: Added GdipCreatePathGradient.
by Alexandre Julliard
03 Aug '07
03 Aug '07
Module: wine Branch: master Commit: b26d7ce82d959026143e128e0c28c110cf43d3b0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b26d7ce82d959026143e128e0…
Author: Evan Stade <estade(a)gmail.com> Date: Thu Aug 2 17:54:24 2007 -0700 gdiplus: Added GdipCreatePathGradient. --- dlls/gdiplus/brush.c | 40 ++++++++++++++++++++++++++++++++++++++++ dlls/gdiplus/gdiplus.spec | 2 +- include/gdiplusflat.h | 2 ++ 3 files changed, 43 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c index 265aba0..2bdeb89 100644 --- a/dlls/gdiplus/brush.c +++ b/dlls/gdiplus/brush.c @@ -48,6 +48,46 @@ GpStatus WINGDIPAPI GdipCloneBrush(GpBrush *brush, GpBrush **clone) return Ok; } +GpStatus WINGDIPAPI GdipCreatePathGradient(GDIPCONST GpPointF* points, + INT count, GpWrapMode wrap, GpPathGradient **grad) +{ + COLORREF col = ARGB2COLORREF(0xffffffff); + + if(!points || !grad) + return InvalidParameter; + + if(count <= 0) + return OutOfMemory; + + *grad = GdipAlloc(sizeof(GpPathGradient)); + if (!*grad) return OutOfMemory; + + (*grad)->pathdata.Count = count; + (*grad)->pathdata.Points = GdipAlloc(count * sizeof(PointF)); + (*grad)->pathdata.Types = GdipAlloc(count); + + if(!(*grad)->pathdata.Points || !(*grad)->pathdata.Types){ + GdipFree((*grad)->pathdata.Points); + GdipFree((*grad)->pathdata.Types); + GdipFree(*grad); + return OutOfMemory; + } + + memcpy((*grad)->pathdata.Points, points, count * sizeof(PointF)); + memset((*grad)->pathdata.Types, PathPointTypeLine, count); + + (*grad)->brush.lb.lbStyle = BS_SOLID; + (*grad)->brush.lb.lbColor = col; + (*grad)->brush.lb.lbHatch = 0; + + (*grad)->brush.gdibrush = CreateSolidBrush(col); + (*grad)->brush.bt = BrushTypePathGradient; + (*grad)->centercolor = 0xffffffff; + (*grad)->wrap = wrap; + + return Ok; +} + /* FIXME: path gradient brushes not truly supported (drawn as solid brushes) */ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath* path, GpPathGradient **grad) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index dba0b24..a502b14 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -116,7 +116,7 @@ @ stub GdipCreatePath2 @ stub GdipCreatePath2I @ stdcall GdipCreatePath(long ptr) -@ stub GdipCreatePathGradient +@ stdcall GdipCreatePathGradient(ptr long long ptr) @ stdcall GdipCreatePathGradientFromPath(ptr ptr) @ stub GdipCreatePathGradientI @ stdcall GdipCreatePathIter(ptr ptr) diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index 4a90d32..fab9e0e 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -88,6 +88,8 @@ GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics*,SmoothingMode); GpStatus WINGDIPAPI GdipSetWorldTransform(GpGraphics*,GpMatrix*); GpStatus WINGDIPAPI GdipCloneBrush(GpBrush*,GpBrush**); +GpStatus WINGDIPAPI GdipCreatePathGradient(GDIPCONST GpPointF*,INT,GpWrapMode, + GpPathGradient**); GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath*, GpPathGradient**); GpStatus WINGDIPAPI GdipCreateSolidFill(ARGB,GpSolidFill**);
1
0
0
0
Evan Stade : gdiplus: Added GdipGetPathGradientPointCount.
by Alexandre Julliard
03 Aug '07
03 Aug '07
Module: wine Branch: master Commit: 490ca1cabb6d0fb75e1829e7e6d9fbd2fa9dccfd URL:
http://source.winehq.org/git/wine.git/?a=commit;h=490ca1cabb6d0fb75e1829e7e…
Author: Evan Stade <estade(a)gmail.com> Date: Thu Aug 2 17:51:49 2007 -0700 gdiplus: Added GdipGetPathGradientPointCount. --- dlls/gdiplus/brush.c | 28 +++++++++++++++++++++++++++- dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/gdiplus_private.h | 1 + include/gdiplusflat.h | 1 + 4 files changed, 30 insertions(+), 2 deletions(-) diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c index dbe221c..265aba0 100644 --- a/dlls/gdiplus/brush.c +++ b/dlls/gdiplus/brush.c @@ -60,12 +60,27 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath* path, *grad = GdipAlloc(sizeof(GpPathGradient)); if (!*grad) return OutOfMemory; + (*grad)->pathdata.Count = path->pathdata.Count; + (*grad)->pathdata.Points = GdipAlloc(path->pathdata.Count * sizeof(PointF)); + (*grad)->pathdata.Types = GdipAlloc(path->pathdata.Count); + + if(!(*grad)->pathdata.Points || !(*grad)->pathdata.Types){ + GdipFree((*grad)->pathdata.Points); + GdipFree((*grad)->pathdata.Types); + GdipFree(*grad); + return OutOfMemory; + } + + memcpy((*grad)->pathdata.Points, path->pathdata.Points, + path->pathdata.Count * sizeof(PointF)); + memcpy((*grad)->pathdata.Types, path->pathdata.Types, path->pathdata.Count); + (*grad)->brush.lb.lbStyle = BS_SOLID; (*grad)->brush.lb.lbColor = col; (*grad)->brush.lb.lbHatch = 0; (*grad)->brush.gdibrush = CreateSolidBrush(col); - (*grad)->brush.bt = BrushTypeSolidColor; + (*grad)->brush.bt = BrushTypePathGradient; (*grad)->centercolor = 0xffffffff; (*grad)->wrap = WrapModeClamp; @@ -111,6 +126,17 @@ GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush *brush) return Ok; } +GpStatus WINGDIPAPI GdipGetPathGradientPointCount(GpPathGradient *grad, + INT *count) +{ + if(!grad || !count) + return InvalidParameter; + + *count = grad->pathdata.Count; + + return Ok; +} + GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill *sf, ARGB *argb) { if(!sf || !argb) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index f92c18c..dba0b24 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -333,7 +333,7 @@ @ stub GdipGetPathGradientFocusScales @ stub GdipGetPathGradientGammaCorrection @ stub GdipGetPathGradientPath -@ stub GdipGetPathGradientPointCount +@ stdcall GdipGetPathGradientPointCount(ptr ptr) @ stub GdipGetPathGradientPresetBlend @ stub GdipGetPathGradientPresetBlendCount @ stub GdipGetPathGradientRect diff --git a/dlls/gdiplus/gdiplus_private.h b/dlls/gdiplus/gdiplus_private.h index ee120d9..1c59a59 100644 --- a/dlls/gdiplus/gdiplus_private.h +++ b/dlls/gdiplus/gdiplus_private.h @@ -94,6 +94,7 @@ struct GpSolidFill{ struct GpPathGradient{ GpBrush brush; + PathData pathdata; ARGB centercolor; GpWrapMode wrap; }; diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index 83aea93..4a90d32 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -92,6 +92,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath*, GpPathGradient**); GpStatus WINGDIPAPI GdipCreateSolidFill(ARGB,GpSolidFill**); GpStatus WINGDIPAPI GdipGetBrushType(GpBrush*,GpBrushType*); +GpStatus WINGDIPAPI GdipGetPathGradientPointCount(GpPathGradient*,INT*); GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush*); GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill*,ARGB*); GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient*,ARGB);
1
0
0
0
Evan Stade : gdi32: Don't print fixme more than once.
by Alexandre Julliard
03 Aug '07
03 Aug '07
Module: wine Branch: master Commit: cf8b59ef81d448d39204db2fd67972531f92c8e6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cf8b59ef81d448d39204db2fd…
Author: Evan Stade <estade(a)gmail.com> Date: Thu Aug 2 17:51:40 2007 -0700 gdi32: Don't print fixme more than once. --- dlls/gdi32/enhmetafile.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/gdi32/enhmetafile.c b/dlls/gdi32/enhmetafile.c index 9e7684b..2b4d03f 100644 --- a/dlls/gdi32/enhmetafile.c +++ b/dlls/gdi32/enhmetafile.c @@ -1172,6 +1172,7 @@ BOOL WINAPI PlayEnhMetaFileRecord( case EMR_EXTSELECTCLIPRGN: { + static int extselectcliprgn_cases; #if 0 const EMREXTSELECTCLIPRGN lpRgn = (const EMREXTSELECTCLIPRGN *)mr; HRGN hRgn = ExtCreateRegion(NULL, lpRgn->cbRgnData, (RGNDATA *)lpRgn->RgnData); @@ -1180,7 +1181,8 @@ BOOL WINAPI PlayEnhMetaFileRecord( /* ExtSelectClipRgn created a copy of the region */ DeleteObject(hRgn); #endif - FIXME("ExtSelectClipRgn\n"); + if(!(extselectcliprgn_cases++)) + FIXME("ExtSelectClipRgn\n"); break; }
1
0
0
0
Francois Gouget : d3d9: Update win32.api to fix the winapi_check warnings.
by Alexandre Julliard
03 Aug '07
03 Aug '07
Module: wine Branch: master Commit: 3c1c89eb6ec8601f9dc6246cc4510d87a82fd08f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3c1c89eb6ec8601f9dc6246cc…
Author: Francois Gouget <fgouget(a)free.fr> Date: Fri Aug 3 00:47:12 2007 +0200 d3d9: Update win32.api to fix the winapi_check warnings. --- tools/winapi/win32.api | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/tools/winapi/win32.api b/tools/winapi/win32.api index 88d1d94..30eee71 100644 --- a/tools/winapi/win32.api +++ b/tools/winapi/win32.api @@ -810,6 +810,8 @@ void %long BOOL +D3DCOLOR +DWORD HRESULT UINT int @@ -817,7 +819,14 @@ int %ptr IDirect3D9 * -LPVOID + +%wstr + +LPCWSTR + +%void + +void %%d3dx8.dll
1
0
0
0
Francois Gouget : netapi32: Fix the NetUseAdd() calling convention.
by Alexandre Julliard
03 Aug '07
03 Aug '07
Module: wine Branch: master Commit: cec957d6843bf82b476c978199705637b38710ae URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cec957d6843bf82b476c97819…
Author: Francois Gouget <fgouget(a)free.fr> Date: Fri Aug 3 00:45:40 2007 +0200 netapi32: Fix the NetUseAdd() calling convention. --- dlls/netapi32/access.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/netapi32/access.c b/dlls/netapi32/access.c index f2a09ba..70adc97 100644 --- a/dlls/netapi32/access.c +++ b/dlls/netapi32/access.c @@ -833,7 +833,7 @@ NET_API_STATUS WINAPI NetUserChangePassword(LPCWSTR domainname, LPCWSTR username return NERR_Success; } -NET_API_STATUS NetUseAdd(LMSTR servername, DWORD level, LPBYTE bufptr, LPDWORD parm_err) +NET_API_STATUS WINAPI NetUseAdd(LMSTR servername, DWORD level, LPBYTE bufptr, LPDWORD parm_err) { FIXME("%s %d %p %p stub\n", debugstr_w(servername), level, bufptr, parm_err); return NERR_Success;
1
0
0
0
Francois Gouget : winapi_check: FLOAT is a float.
by Alexandre Julliard
03 Aug '07
03 Aug '07
Module: wine Branch: master Commit: 04a048327371d20ab101a737a2b558bc31c5b3bb URL:
http://source.winehq.org/git/wine.git/?a=commit;h=04a048327371d20ab101a737a…
Author: Francois Gouget <fgouget(a)free.fr> Date: Fri Aug 3 00:50:39 2007 +0200 winapi_check: FLOAT is a float. --- tools/winapi/win32.api | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/tools/winapi/win32.api b/tools/winapi/win32.api index c004da5..88d1d94 100644 --- a/tools/winapi/win32.api +++ b/tools/winapi/win32.api @@ -1288,7 +1288,6 @@ REFIID BOOL COLORREF DWORD -FLOAT HANDLE HBITMAP HBRUSH @@ -1316,6 +1315,10 @@ ULONG WORD int +%float + +FLOAT + %ptr ABORTPROC @@ -3269,6 +3272,7 @@ double %float float +FLOAT %long @@ -3277,7 +3281,6 @@ BYTE CALLCONV DISPID DWORD -FLOAT HCURSOR HICON HINSTANCE @@ -3507,11 +3510,14 @@ LPCSTR GLclampd GLdouble +%float + +FLOAT + %long BOOL DWORD -FLOAT GLbitfield GLboolean GLbyte
1
0
0
0
Francois Gouget : opengl32/tests: Add missing '\n' to ok() call.
by Alexandre Julliard
03 Aug '07
03 Aug '07
Module: wine Branch: master Commit: c7eca6a0271a2d8fdbc7bc8a5362991aa51651ff URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c7eca6a0271a2d8fdbc7bc8a5…
Author: Francois Gouget <fgouget(a)free.fr> Date: Fri Aug 3 00:43:45 2007 +0200 opengl32/tests: Add missing '\n' to ok() call. --- dlls/opengl32/tests/opengl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/opengl32/tests/opengl.c b/dlls/opengl32/tests/opengl.c index 17ca54a..efb1cd6 100644 --- a/dlls/opengl32/tests/opengl.c +++ b/dlls/opengl32/tests/opengl.c @@ -181,7 +181,7 @@ static void test_setpixelformat(void) /* This should pass even on the main device context */ pf = ChoosePixelFormat(hdc, &pfd); - ok(pf != 0, "ChoosePixelFormat failed on main device context"); + ok(pf != 0, "ChoosePixelFormat failed on main device context\n"); /* SetPixelFormat on the main device context 'X root window' should fail */ res = SetPixelFormat(hdc, pf, &pfd);
1
0
0
0
← Newer
1
...
93
94
95
96
97
98
99
...
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