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
July 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
957 discussions
Start a n
N
ew thread
appdb/include util.php
by WineHQ
23 Jul '07
23 Jul '07
ChangeSet ID: 31262 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2007/07/23 15:15:21 Modified files: include : util.php Log message: Edwin Smulders <edwin.smulders(a)gmail.com> Fix a that had a missing ; in the page selector code Patch:
http://cvs.winehq.org/patch.py?id=31262
Old revision New revision Changes Path 1.97 1.98 +2 -2 appdb/include/util.php Index: appdb/include/util.php diff -u -p appdb/include/util.php:1.97 appdb/include/util.php:1.98 --- appdb/include/util.php:1.97 23 Jul 2007 20:15:21 -0000 +++ appdb/include/util.php 23 Jul 2007 20:15:21 -0000 @@ -667,9 +667,9 @@ function display_page_range($iCurrentPag if($iCurrentPage != 1) { - echo "<a href='".$sLinkurl."&iPage=1'>|<</a> "; + echo "<a href='".$sLinkurl."&iPage=1'>|<</a> "; $iPreviousPage = $iCurrentPage - 1; - echo "<a href='".$sLinkurl."&iPage=$iPreviousPage'><</a> "; + echo "<a href='".$sLinkurl."&iPage=$iPreviousPage'><</a> "; } else { echo "|< < ";
1
0
0
0
appdb/include testData.php
by WineHQ
23 Jul '07
23 Jul '07
ChangeSet ID: 31261 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2007/07/23 15:02:24 Modified files: include : testData.php Log message: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Fix testData::objectGetEntriesCount() for queued maintainers. Same fix was applied to testData::objectGetEntries() Patch:
http://cvs.winehq.org/patch.py?id=31261
Old revision New revision Changes Path 1.68 1.69 +2 -0 appdb/include/testData.php Index: appdb/include/testData.php diff -u -p appdb/include/testData.php:1.68 appdb/include/testData.php:1.69 --- appdb/include/testData.php:1.68 23 Jul 2007 20: 2:24 -0000 +++ appdb/include/testData.php 23 Jul 2007 20: 2:24 -0000 @@ -860,6 +860,8 @@ class testData{ AND appMaintainers.userId = '?' AND + appMaintainers.queued = 'false' + AND ( ( appMaintainers.superMaintainer = '1'
1
0
0
0
appdb/ ./appbrowse.php ./browse_by_rating.php ...
by WineHQ
23 Jul '07
23 Jul '07
ChangeSet ID: 31260 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2007/07/23 14:56:43 Modified files: . : appbrowse.php browse_by_rating.php browse_downloadable.php contact.php preferences.php votestats.php include : application.php browse_newest_apps.php distribution.php form_edit.php html.php incl.php maintainer.php menu.php objectManager.php tableve.php testData.php util.php vendor.php version.php Added files: include : table.php Log message: Chris Morgan <cmorgan(a)alum.wpi.edu> Programmatic table support. Enhances several tables with highlightable and clickable rows and cleans up the existing table row highlight and click code. Patch:
http://cvs.winehq.org/patch.py?id=31260
Old revision New revision Changes Path 1.25 1.26 +72 -32 appdb/appbrowse.php 1.4 1.5 +114 -50 appdb/browse_by_rating.php 1.6 1.7 +39 -15 appdb/browse_downloadable.php 1.2 1.3 +30 -15 appdb/contact.php 1.36 1.37 +61 -17 appdb/preferences.php 1.32 1.33 +35 -9 appdb/votestats.php 1.117 1.118 +34 -27 appdb/include/application.php 1.1 1.2 +13 -7 appdb/include/browse_newest_apps.php 1.37 1.38 +14 -7 appdb/include/distribution.php 1.12 1.13 +34 -22 appdb/include/form_edit.php 1.14 1.15 +0 -10 appdb/include/html.php 1.43 1.44 +1 -0 appdb/include/incl.php 1.47 1.48 +9 -8 appdb/include/maintainer.php 1.8 1.9 +21 -8 appdb/include/menu.php 1.36 1.37 +28 -47 appdb/include/objectManager.php 1.14 1.15 +15 -10 appdb/include/tableve.php 1.67 1.68 +86 -49 appdb/include/testData.php 1.96 1.97 +66 -22 appdb/include/util.php 1.33 1.34 +55 -21 appdb/include/vendor.php 1.136 1.137 +187 -86 appdb/include/version.php Added 1.1 +0 -0 appdb/include/table.php
1
0
0
0
Vitaliy Margolen : dinput: Use more messages as a possible indication of the foreground window changes .
by Alexandre Julliard
23 Jul '07
23 Jul '07
Module: wine Branch: master Commit: 94e08ec5bea2bdb6ceafbdbba3a350ad9aea726b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=94e08ec5bea2bdb6ceafbdbba…
Author: Vitaliy Margolen <wine-patches(a)kievinfo.com> Date: Sun Jul 22 22:17:09 2007 -0600 dinput: Use more messages as a possible indication of the foreground window changes. --- dlls/dinput/dinput_main.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/dinput/dinput_main.c b/dlls/dinput/dinput_main.c index 4f15c58..9562d78 100644 --- a/dlls/dinput/dinput_main.c +++ b/dlls/dinput/dinput_main.c @@ -854,7 +854,8 @@ static LRESULT CALLBACK callwndproc_proc( int code, WPARAM wparam, LPARAM lparam IDirectInputImpl *dinput; HWND foreground; - if (code != HC_ACTION || msg->message != WM_KILLFOCUS) + if (code != HC_ACTION || (msg->message != WM_KILLFOCUS && + msg->message != WM_ACTIVATEAPP && msg->message != WM_ACTIVATE)) return CallNextHookEx( 0, code, wparam, lparam ); foreground = GetForegroundWindow();
1
0
0
0
Evan Stade : gdiplus: Change atan2 to gdiplus_arctan2.
by Alexandre Julliard
23 Jul '07
23 Jul '07
Module: wine Branch: master Commit: 818051de2c8769029049ce3d36c6b856f47496c9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=818051de2c8769029049ce3d3…
Author: Evan Stade <estade(a)gmail.com> Date: Fri Jul 20 17:50:14 2007 -0700 gdiplus: Change atan2 to gdiplus_arctan2. --- dlls/gdiplus/gdiplus.c | 11 ++++++++++- dlls/gdiplus/gdiplus_private.h | 1 + dlls/gdiplus/graphics.c | 11 ++++------- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/dlls/gdiplus/gdiplus.c b/dlls/gdiplus/gdiplus.c index e821b18..ee1c49b 100644 --- a/dlls/gdiplus/gdiplus.c +++ b/dlls/gdiplus/gdiplus.c @@ -154,7 +154,7 @@ static void unstretch_angle(REAL * angle, REAL rad_x, REAL rad_y) if(cos(*angle) == 0 || sin(*angle) == 0) return; - stretched = atan2(sin(*angle) / rad_y, cos(*angle) / rad_x); + stretched = gdiplus_atan2(sin(*angle) / rad_y, cos(*angle) / rad_x); revs_off = roundr(*angle / (2.0 * M_PI)) - roundr(stretched / (2.0 * M_PI)); stretched += ((REAL)revs_off) * M_PI * 2.0; *angle = stretched; @@ -212,3 +212,12 @@ COLORREF ARGB2COLORREF(ARGB color) (color & 0x00ff00) + ((color & 0xff0000) >> 16); } + +/* Like atan2, but puts angle in correct quadrant if dx is 0. */ +FLOAT gdiplus_atan2(FLOAT dy, FLOAT dx) +{ + if((dx == 0.0) && (dy != 0.0)) + return dy > 0.0 ? M_PI_2 : -M_PI_2; + + return atan2(dy, dx); +} diff --git a/dlls/gdiplus/gdiplus_private.h b/dlls/gdiplus/gdiplus_private.h index 71cfe39..c872481 100644 --- a/dlls/gdiplus/gdiplus_private.h +++ b/dlls/gdiplus/gdiplus_private.h @@ -30,6 +30,7 @@ COLORREF ARGB2COLORREF(ARGB color); extern INT arc2polybezier(GpPointF * points, REAL x1, REAL y1, REAL x2, REAL y2, REAL startAngle, REAL sweepAngle); +extern FLOAT gdiplus_atan2(FLOAT dy, FLOAT dx); static inline INT roundr(REAL x) { diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index b12ddf8..0594c57 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -146,14 +146,11 @@ static void draw_cap(HDC hdc, COLORREF color, GpLineCap cap, REAL size, INT i, count; LOGBRUSH lb; - if(x2 != x1) - theta = atan2(y2 - y1, x2 - x1); - else if(y2 != y1){ - theta = M_PI_2 * (y2 > y1 ? 1.0 : -1.0); - } - else + if((x1 == x2) && (y1 == y2)) return; + theta = gdiplus_atan2(y2 - y1, x2 - x1); + brush = CreateSolidBrush(color); lb.lbStyle = BS_SOLID; lb.lbColor = color; @@ -327,7 +324,7 @@ static void shorten_line_percent(REAL x1, REAL y1, REAL *x2, REAL *y2, REAL per return; dist = sqrt((*x2 - x1) * (*x2 - x1) + (*y2 - y1) * (*y2 - y1)) * -percent; - theta = (*x2 == x1 ? M_PI_2 : atan2((*y2 - y1), (*x2 - x1))); + theta = gdiplus_atan2((*y2 - y1), (*x2 - x1)); dx = cos(theta) * dist; dy = sin(theta) * dist;
1
0
0
0
Evan Stade : gdiplus: Added startcap rendering.
by Alexandre Julliard
23 Jul '07
23 Jul '07
Module: wine Branch: master Commit: a84b567cba203a3191e03efcdecd4593e64104ce URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a84b567cba203a3191e03efcd…
Author: Evan Stade <estade(a)gmail.com> Date: Fri Jul 20 17:50:11 2007 -0700 gdiplus: Added startcap rendering. --- dlls/gdiplus/graphics.c | 211 +++++++++++++++++++++++++++++++---------------- 1 files changed, 141 insertions(+), 70 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=a84b567cba203a3191e03…
1
0
0
0
Evan Stade : gdiplus: Use base inset for custom line caps.
by Alexandre Julliard
23 Jul '07
23 Jul '07
Module: wine Branch: master Commit: f56fa321f53e70825b00fc5eeaf71d4e2de4ea95 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f56fa321f53e70825b00fc5ee…
Author: Evan Stade <estade(a)gmail.com> Date: Fri Jul 20 17:50:07 2007 -0700 gdiplus: Use base inset for custom line caps. --- dlls/gdiplus/graphics.c | 46 ++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 38 insertions(+), 8 deletions(-) diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index a7383ab..0418451 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -317,7 +317,8 @@ custend: } /* Shortens the line by the given percent by changing x2, y2. - * If percent is > 1.0 then the line will change direction. */ + * If percent is > 1.0 then the line will change direction. + * If percent is negative it can lengthen the line. */ static void shorten_line_percent(REAL x1, REAL y1, REAL *x2, REAL *y2, REAL percent) { REAL dist, theta, dx, dy; @@ -325,17 +326,18 @@ static void shorten_line_percent(REAL x1, REAL y1, REAL *x2, REAL *y2, REAL per if((y1 == *y2) && (x1 == *x2)) return; - dist = sqrt((*x2 - x1) * (*x2 - x1) + (*y2 - y1) * (*y2 - y1)) * percent; - theta = (*x2 == x1 ? M_PI_2 : atan((*y2 - y1) / (*x2 - x1))); + dist = sqrt((*x2 - x1) * (*x2 - x1) + (*y2 - y1) * (*y2 - y1)) * -percent; + theta = (*x2 == x1 ? M_PI_2 : atan2((*y2 - y1), (*x2 - x1))); dx = cos(theta) * dist; dy = sin(theta) * dist; - *x2 = *x2 + fabs(dx) * (*x2 > x1 ? -1.0 : 1.0); - *y2 = *y2 + fabs(dy) * (*y2 > y1 ? -1.0 : 1.0); + *x2 = *x2 + dx; + *y2 = *y2 + dy; } /* Shortens the line by the given amount by changing x2, y2. - * If the amount is greater than the distance, the line will become length 0. */ + * If the amount is greater than the distance, the line will become length 0. + * If the amount is negative, it can lengthen the line. */ static void shorten_line_amt(REAL x1, REAL y1, REAL *x2, REAL *y2, REAL amt) { REAL dx, dy, percent; @@ -378,6 +380,9 @@ static GpStatus draw_polyline(HDC hdc, GpPen *pen, GDIPCONST GpPointF * pt, if(caps){ if(pen->endcap == LineCapArrowAnchor) shorten_line_amt(pt[count-2].X, pt[count-2].Y, &x, &y, pen->width); + else if((pen->endcap == LineCapCustom) && pen->customend) + shorten_line_amt(pt[count-2].X, pt[count-2].Y, &x, &y, + pen->customend->inset * pen->width); draw_cap(hdc, pen->color, pen->endcap, pen->width, pen->customend, pt[count-2].X, pt[count-2].Y, pt[count - 1].X, pt[count - 1].Y); @@ -437,9 +442,10 @@ static void shorten_bezier_amt(GpPointF * pt, REAL amt) static GpStatus draw_polybezier(HDC hdc, GpPen *pen, GDIPCONST GpPointF * pt, INT count, BOOL caps) { - POINT *pti; + POINT *pti, curpos; GpPointF *ptf; INT i; + REAL x, y; GpStatus status = GenericError; if(!count) @@ -458,6 +464,18 @@ static GpStatus draw_polybezier(HDC hdc, GpPen *pen, GDIPCONST GpPointF * pt, if(caps){ if(pen->endcap == LineCapArrowAnchor) shorten_bezier_amt(ptf, pen->width); + /* FIXME The following is seemingly correct only for baseinset < 0 or + * baseinset > ~3. With smaller baseinsets, windows actually + * lengthens the bezier line instead of shortening it. */ + else if((pen->endcap == LineCapCustom) && pen->customend){ + x = pt[count - 1].X; + y = pt[count - 1].Y; + shorten_line_amt(pt[count - 2].X, pt[count - 2].Y, &x, &y, + pen->width * pen->customend->inset); + MoveToEx(hdc, roundr(pt[count - 1].X), roundr(pt[count - 1].Y), &curpos); + LineTo(hdc, roundr(x), roundr(y)); + MoveToEx(hdc, curpos.x, curpos.y, NULL); + } /* the direction of the line cap is parallel to the direction at the * end of the bezier (which, if it has been shortened, is not the same @@ -492,7 +510,7 @@ end: static GpStatus draw_poly(HDC hdc, GpPen *pen, GDIPCONST GpPointF * pt, GDIPCONST BYTE * types, INT count, BOOL caps) { - POINT *pti = GdipAlloc(count * sizeof(POINT)); + POINT *pti = GdipAlloc(count * sizeof(POINT)), curpos; BYTE *tp = GdipAlloc(count); GpPointF *ptf = NULL; REAL x = pt[count - 1].X, y = pt[count - 1].Y; @@ -538,6 +556,15 @@ static GpStatus draw_poly(HDC hdc, GpPen *pen, GDIPCONST GpPointF * pt, if(pen->endcap == LineCapArrowAnchor) shorten_bezier_amt(ptf, pen->width); + else if((pen->endcap == LineCapCustom) && pen->customend){ + x = pt[count - 1].X; + y = pt[count - 1].Y; + shorten_line_amt(pt[count - 2].X, pt[count - 2].Y, &x, &y, + pen->width * pen->customend->inset); + MoveToEx(hdc, roundr(pt[count - 1].X), roundr(pt[count - 1].Y), &curpos); + LineTo(hdc, roundr(x), roundr(y)); + MoveToEx(hdc, curpos.x, curpos.y, NULL); + } draw_cap(hdc, pen->color, pen->endcap, pen->width, pen->customend, pt[count - 1].X - (ptf[3].X - ptf[2].X), @@ -555,6 +582,9 @@ static GpStatus draw_poly(HDC hdc, GpPen *pen, GDIPCONST GpPointF * pt, if(pen->endcap == LineCapArrowAnchor) shorten_line_amt(pt[count - 2].X, pt[count - 2].Y, &x, &y, pen->width); + else if((pen->endcap == LineCapCustom) && pen->customend) + shorten_line_amt(pt[count - 2].X, pt[count - 2].Y, &x, &y, + pen->customend->inset * pen->width); draw_cap(hdc, pen->color, pen->endcap, pen->width, pen->customend, pt[count - 2].X, pt[count - 2].Y, pt[count - 1].X,
1
0
0
0
Evan Stade : gdiplus: Added rendering of fill-path type custom line caps.
by Alexandre Julliard
23 Jul '07
23 Jul '07
Module: wine Branch: master Commit: 8c5bcef9f3e5082f00387e49be7f6a56d6557ff6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8c5bcef9f3e5082f00387e49b…
Author: Evan Stade <estade(a)gmail.com> Date: Fri Jul 20 17:50:02 2007 -0700 gdiplus: Added rendering of fill-path type custom line caps. --- dlls/gdiplus/customlinecap.c | 7 +++++++ dlls/gdiplus/graphics.c | 20 ++++++++++++-------- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/dlls/gdiplus/customlinecap.c b/dlls/gdiplus/customlinecap.c index 76e2c1d..aadea5f 100644 --- a/dlls/gdiplus/customlinecap.c +++ b/dlls/gdiplus/customlinecap.c @@ -23,6 +23,9 @@ #include "gdiplus.h" #include "gdiplus_private.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(gdiplus); GpStatus WINGDIPAPI GdipCloneCustomLineCap(GpCustomLineCap* from, GpCustomLineCap** to) @@ -52,11 +55,15 @@ GpStatus WINGDIPAPI GdipCloneCustomLineCap(GpCustomLineCap* from, return Ok; } +/* FIXME: Sometimes when fillPath is non-null and stroke path is null, the native + * version of this function returns NotImplemented. I cannot figure out why. */ GpStatus WINGDIPAPI GdipCreateCustomLineCap(GpPath* fillPath, GpPath* strokePath, GpLineCap baseCap, REAL baseInset, GpCustomLineCap **customCap) { GpPathData *pathdata; + TRACE("%p %p %d %f %p\n", fillPath, strokePath, baseCap, baseInset, customCap); + if(!customCap || !(fillPath || strokePath)) return InvalidParameter; diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 4a581d1..a7383ab 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -130,7 +130,8 @@ static void calc_curve_bezier_endp(REAL xend, REAL yend, REAL xadj, REAL yadj, } /* Draws the linecap the specified color and size on the hdc. The linecap is in - * direction of the line from x1, y1 to x2, y2 and is anchored on x2, y2. */ + * direction of the line from x1, y1 to x2, y2 and is anchored on x2, y2. Probably + * should not be called on an hdc that has a path you care about. */ static void draw_cap(HDC hdc, COLORREF color, GpLineCap cap, REAL size, const GpCustomLineCap *custom, REAL x1, REAL y1, REAL x2, REAL y2) { @@ -158,7 +159,8 @@ static void draw_cap(HDC hdc, COLORREF color, GpLineCap cap, REAL size, lb.lbColor = color; lb.lbHatch = 0; pen = ExtCreatePen(PS_GEOMETRIC | PS_SOLID | PS_ENDCAP_FLAT, - (cap == LineCapCustom ? size : 1), &lb, 0, NULL); + ((cap == LineCapCustom) && custom && (custom->fill)) ? size : 1, + &lb, 0, NULL); oldbrush = SelectObject(hdc, brush); oldpen = SelectObject(hdc, pen); @@ -267,11 +269,6 @@ static void draw_cap(HDC hdc, COLORREF color, GpLineCap cap, REAL size, if(!custom) break; - if(custom->fill){ - FIXME("fill-path custom line caps not implemented\n"); - break; - } - count = custom->pathdata.Count; custptf = GdipAlloc(count * sizeof(PointF)); custpt = GdipAlloc(count * sizeof(POINT)); @@ -294,7 +291,14 @@ static void draw_cap(HDC hdc, COLORREF color, GpLineCap cap, REAL size, tp[i] = convert_path_point_type(custom->pathdata.Types[i]); } - PolyDraw(hdc, custpt, tp, count); + if(custom->fill){ + BeginPath(hdc); + PolyDraw(hdc, custpt, tp, count); + EndPath(hdc); + StrokeAndFillPath(hdc); + } + else + PolyDraw(hdc, custpt, tp, count); custend: GdipFree(custptf);
1
0
0
0
Hans Leidekker : pdh: Implement and test PdhAddEnglishCounter{A, W} and PdhCollectQueryDataWithTime.
by Alexandre Julliard
23 Jul '07
23 Jul '07
Module: wine Branch: master Commit: 1cec4e3b6e03a1cd213556d663668b2c98626e3d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1cec4e3b6e03a1cd213556d66…
Author: Hans Leidekker <hans(a)it.vu.nl> Date: Sat Jul 21 15:08:15 2007 +0200 pdh: Implement and test PdhAddEnglishCounter{A, W} and PdhCollectQueryDataWithTime. --- dlls/pdh/pdh.spec | 5 ++ dlls/pdh/pdh_main.c | 43 +++++++++++++++++ dlls/pdh/tests/pdh.c | 127 ++++++++++++++++++++++++++++++++++++++++++++++++++ include/pdh.h | 4 ++ 4 files changed, 179 insertions(+), 0 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=1cec4e3b6e03a1cd21355…
1
0
0
0
Hans Leidekker : pdh: Implement and test PdhLookupPerfIndexByName{A, W} and PdhLookupPerfNameByIndex{A, W}.
by Alexandre Julliard
23 Jul '07
23 Jul '07
Module: wine Branch: master Commit: 0fbb4619e1c8dee6b71bf371f7b17af301ea9a77 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0fbb4619e1c8dee6b71bf371f…
Author: Hans Leidekker <hans(a)it.vu.nl> Date: Sat Jul 21 15:08:01 2007 +0200 pdh: Implement and test PdhLookupPerfIndexByName{A, W} and PdhLookupPerfNameByIndex{A, W}. --- dlls/pdh/pdh.spec | 8 ++-- dlls/pdh/pdh_main.c | 140 ++++++++++++++++++++++++++++++++++++++++++++++- dlls/pdh/tests/pdh.c | 148 ++++++++++++++++++++++++++++++++++++++++++++++++++ include/pdh.h | 8 +++ include/pdhmsg.h | 3 + 5 files changed, 300 insertions(+), 7 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=0fbb4619e1c8dee6b71bf…
1
0
0
0
← Newer
1
...
33
34
35
36
37
38
39
...
96
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
Results per page:
10
25
50
100
200