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
October 2020
----- 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
1 participants
796 discussions
Start a n
N
ew thread
Alexandre Julliard : gdi32: Move the font substitution list out of freetype.c.
by Alexandre Julliard
30 Oct '20
30 Oct '20
Module: wine Branch: master Commit: 7e51cc8308bd828d8d8a90aea35170c68d4b1bb4 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=7e51cc8308bd828d8d8a90ae…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Oct 30 14:15:34 2020 +0100 gdi32: Move the font substitution list out of freetype.c. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/gdi32/font.c | 105 +++++++++++++++++++ dlls/gdi32/freetype.c | 265 +++++++++-------------------------------------- dlls/gdi32/gdi_private.h | 4 + 3 files changed, 156 insertions(+), 218 deletions(-) Diff:
https://source.winehq.org/git/wine.git/?a=commitdiff;h=7e51cc8308bd828d8d8a…
1
0
0
0
Daniel Lehman : tzres: Add Saint Pierre Standard Time Zone.
by Alexandre Julliard
30 Oct '20
30 Oct '20
Module: wine Branch: master Commit: b5d39469b84b3efcf63be0fcbab4119438e6e952 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=b5d39469b84b3efcf63be0fc…
Author: Daniel Lehman <dlehman25(a)gmail.com> Date: Thu Oct 29 22:57:44 2020 -0700 tzres: Add Saint Pierre Standard Time Zone. Signed-off-by: Daniel Lehman <dlehman25(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/tzres/tzres.rc | 2 + loader/wine.inf.in | 10 +++++ po/ar.po | 106 ++++++++++++++++++++++++++++----------------------- po/ast.po | 106 ++++++++++++++++++++++++++++----------------------- po/bg.po | 102 ++++++++++++++++++++++++++----------------------- po/ca.po | 106 ++++++++++++++++++++++++++++----------------------- po/cs.po | 106 ++++++++++++++++++++++++++++----------------------- po/da.po | 106 ++++++++++++++++++++++++++++----------------------- po/de.po | 106 ++++++++++++++++++++++++++++----------------------- po/el.po | 102 ++++++++++++++++++++++++++----------------------- po/en.po | 102 ++++++++++++++++++++++++++----------------------- po/en_US.po | 102 ++++++++++++++++++++++++++----------------------- po/eo.po | 106 ++++++++++++++++++++++++++++----------------------- po/es.po | 106 ++++++++++++++++++++++++++++----------------------- po/fa.po | 104 +++++++++++++++++++++++++++----------------------- po/fi.po | 106 ++++++++++++++++++++++++++++----------------------- po/fr.po | 106 ++++++++++++++++++++++++++++----------------------- po/he.po | 106 ++++++++++++++++++++++++++++----------------------- po/hi.po | 102 ++++++++++++++++++++++++++----------------------- po/hr.po | 106 ++++++++++++++++++++++++++++----------------------- po/hu.po | 106 ++++++++++++++++++++++++++++----------------------- po/it.po | 106 ++++++++++++++++++++++++++++----------------------- po/ja.po | 106 ++++++++++++++++++++++++++++----------------------- po/ko.po | 106 ++++++++++++++++++++++++++++----------------------- po/lt.po | 106 ++++++++++++++++++++++++++++----------------------- po/ml.po | 102 ++++++++++++++++++++++++++----------------------- po/nb_NO.po | 106 ++++++++++++++++++++++++++++----------------------- po/nl.po | 106 ++++++++++++++++++++++++++++----------------------- po/or.po | 102 ++++++++++++++++++++++++++----------------------- po/pa.po | 102 ++++++++++++++++++++++++++----------------------- po/pl.po | 106 ++++++++++++++++++++++++++++----------------------- po/pt_BR.po | 106 ++++++++++++++++++++++++++++----------------------- po/pt_PT.po | 106 ++++++++++++++++++++++++++++----------------------- po/rm.po | 102 ++++++++++++++++++++++++++----------------------- po/ro.po | 106 ++++++++++++++++++++++++++++----------------------- po/ru.po | 102 ++++++++++++++++++++++++++----------------------- po/si.po | 106 ++++++++++++++++++++++++++++----------------------- po/sk.po | 106 ++++++++++++++++++++++++++++----------------------- po/sl.po | 106 ++++++++++++++++++++++++++++----------------------- po/sr_RS(a)cyrillic.po | 104 +++++++++++++++++++++++++++----------------------- po/sr_RS(a)latin.po | 104 +++++++++++++++++++++++++++----------------------- po/sv.po | 106 ++++++++++++++++++++++++++++----------------------- po/ta.po | 102 ++++++++++++++++++++++++++----------------------- po/te.po | 102 ++++++++++++++++++++++++++----------------------- po/th.po | 104 +++++++++++++++++++++++++++----------------------- po/tr.po | 106 ++++++++++++++++++++++++++++----------------------- po/uk.po | 102 ++++++++++++++++++++++++++----------------------- po/wa.po | 104 +++++++++++++++++++++++++++----------------------- po/wine.pot | 102 ++++++++++++++++++++++++++----------------------- po/zh_CN.po | 106 ++++++++++++++++++++++++++++----------------------- po/zh_TW.po | 106 ++++++++++++++++++++++++++++----------------------- 51 files changed, 2837 insertions(+), 2303 deletions(-) Diff:
https://source.winehq.org/git/wine.git/?a=commitdiff;h=b5d39469b84b3efcf63b…
1
0
0
0
Daniel Lehman : tzres: Add Magallanes Standard Time Zone.
by Alexandre Julliard
30 Oct '20
30 Oct '20
Module: wine Branch: master Commit: af5c7c33567812c1f0037ff011ec9c63efdb9d90 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=af5c7c33567812c1f0037ff0…
Author: Daniel Lehman <dlehman25(a)gmail.com> Date: Thu Oct 29 22:40:24 2020 -0700 tzres: Add Magallanes Standard Time Zone. Signed-off-by: Daniel Lehman <dlehman25(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/tzres/tzres.rc | 2 + loader/wine.inf.in | 21 ++++++ po/ar.po | 210 +++++++++++++++++++++++++++------------------------ po/ast.po | 210 +++++++++++++++++++++++++++------------------------ po/bg.po | 206 ++++++++++++++++++++++++++------------------------ po/ca.po | 210 +++++++++++++++++++++++++++------------------------ po/cs.po | 210 +++++++++++++++++++++++++++------------------------ po/da.po | 210 +++++++++++++++++++++++++++------------------------ po/de.po | 210 +++++++++++++++++++++++++++------------------------ po/el.po | 206 ++++++++++++++++++++++++++------------------------ po/en.po | 206 ++++++++++++++++++++++++++------------------------ po/en_US.po | 206 ++++++++++++++++++++++++++------------------------ po/eo.po | 210 +++++++++++++++++++++++++++------------------------ po/es.po | 210 +++++++++++++++++++++++++++------------------------ po/fa.po | 208 ++++++++++++++++++++++++++------------------------ po/fi.po | 210 +++++++++++++++++++++++++++------------------------ po/fr.po | 210 +++++++++++++++++++++++++++------------------------ po/he.po | 210 +++++++++++++++++++++++++++------------------------ po/hi.po | 206 ++++++++++++++++++++++++++------------------------ po/hr.po | 210 +++++++++++++++++++++++++++------------------------ po/hu.po | 210 +++++++++++++++++++++++++++------------------------ po/it.po | 210 +++++++++++++++++++++++++++------------------------ po/ja.po | 210 +++++++++++++++++++++++++++------------------------ po/ko.po | 210 +++++++++++++++++++++++++++------------------------ po/lt.po | 210 +++++++++++++++++++++++++++------------------------ po/ml.po | 206 ++++++++++++++++++++++++++------------------------ po/nb_NO.po | 210 +++++++++++++++++++++++++++------------------------ po/nl.po | 210 +++++++++++++++++++++++++++------------------------ po/or.po | 206 ++++++++++++++++++++++++++------------------------ po/pa.po | 206 ++++++++++++++++++++++++++------------------------ po/pl.po | 210 +++++++++++++++++++++++++++------------------------ po/pt_BR.po | 210 +++++++++++++++++++++++++++------------------------ po/pt_PT.po | 210 +++++++++++++++++++++++++++------------------------ po/rm.po | 206 ++++++++++++++++++++++++++------------------------ po/ro.po | 210 +++++++++++++++++++++++++++------------------------ po/ru.po | 206 ++++++++++++++++++++++++++------------------------ po/si.po | 210 +++++++++++++++++++++++++++------------------------ po/sk.po | 210 +++++++++++++++++++++++++++------------------------ po/sl.po | 210 +++++++++++++++++++++++++++------------------------ po/sr_RS(a)cyrillic.po | 208 ++++++++++++++++++++++++++------------------------ po/sr_RS(a)latin.po | 208 ++++++++++++++++++++++++++------------------------ po/sv.po | 210 +++++++++++++++++++++++++++------------------------ po/ta.po | 206 ++++++++++++++++++++++++++------------------------ po/te.po | 206 ++++++++++++++++++++++++++------------------------ po/th.po | 208 ++++++++++++++++++++++++++------------------------ po/tr.po | 210 +++++++++++++++++++++++++++------------------------ po/uk.po | 206 ++++++++++++++++++++++++++------------------------ po/wa.po | 208 ++++++++++++++++++++++++++------------------------ po/wine.pot | 206 ++++++++++++++++++++++++++------------------------ po/zh_CN.po | 210 +++++++++++++++++++++++++++------------------------ po/zh_TW.po | 210 +++++++++++++++++++++++++++------------------------ 51 files changed, 5396 insertions(+), 4851 deletions(-) Diff:
https://source.winehq.org/git/wine.git/?a=commitdiff;h=af5c7c33567812c1f003…
1
0
0
0
Huw Davies : riched20: Use paragraph and run ptrs in the find text function.
by Alexandre Julliard
30 Oct '20
30 Oct '20
Module: wine Branch: master Commit: cdd507eb2bdcc5f1cdcecc256f2199ce57531703 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=cdd507eb2bdcc5f1cdcecc25…
Author: Huw Davies <huw(a)codeweavers.com> Date: Fri Oct 30 09:00:29 2020 +0000 riched20: Use paragraph and run ptrs in the find text function. Signed-off-by: Huw Davies <huw(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/riched20/editor.c | 85 +++++++++++++++++++++++++++++--------------------- 1 file changed, 49 insertions(+), 36 deletions(-) diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 1f37258f345..c1138bd1dab 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -1928,11 +1928,11 @@ ME_FindText(ME_TextEditor *editor, DWORD flags, const CHARRANGE *chrg, const WCH while (cursor.pRun && ME_GetCursorOfs(&cursor) + nLen <= nMax) { - ME_DisplayItem *pCurItem = cursor.pRun; + ME_Run *run = &cursor.pRun->member.run; int nCurStart = cursor.nOffset; int nMatched = 0; - while (pCurItem && ME_CharCompare( *get_text( &pCurItem->member.run, nCurStart + nMatched ), text[nMatched], (flags & FR_MATCHCASE))) + while (run && ME_CharCompare( *get_text( run, nCurStart + nMatched ), text[nMatched], (flags & FR_MATCHCASE))) { if ((flags & FR_WHOLEWORD) && iswalnum(wLastChar)) break; @@ -1940,21 +1940,21 @@ ME_FindText(ME_TextEditor *editor, DWORD flags, const CHARRANGE *chrg, const WCH nMatched++; if (nMatched == nLen) { - ME_DisplayItem *pNextItem = pCurItem; + ME_Run *next_run = run; int nNextStart = nCurStart; WCHAR wNextChar; /* Check to see if next character is a whitespace */ if (flags & FR_WHOLEWORD) { - if (nCurStart + nMatched == pCurItem->member.run.len) + if (nCurStart + nMatched == run->len) { - pNextItem = ME_FindItemFwd(pCurItem, diRun); + next_run = run_next_all_paras( run ); nNextStart = -nMatched; } - if (pNextItem) - wNextChar = *get_text( &pNextItem->member.run, nNextStart + nMatched ); + if (next_run) + wNextChar = *get_text( next_run, nNextStart + nMatched ); else wNextChar = ' '; @@ -1971,22 +1971,28 @@ ME_FindText(ME_TextEditor *editor, DWORD flags, const CHARRANGE *chrg, const WCH TRACE("found at %d-%d\n", cursor.nOffset, cursor.nOffset + nLen); return cursor.nOffset; } - if (nCurStart + nMatched == pCurItem->member.run.len) + if (nCurStart + nMatched == run->len) { - pCurItem = ME_FindItemFwd(pCurItem, diRun); + run = run_next_all_paras( run ); nCurStart = -nMatched; } } - if (pCurItem) - wLastChar = *get_text( &pCurItem->member.run, nCurStart + nMatched ); + if (run) + wLastChar = *get_text( run, nCurStart + nMatched ); else wLastChar = ' '; cursor.nOffset++; if (cursor.nOffset == cursor.pRun->member.run.len) { - ME_NextRun(&cursor.pPara, &cursor.pRun, TRUE); - cursor.nOffset = 0; + if (run_next_all_paras( &cursor.pRun->member.run )) + { + cursor.pRun = run_get_di( run_next_all_paras( &cursor.pRun->member.run ) ); + cursor.pPara = para_get_di( cursor.pRun->member.run.para ); + cursor.nOffset = 0; + } + else + cursor.pRun = NULL; } } } @@ -2003,19 +2009,20 @@ ME_FindText(ME_TextEditor *editor, DWORD flags, const CHARRANGE *chrg, const WCH while (cursor.pRun && ME_GetCursorOfs(&cursor) - nLen >= nMin) { - ME_DisplayItem *pCurItem = cursor.pRun; - ME_DisplayItem *pCurPara = cursor.pPara; + ME_Run *run = &cursor.pRun->member.run; + ME_Paragraph *para = &cursor.pPara->member.para; int nCurEnd = cursor.nOffset; int nMatched = 0; - if (nCurEnd == 0) + if (nCurEnd == 0 && run_prev_all_paras( run )) { - ME_PrevRun(&pCurPara, &pCurItem, TRUE); - nCurEnd = pCurItem->member.run.len; + run = run_prev_all_paras( run ); + para = run->para; + nCurEnd = run->len; } - while (pCurItem && ME_CharCompare( *get_text( &pCurItem->member.run, nCurEnd - nMatched - 1 ), - text[nLen - nMatched - 1], (flags & FR_MATCHCASE) )) + while (run && ME_CharCompare( *get_text( run, nCurEnd - nMatched - 1 ), + text[nLen - nMatched - 1], (flags & FR_MATCHCASE) )) { if ((flags & FR_WHOLEWORD) && iswalnum(wLastChar)) break; @@ -2023,7 +2030,7 @@ ME_FindText(ME_TextEditor *editor, DWORD flags, const CHARRANGE *chrg, const WCH nMatched++; if (nMatched == nLen) { - ME_DisplayItem *pPrevItem = pCurItem; + ME_Run *prev_run = run; int nPrevEnd = nCurEnd; WCHAR wPrevChar; int nStart; @@ -2033,22 +2040,18 @@ ME_FindText(ME_TextEditor *editor, DWORD flags, const CHARRANGE *chrg, const WCH { if (nPrevEnd - nMatched == 0) { - pPrevItem = ME_FindItemBack(pCurItem, diRun); - if (pPrevItem) - nPrevEnd = pPrevItem->member.run.len + nMatched; + prev_run = run_prev_all_paras( run ); + if (prev_run) nPrevEnd = prev_run->len + nMatched; } - if (pPrevItem) - wPrevChar = *get_text( &pPrevItem->member.run, nPrevEnd - nMatched - 1 ); - else - wPrevChar = ' '; + if (prev_run) wPrevChar = *get_text( prev_run, nPrevEnd - nMatched - 1 ); + else wPrevChar = ' '; if (iswalnum(wPrevChar)) break; } - nStart = pCurPara->member.para.nCharOfs - + pCurItem->member.run.nCharOfs + nCurEnd - nMatched; + nStart = para->nCharOfs + run->nCharOfs + nCurEnd - nMatched; if (chrgText) { chrgText->cpMin = nStart; @@ -2059,22 +2062,32 @@ ME_FindText(ME_TextEditor *editor, DWORD flags, const CHARRANGE *chrg, const WCH } if (nCurEnd - nMatched == 0) { - ME_PrevRun(&pCurPara, &pCurItem, TRUE); + if (run_prev_all_paras( run )) + { + run = run_prev_all_paras( run ); + para = run->para; + } /* Don't care about pCurItem becoming NULL here; it's already taken * care of in the exterior loop condition */ - nCurEnd = pCurItem->member.run.len + nMatched; + nCurEnd = run->len + nMatched; } } - if (pCurItem) - wLastChar = *get_text( &pCurItem->member.run, nCurEnd - nMatched - 1 ); + if (run) + wLastChar = *get_text( run, nCurEnd - nMatched - 1 ); else wLastChar = ' '; cursor.nOffset--; if (cursor.nOffset < 0) { - ME_PrevRun(&cursor.pPara, &cursor.pRun, TRUE); - cursor.nOffset = cursor.pRun->member.run.len; + if (run_prev_all_paras( &cursor.pRun->member.run ) ) + { + cursor.pRun = run_get_di( run_prev_all_paras( &cursor.pRun->member.run ) ); + cursor.pPara = para_get_di( cursor.pRun->member.run.para ); + cursor.nOffset = cursor.pRun->member.run.len; + } + else + cursor.pRun = NULL; } } }
1
0
0
0
Huw Davies : riched20: Use a run ptr in the rtf row handler.
by Alexandre Julliard
30 Oct '20
30 Oct '20
Module: wine Branch: master Commit: 0c9d5ebf5c74d8215cbf676af3dd7e7f431afc90 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=0c9d5ebf5c74d8215cbf676a…
Author: Huw Davies <huw(a)codeweavers.com> Date: Fri Oct 30 09:00:28 2020 +0000 riched20: Use a run ptr in the rtf row handler. Signed-off-by: Huw Davies <huw(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/riched20/editor.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 40282027dba..1f37258f345 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -987,7 +987,7 @@ void ME_RTFSpecialCharHook(RTF_Info *info) /* else fall through since v4.1 treats rtfNestRow and rtfRow the same */ case rtfRow: { - ME_DisplayItem *run; + ME_Run *run; ME_Paragraph *para; ME_Cell *cell; int i; @@ -1042,14 +1042,14 @@ void ME_RTFSpecialCharHook(RTF_Info *info) cell->nRightBoundary = tableDef->cells[i - 1].rightBoundary; } - run = ME_FindItemFwd( cell_get_di( cell) , diRun ); - if (info->editor->pCursors[0].pRun != run || + run = para_first_run( cell_first_para( cell ) ); + if (&info->editor->pCursors[0].pRun->member.run != run || info->editor->pCursors[0].nOffset) { int nOfs, nChars; /* Delete inserted cells that aren't defined. */ - info->editor->pCursors[1].pRun = run; - info->editor->pCursors[1].pPara = ME_GetParagraph(run); + info->editor->pCursors[1].pRun = run_get_di( run ); + info->editor->pCursors[1].pPara = para_get_di( run->para ); info->editor->pCursors[1].nOffset = 0; nOfs = ME_GetCursorOfs(&info->editor->pCursors[1]); nChars = ME_GetCursorOfs(&info->editor->pCursors[0]) - nOfs;
1
0
0
0
Huw Davies : riched20: Use paragraph ptrs in the enter handler.
by Alexandre Julliard
30 Oct '20
30 Oct '20
Module: wine Branch: master Commit: a0f0dc1c5b9d66a4ba6b6099c2d0a74d72208203 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=a0f0dc1c5b9d66a4ba6b6099…
Author: Huw Davies <huw(a)codeweavers.com> Date: Fri Oct 30 09:00:27 2020 +0000 riched20: Use paragraph ptrs in the enter handler. Signed-off-by: Huw Davies <huw(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/riched20/editor.c | 70 +++++++++++++++++++++++++------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 2a3858ba038..40282027dba 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -2484,7 +2484,7 @@ static BOOL handle_enter(ME_TextEditor *editor) static const WCHAR endl = '\r'; static const WCHAR endlv10[] = {'\r','\n'}; ME_Cursor cursor = editor->pCursors[0]; - ME_DisplayItem *para = cursor.pPara; + ME_Paragraph *para = &cursor.pPara->member.para; int from, to; ME_Style *style, *eop_style; @@ -2499,40 +2499,40 @@ static BOOL handle_enter(ME_TextEditor *editor) { if (!editor->bEmulateVersion10) /* v4.1 */ { - if (para->member.para.nFlags & MEPF_ROWEND) + if (para->nFlags & MEPF_ROWEND) { /* Add a new table row after this row. */ - para = para_get_di( table_append_row( editor, ¶->member.para ) ); - para = para->member.para.next_para; - editor->pCursors[0].pPara = para; - editor->pCursors[0].pRun = ME_FindItemFwd(para, diRun); + para = table_append_row( editor, para ); + para = para_next( para ); + editor->pCursors[0].pPara = para_get_di( para ); + editor->pCursors[0].pRun = run_get_di( para_first_run( para ) ); editor->pCursors[0].nOffset = 0; editor->pCursors[1] = editor->pCursors[0]; ME_CommitUndo(editor); ME_UpdateRepaint(editor, FALSE); return TRUE; } - else if (para == editor->pCursors[1].pPara && - cursor.nOffset + cursor.pRun->member.run.nCharOfs == 0 && - para->member.para.prev_para->member.para.nFlags & MEPF_ROWSTART && - !para->member.para.prev_para->member.para.nCharOfs) + else if (para == &editor->pCursors[1].pPara->member.para && + cursor.nOffset + cursor.pRun->member.run.nCharOfs == 0 && + para_prev( para ) && para_prev( para )->nFlags & MEPF_ROWSTART && + !para_prev( para )->nCharOfs) { /* Insert a newline before the table. */ - para = para->member.para.prev_para; - para->member.para.nFlags &= ~MEPF_ROWSTART; - editor->pCursors[0].pPara = para; - editor->pCursors[0].pRun = ME_FindItemFwd(para, diRun); + para = para_prev( para ); + para->nFlags &= ~MEPF_ROWSTART; + editor->pCursors[0].pPara = para_get_di( para ); + editor->pCursors[0].pRun = run_get_di( para_first_run( para ) ); editor->pCursors[1] = editor->pCursors[0]; ME_InsertTextFromCursor(editor, 0, &endl, 1, - editor->pCursors[0].pRun->member.run.style); - para = editor->pBuffer->pFirst->member.para.next_para; - editor_set_default_para_fmt( editor, ¶->member.para.fmt ); - para->member.para.nFlags = 0; - para_mark_rewrap( editor, ¶->member.para ); - editor->pCursors[0].pPara = para; - editor->pCursors[0].pRun = ME_FindItemFwd(para, diRun); + editor->pCursors[0].pRun->member.run.style); + para = editor_first_para( editor ); + editor_set_default_para_fmt( editor, ¶->fmt ); + para->nFlags = 0; + para_mark_rewrap( editor, para ); + editor->pCursors[0].pPara = para_get_di( para ); + editor->pCursors[0].pRun = run_get_di( para_first_run( para ) ); editor->pCursors[1] = editor->pCursors[0]; - para->member.para.next_para->member.para.nFlags |= MEPF_ROWSTART; + para_next( para )->nFlags |= MEPF_ROWSTART; ME_CommitCoalescingUndo(editor); ME_UpdateRepaint(editor, FALSE); return TRUE; @@ -2540,17 +2540,17 @@ static BOOL handle_enter(ME_TextEditor *editor) } else /* v1.0 - 3.0 */ { - ME_DisplayItem *para = cursor.pPara; - if (ME_IsInTable(para)) + ME_Paragraph *para = &cursor.pPara->member.para; + if (para_in_table( para )) { if (cursor.pRun->member.run.nFlags & MERF_ENDPARA) { if (from == to) { ME_ContinueCoalescingTransaction(editor); - para = para_get_di( table_append_row( editor, ¶->member.para ) ); - editor->pCursors[0].pPara = para; - editor->pCursors[0].pRun = ME_FindItemFwd(para, diRun); + para = table_append_row( editor, para ); + editor->pCursors[0].pPara = para_get_di( para ); + editor->pCursors[0].pRun = run_get_di( para_first_run( para ) ); editor->pCursors[0].nOffset = 0; editor->pCursors[1] = editor->pCursors[0]; ME_CommitCoalescingUndo(editor); @@ -2562,14 +2562,14 @@ static BOOL handle_enter(ME_TextEditor *editor) { ME_ContinueCoalescingTransaction(editor); if (cursor.pRun->member.run.nCharOfs + cursor.nOffset == 0 && - !ME_IsInTable(para->member.para.prev_para)) + para_prev( para ) && !para_in_table( para_prev( para ) )) { /* Insert newline before table */ - cursor.pRun = ME_FindItemBack(para, diRun); + cursor.pRun = run_get_di( para_end_run( para_prev( para ) ) ); if (cursor.pRun) { editor->pCursors[0].pRun = cursor.pRun; - editor->pCursors[0].pPara = para->member.para.prev_para; + editor->pCursors[0].pPara = para_get_di( para_prev( para ) ); } editor->pCursors[0].nOffset = 0; editor->pCursors[1] = editor->pCursors[0]; @@ -2579,9 +2579,9 @@ static BOOL handle_enter(ME_TextEditor *editor) else { editor->pCursors[1] = editor->pCursors[0]; - para = para_get_di( table_append_row( editor, ¶->member.para ) ); - editor->pCursors[0].pPara = para; - editor->pCursors[0].pRun = ME_FindItemFwd(para, diRun); + para = table_append_row( editor, para ); + editor->pCursors[0].pPara = para_get_di( para ); + editor->pCursors[0].pRun = run_get_di( para_first_run( para ) ); editor->pCursors[0].nOffset = 0; editor->pCursors[1] = editor->pCursors[0]; } @@ -2597,8 +2597,8 @@ static BOOL handle_enter(ME_TextEditor *editor) /* Normally the new eop style is the insert style, however in a list it is copied from the existing eop style (this prevents the list label style changing when the new eop is inserted). No extra ref is taken here on eop_style. */ - if (para->member.para.fmt.wNumbering) - eop_style = para->member.para.eop_run->style; + if (para->fmt.wNumbering) + eop_style = para->eop_run->style; else eop_style = style; ME_ContinueCoalescingTransaction(editor);
1
0
0
0
Huw Davies : riched20: Use paragraph ptrs in the selection link check function.
by Alexandre Julliard
30 Oct '20
30 Oct '20
Module: wine Branch: master Commit: 352e7664d8d1a74600ebd9dc3d3a2dcbe337d7af URL:
https://source.winehq.org/git/wine.git/?a=commit;h=352e7664d8d1a74600ebd9dc…
Author: Huw Davies <huw(a)codeweavers.com> Date: Fri Oct 30 09:00:26 2020 +0000 riched20: Use paragraph ptrs in the selection link check function. Signed-off-by: Huw Davies <huw(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/riched20/editor.c | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 057d5a31ce6..2a3858ba038 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -2426,30 +2426,27 @@ ME_FilterEvent(ME_TextEditor *editor, UINT msg, WPARAM* wParam, LPARAM* lParam) static void ME_UpdateSelectionLinkAttribute(ME_TextEditor *editor) { - ME_DisplayItem *startPara, *endPara; - ME_DisplayItem *prev_para; - ME_Cursor *from, *to; - ME_Cursor start; - int nChars; + ME_Paragraph *start_para, *end_para; + ME_Cursor *from, *to, start; + int num_chars; if (!editor->AutoURLDetect_bEnable) return; ME_GetSelection(editor, &from, &to); /* Find paragraph previous to the one that contains start cursor */ - startPara = from->pPara; - prev_para = startPara->member.para.prev_para; - if (prev_para->type == diParagraph) startPara = prev_para; + start_para = &from->pPara->member.para; + if (para_prev( start_para )) start_para = para_prev( start_para ); /* Find paragraph that contains end cursor */ - endPara = to->pPara->member.para.next_para; + end_para = para_next( &to->pPara->member.para ); - start.pPara = startPara; - start.pRun = ME_FindItemFwd(startPara, diRun); + start.pPara = para_get_di( start_para ); + start.pRun = run_get_di( para_first_run( start_para ) ); start.nOffset = 0; - nChars = endPara->member.para.nCharOfs - startPara->member.para.nCharOfs; + num_chars = end_para->nCharOfs - start_para->nCharOfs; - ME_UpdateLinkAttribute(editor, &start, nChars); + ME_UpdateLinkAttribute( editor, &start, num_chars ); } static BOOL handle_enter(ME_TextEditor *editor)
1
0
0
0
Huw Davies : riched20: Use a paragraph ptr in the stream in function.
by Alexandre Julliard
30 Oct '20
30 Oct '20
Module: wine Branch: master Commit: 2bc67cfcf9293a4bf58a7bd0de5203c1a9ffbfdc URL:
https://source.winehq.org/git/wine.git/?a=commit;h=2bc67cfcf9293a4bf58a7bd0…
Author: Huw Davies <huw(a)codeweavers.com> Date: Fri Oct 30 09:00:25 2020 +0000 riched20: Use a paragraph ptr in the stream in function. Signed-off-by: Huw Davies <huw(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/riched20/editor.c | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index d1667dc9176..057d5a31ce6 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -1607,29 +1607,27 @@ static LRESULT ME_StreamIn(ME_TextEditor *editor, DWORD format, EDITSTREAM *stre ME_InternalDeleteText(editor, selStart, to - from, FALSE); /* Don't insert text at the end of the table row */ - if (!editor->bEmulateVersion10) { /* v4.1 */ - ME_DisplayItem *para = editor->pCursors->pPara; - if (para->member.para.nFlags & MEPF_ROWEND) - { - para = para->member.para.next_para; - editor->pCursors[0].pPara = para; - editor->pCursors[0].pRun = ME_FindItemFwd(para, diRun); - editor->pCursors[0].nOffset = 0; - } - if (para->member.para.nFlags & MEPF_ROWSTART) + if (!editor->bEmulateVersion10) /* v4.1 */ + { + ME_Paragraph *para = &editor->pCursors->pPara->member.para; + if (para->nFlags & (MEPF_ROWSTART | MEPF_ROWEND)) { - para = para->member.para.next_para; - editor->pCursors[0].pPara = para; - editor->pCursors[0].pRun = ME_FindItemFwd(para, diRun); + para = para_next( para ); + editor->pCursors[0].pPara = para_get_di( para ); + editor->pCursors[0].pRun = run_get_di( para_first_run( para ) ); editor->pCursors[0].nOffset = 0; } editor->pCursors[1] = editor->pCursors[0]; - } else { /* v1.0 - 3.0 */ + } + else /* v1.0 - 3.0 */ + { if (editor->pCursors[0].pRun->member.run.nFlags & MERF_ENDPARA && - ME_IsInTable(editor->pCursors[0].pRun)) + para_in_table( &editor->pCursors[0].pPara->member.para )) return 0; } - } else { + } + else + { style = editor->pBuffer->pDefaultStyle; ME_AddRefStyle(style); set_selection_cursors(editor, 0, 0);
1
0
0
0
Zhiyi Zhang : winex11.drv: Update a comment.
by Alexandre Julliard
30 Oct '20
30 Oct '20
Module: wine Branch: master Commit: 28735278198e7ef8a4d0b73e9859748eab9d6570 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=28735278198e7ef8a4d0b73e…
Author: Zhiyi Zhang <zzhang(a)codeweavers.com> Date: Fri Oct 30 16:20:10 2020 +0800 winex11.drv: Update a comment. Signed-off-by: Zhiyi Zhang <zzhang(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/winex11.drv/event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c index 07f7a1ad502..d21d2a7fb1b 100644 --- a/dlls/winex11.drv/event.c +++ b/dlls/winex11.drv/event.c @@ -702,7 +702,7 @@ static void handle_wm_protocols( HWND hwnd, XClientMessageEvent *event ) if (can_activate_window(hwnd)) { - /* simulate a mouse click on the caption to find out + /* simulate a mouse click on the menu to find out * whether the window wants to be activated */ LRESULT ma = SendMessageW( hwnd, WM_MOUSEACTIVATE, (WPARAM)GetAncestor( hwnd, GA_ROOT ),
1
0
0
0
Zhiyi Zhang : winemac.drv: Send HTMENU instead of HTCAPTION to query window activation.
by Alexandre Julliard
30 Oct '20
30 Oct '20
Module: wine Branch: master Commit: ce9aaf3f4250536aadf04ad77fcaa1836242b696 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=ce9aaf3f4250536aadf04ad7…
Author: Zhiyi Zhang <zzhang(a)codeweavers.com> Date: Fri Oct 30 16:19:50 2020 +0800 winemac.drv: Send HTMENU instead of HTCAPTION to query window activation. Equivalent of cfcc280905b7804efde8f42bcd6bddbe5ebd8cad for winex11.drv. Signed-off-by: Zhiyi Zhang <zzhang(a)codeweavers.com> Signed-off-by: Ken Thomases <ken(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/winemac.drv/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winemac.drv/window.c b/dlls/winemac.drv/window.c index 066eb553f76..e7f5327fcdc 100644 --- a/dlls/winemac.drv/window.c +++ b/dlls/winemac.drv/window.c @@ -2348,11 +2348,11 @@ void macdrv_window_got_focus(HWND hwnd, const macdrv_event *event) if (can_activate_window(hwnd) && !(style & WS_MINIMIZE)) { - /* simulate a mouse click on the caption to find out + /* simulate a mouse click on the menu to find out * whether the window wants to be activated */ LRESULT ma = SendMessageW(hwnd, WM_MOUSEACTIVATE, (WPARAM)GetAncestor(hwnd, GA_ROOT), - MAKELONG(HTCAPTION,WM_LBUTTONDOWN)); + MAKELONG(HTMENU, WM_LBUTTONDOWN)); if (ma != MA_NOACTIVATEANDEAT && ma != MA_NOACTIVATE) { TRACE("setting foreground window to %p\n", hwnd);
1
0
0
0
← Newer
1
2
3
4
5
6
...
80
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
Results per page:
10
25
50
100
200