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
March 2008
----- 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
4 participants
1001 discussions
Start a n
N
ew thread
Michael Stefaniuc : winhelp: Fix and activate the Romansh translation.
by Alexandre Julliard
28 Mar '08
28 Mar '08
Module: wine Branch: master Commit: 00489f45efd0b871b71346ad021101127ccd549f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=00489f45efd0b871b71346ad0…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Fri Mar 28 01:23:58 2008 +0100 winhelp: Fix and activate the Romansh translation. --- programs/winhelp/{Va.rc => Rm.rc} | 46 +++++++++++++++++------------------- programs/winhelp/rsrc.rc | 1 + 2 files changed, 23 insertions(+), 24 deletions(-) diff --git a/programs/winhelp/Va.rc b/programs/winhelp/Rm.rc similarity index 63% rename from programs/winhelp/Va.rc rename to programs/winhelp/Rm.rc index 647c9df..ebbb154 100644 --- a/programs/winhelp/Va.rc +++ b/programs/winhelp/Rm.rc @@ -20,13 +20,12 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +/* FIXME: This file is in the Vallader Romansh dialect and not in the + official Rumantsch Grischun. */ + /* Menu */ -/* -* language : switzerland romanch -* not supported today -*/ -MAIN_MENU MENU LANGUAGE LANG_, SUBLANG_DEFAULT +MAIN_MENU MENU LANGUAGE LANG_ROMANSH, SUBLANG_DEFAULT { POPUP "&Datoteca" { MENUITEM "&Rivir", MNID_FILE_OPEN @@ -44,33 +43,32 @@ MAIN_MENU MENU LANGUAGE LANG_, SUBLANG_DEFAULT POPUP "&Marca" { MENUITEM "&Definir...", MNID_BKMK_DEFINE } - POPUP "&Ag�d" { - MENUITEM "&Douvrar l'ag�d", MNID_HELP_HELPON - MENUITEM "Ad�na da&vant", MNID_HELP_HELPTOP + POPUP "&Ag�d" { + MENUITEM "&Douvrar l'ag�d", MNID_HELP_HELPON + MENUITEM "Ad�na da&vant", MNID_HELP_HELPTOP MENUITEM SEPARATOR MENUITEM "I&nfuormaziuns", MNID_HELP_ABOUT #ifdef WINELIB - MENUITEM "Davart &WINE", MNID_HELP_WINE + MENUITEM "Davart &Wine", MNID_HELP_WINE #endif } } /* Strings */ - -STRINGTABLE DISCARDABLE LANGUAGE LANG_FRENCH, SUBLANG_DEFAULT +STRINGTABLE DISCARDABLE LANGUAGE LANG_ROMANSH, SUBLANG_DEFAULT { -WINE_HELP, "WINE ag�d" -WHERROR, "SBAGL" -WARNING, "ATTENZIUN" -INFO, "INFUORMAZIUN" -NOT_IMPLEMENTED, "Na implementa" -HLPFILE_ERROR_s, "Sbagl cun leger la datoteca d'ag�d `%s'" -CONTENTS, "&Cuntgn�" -SEARCH, "&Tscherchar" -BACK, "&Inavo" -HISTORY, "&Fin qua" -TOPICS, "T&opics" -ALL_FILES, "Tuot las datotecas (*.*)" -HELP_FILES_HLP, "Datotecas d'ag�d (*.hlp)" +STID_WINE_HELP, "WINE ag�d" +STID_WHERROR, "SBAGL" +STID_WARNING, "ATTENZIUN" +STID_INFO, "INFUORMAZIUN" +STID_NOT_IMPLEMENTED, "Na implementa" +STID_HLPFILE_ERROR_s, "Sbagl cun leger la datoteca d'ag�d `%s'" +STID_CONTENTS, "&Cuntgn�" +STID_SEARCH, "&Tscherchar" +STID_BACK, "&Inavo" +STID_HISTORY, "&Fin qua" +STID_TOPICS, "T&opics" +STID_ALL_FILES, "Tuot las datotecas (*.*)" +STID_HELP_FILES_HLP, "Datotecas d'ag�d (*.hlp)" STID_FILE_NOT_FOUND_s "Cannot find '%s'. Do you want to find this file yourself?" } diff --git a/programs/winhelp/rsrc.rc b/programs/winhelp/rsrc.rc index 8109916..c8a6417 100644 --- a/programs/winhelp/rsrc.rc +++ b/programs/winhelp/rsrc.rc @@ -41,6 +41,7 @@ #include "No.rc" #include "Pl.rc" #include "Pt.rc" +#include "Rm.rc" #include "Ru.rc" #include "Si.rc" #include "Sk.rc"
1
0
0
0
Michael Stefaniuc : kernel32: Add the NLS file for Romansh (Switzerland).
by Alexandre Julliard
28 Mar '08
28 Mar '08
Module: wine Branch: master Commit: c90baaf7f1eca99424eead1869541d1ead3a2a7c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c90baaf7f1eca99424eead186…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Fri Mar 28 00:57:54 2008 +0100 kernel32: Add the NLS file for Romansh (Switzerland). --- dlls/kernel32/locale_rc.rc | 2 + dlls/kernel32/nls/rmc.nls | 166 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 168 insertions(+), 0 deletions(-) diff --git a/dlls/kernel32/locale_rc.rc b/dlls/kernel32/locale_rc.rc index 5642189..01b24c6 100644 --- a/dlls/kernel32/locale_rc.rc +++ b/dlls/kernel32/locale_rc.rc @@ -134,6 +134,8 @@ #include "nls/ptb.nls" /* 0x0416 LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN */ #include "nls/ptg.nls" /* 0x0816 LANG_PORTUGUESE, SUBLANG_PORTUGUESE */ +#include "nls/rmc.nls" /* 0x0417 LANG_ROMANSH, SUBLANG_ROMANSH_SWITZERLAND */ + #include "nls/rom.nls" /* 0x0418 LANG_ROMANIAN, SUBLANG_DEFAULT */ #include "nls/rus.nls" /* 0x0419 LANG_RUSSIAN, SUBLANG_DEFAULT */ diff --git a/dlls/kernel32/nls/rmc.nls b/dlls/kernel32/nls/rmc.nls new file mode 100644 index 0000000..fb09800 --- /dev/null +++ b/dlls/kernel32/nls/rmc.nls @@ -0,0 +1,166 @@ +/* + * Locale definitions for Romansh (Switzerland) + * + * Copyright 2002 Alexandre Julliard for CodeWeavers + * Copyright 2008 Michael Stefaniuc + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* +- Windows Vista (at least the NLS informations about it on
www.microsoft.com
) + has the wrong short date format dd/MM/yyyy e.g. 01/08/1996 instead of the + correct d-M-yyyy e.g 1-8-1996. This file uses the right short date format as + seen on
http://www.liarumantscha.ch/
and in the glibc-morelocales.patch for + glibc-2.6. +- As decimal separator this file uses the "," like
http://www.liarumantscha.ch/
+ does and not the "." used by Windows Vista and the Swiss German language. +*/ + +#pragma code_page(1252) + +STRINGTABLE LANGUAGE LANG_ROMANSH, SUBLANG_ROMANSH_SWITZERLAND +{ + LOCALE_FONTSIGNATURE L"\x002f\x8000\x3808\x0000\x0000\x0000\x0000\x0000\x0001\x0000\x0000\x4000\x0093\x0000\x0000\xcdd4" + LOCALE_ICALENDARTYPE "1" + LOCALE_ICENTURY "1" + LOCALE_ICOUNTRY "41" + LOCALE_ICURRDIGITS "2" + LOCALE_ICURRENCY "2" + LOCALE_IDATE "1" + LOCALE_IDAYLZERO "0" + LOCALE_IDEFAULTANSICODEPAGE "1252" + LOCALE_IDEFAULTCODEPAGE "850" + LOCALE_IDEFAULTCOUNTRY "41" + LOCALE_IDEFAULTEBCDICCODEPAGE "20273" + LOCALE_IDEFAULTLANGUAGE "0417" + LOCALE_IDEFAULTMACCODEPAGE "10000" + LOCALE_IDEFAULTUNIXCODEPAGE "28605" + LOCALE_IDIGITS "2" + LOCALE_IDIGITSUBSTITUTION "1" + LOCALE_IFIRSTDAYOFWEEK "0" + LOCALE_IFIRSTWEEKOFYEAR "2" + LOCALE_IINTLCURRDIGITS "2" + LOCALE_ILANGUAGE "0417" + LOCALE_ILDATE "1" + LOCALE_ILZERO "1" + LOCALE_IMEASURE "0" + LOCALE_IMONLZERO "0" + LOCALE_INEGCURR "2" + LOCALE_INEGNUMBER "1" + LOCALE_INEGSEPBYSPACE "0" + LOCALE_INEGSIGNPOSN "4" + LOCALE_INEGSYMPRECEDES "1" + LOCALE_IOPTIONALCALENDAR "0" + LOCALE_IPAPERSIZE "9" + LOCALE_IPOSSEPBYSPACE "1" + LOCALE_IPOSSIGNPOSN "4" + LOCALE_IPOSSYMPRECEDES "1" + LOCALE_ITIME "1" + LOCALE_ITIMEMARKPOSN "0" + LOCALE_ITLZERO "1" + LOCALE_S1159 "" + LOCALE_S2359 "" + LOCALE_SABBREVCTRYNAME "CHE" + LOCALE_SABBREVDAYNAME1 "gli" + LOCALE_SABBREVDAYNAME2 "ma" + LOCALE_SABBREVDAYNAME3 "me" + LOCALE_SABBREVDAYNAME4 "gie" + LOCALE_SABBREVDAYNAME5 "ve" + LOCALE_SABBREVDAYNAME6 "so" + LOCALE_SABBREVDAYNAME7 "du" + LOCALE_SABBREVLANGNAME "RMC" + LOCALE_SABBREVMONTHNAME1 "schan" + LOCALE_SABBREVMONTHNAME2 "favr" + LOCALE_SABBREVMONTHNAME3 "mars" + LOCALE_SABBREVMONTHNAME4 "avr" + LOCALE_SABBREVMONTHNAME5 "matg" + LOCALE_SABBREVMONTHNAME6 "zercl" + LOCALE_SABBREVMONTHNAME7 "fan" + LOCALE_SABBREVMONTHNAME8 "avust" + LOCALE_SABBREVMONTHNAME9 "sett" + LOCALE_SABBREVMONTHNAME10 "oct" + LOCALE_SABBREVMONTHNAME11 "nov" + LOCALE_SABBREVMONTHNAME12 "dec" + LOCALE_SABBREVMONTHNAME13 "" + LOCALE_SCOUNTRY "Switzerland" + LOCALE_SCURRENCY "fr." + LOCALE_SDATE "-" + LOCALE_SDAYNAME1 "glindesdi" + LOCALE_SDAYNAME2 "mardi" + LOCALE_SDAYNAME3 "mesemna" + LOCALE_SDAYNAME4 "gievgia" + LOCALE_SDAYNAME5 "venderdi" + LOCALE_SDAYNAME6 "sonda" + LOCALE_SDAYNAME7 "dumengia" + LOCALE_SDECIMAL "," + LOCALE_SENGCOUNTRY "Switzerland" + LOCALE_SENGCURRNAME "Swiss Franc" + LOCALE_SENGLANGUAGE "Romansh" + LOCALE_SGROUPING "3;0" + LOCALE_SINTLSYMBOL "CHF" + LOCALE_SISO3166CTRYNAME "CH" + LOCALE_SISO639LANGNAME "rm" + LOCALE_SLANGUAGE "Romansh (Switzerland)" + LOCALE_SLIST ";" + LOCALE_SLONGDATE "dddd, d MMMM yyyy" + LOCALE_SMONDECIMALSEP "," + LOCALE_SMONGROUPING "3;0" + LOCALE_SMONTHNAME1 "schaner" + LOCALE_SMONTHNAME2 "favrer" + LOCALE_SMONTHNAME3 "mars" + LOCALE_SMONTHNAME4 "avrigl" + LOCALE_SMONTHNAME5 "matg" + LOCALE_SMONTHNAME6 "zercladur" + LOCALE_SMONTHNAME7 "fanadur" + LOCALE_SMONTHNAME8 "avust" + LOCALE_SMONTHNAME9 "settember" + LOCALE_SMONTHNAME10 "october" + LOCALE_SMONTHNAME11 "november" + LOCALE_SMONTHNAME12 "december" + LOCALE_SMONTHNAME13 "" + LOCALE_SMONTHOUSANDSEP "'" + LOCALE_SNAME "rm-CH" + LOCALE_SNATIVECTRYNAME "Svizra" + LOCALE_SNATIVECURRNAME "Franc svizzer" + LOCALE_SNATIVEDIGITS "0123456789" + LOCALE_SNATIVELANGNAME "Rumantsch (Svizra)" + LOCALE_SNEGATIVESIGN "-" + LOCALE_SPOSITIVESIGN "" + LOCALE_SSHORTDATE "dd-MM-yyyy" + LOCALE_SSORTNAME "Default" + LOCALE_STHOUSAND "'" + LOCALE_STIME ":" + LOCALE_STIMEFORMAT "HH:mm:ss" + LOCALE_SYEARMONTH "MMMM yyyy" + + LGRPID_WESTERN_EUROPE+LGRPID_RES_BASE "Western Europe and United States" + LGRPID_CENTRAL_EUROPE+LGRPID_RES_BASE "Central Europe" + LGRPID_BALTIC+LGRPID_RES_BASE "Baltic" + LGRPID_GREEK+LGRPID_RES_BASE "Greek" + LGRPID_CYRILLIC+LGRPID_RES_BASE "Cyrillic" + LGRPID_TURKISH+LGRPID_RES_BASE "Turkic" + LGRPID_JAPANESE+LGRPID_RES_BASE "Japanese" + LGRPID_KOREAN+LGRPID_RES_BASE "Korean" + LGRPID_TRADITIONAL_CHINESE+LGRPID_RES_BASE "Traditional Chinese" + LGRPID_SIMPLIFIED_CHINESE+LGRPID_RES_BASE "Simplified Chinese" + LGRPID_THAI+LGRPID_RES_BASE "Thai" + LGRPID_HEBREW+LGRPID_RES_BASE "Hebrew" + LGRPID_ARABIC+LGRPID_RES_BASE "Arabic" + LGRPID_VIETNAMESE+LGRPID_RES_BASE "Vietnamese" + LGRPID_INDIC+LGRPID_RES_BASE "Indic" + LGRPID_GEORGIAN+LGRPID_RES_BASE "Georgian" + LGRPID_ARMENIAN+LGRPID_RES_BASE "Armenian" +}
1
0
0
0
Michael Stefaniuc : wrc: Add the code page mapping for LANG_ROMANSH.
by Alexandre Julliard
28 Mar '08
28 Mar '08
Module: wine Branch: master Commit: 865c31b81143676fcad794d9ab0745c8a5cc0b8e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=865c31b81143676fcad794d9a…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Fri Mar 28 00:51:51 2008 +0100 wrc: Add the code page mapping for LANG_ROMANSH. --- tools/wrc/utils.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tools/wrc/utils.c b/tools/wrc/utils.c index 24f589e..58d6124 100644 --- a/tools/wrc/utils.c +++ b/tools/wrc/utils.c @@ -405,6 +405,7 @@ static const struct lang2cp lang2cps[] = { LANG_PORTUGUESE, SUBLANG_NEUTRAL, 1252 }, { LANG_PUNJABI, SUBLANG_NEUTRAL, 0 }, { LANG_ROMANIAN, SUBLANG_NEUTRAL, 1250 }, + { LANG_ROMANSH, SUBLANG_NEUTRAL, 1252 }, { LANG_RUSSIAN, SUBLANG_NEUTRAL, 1251 }, { LANG_SANSKRIT, SUBLANG_NEUTRAL, 0 }, { LANG_SERBIAN, SUBLANG_NEUTRAL, 1250 },
1
0
0
0
Michael Stefaniuc : user32: About dialog cosmetic fixes for the Romanian translation too.
by Alexandre Julliard
28 Mar '08
28 Mar '08
Module: wine Branch: master Commit: 4174053fbc0a4b0451f54a9f2c5e1a44009b594d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4174053fbc0a4b0451f54a9f2…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Fri Mar 28 00:51:17 2008 +0100 user32: About dialog cosmetic fixes for the Romanian translation too. --- dlls/user32/resources/user32_Ro.rc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/user32/resources/user32_Ro.rc b/dlls/user32/resources/user32_Ro.rc index b2b7cd3..91aa557 100644 --- a/dlls/user32/resources/user32_Ro.rc +++ b/dlls/user32/resources/user32_Ro.rc @@ -33,7 +33,7 @@ SYSMENU MENU LOADONCALL MOVEABLE DISCARDABLE MENUITEM SEPARATOR MENUITEM "&Comută la ...\tCtrl-Esc", 61744 MENUITEM SEPARATOR - MENUITEM "&Despre WINE ...", 61761 + MENUITEM "&Despre Wine ...", 61761 MENUITEM SEPARATOR MENUITEM "&Pune 'Debug mark' în jurnalul de depanare", 61762 }
1
0
0
0
Maarten Lankhorst : quartz: Add GetCurrentPosition using the reference clock.
by Alexandre Julliard
28 Mar '08
28 Mar '08
Module: wine Branch: master Commit: 39623a403a99ee32ba3d16d2db316544dccb417e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=39623a403a99ee32ba3d16d2d…
Author: Maarten Lankhorst <m.b.lankhorst(a)gmail.com> Date: Thu Mar 27 16:28:51 2008 -0700 quartz: Add GetCurrentPosition using the reference clock. --- dlls/quartz/filtergraph.c | 43 +++++++++++++++++++++++++++++++++++++- dlls/quartz/tests/filtergraph.c | 37 +++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+), 2 deletions(-) diff --git a/dlls/quartz/filtergraph.c b/dlls/quartz/filtergraph.c index 9b37594..4371a36 100644 --- a/dlls/quartz/filtergraph.c +++ b/dlls/quartz/filtergraph.c @@ -199,6 +199,8 @@ typedef struct _IFilterGraphImpl { BOOL bUnkOuterValid; BOOL bAggregatable; GUID timeformatseek; + LONGLONG start_time; + LONGLONG position; } IFilterGraphImpl; static HRESULT WINAPI Filtergraph_QueryInterface(IFilterGraphImpl *This, @@ -1517,7 +1519,7 @@ static HRESULT SendFilterMessage(IMediaControl *iface, fnFoundFilter FoundFilter /* Explorer the graph from source filters to renderers, determine renderers * number and run filters from renderers to source filters */ - This->nRenderers = 0; + This->nRenderers = 0; ResetEvent(This->hEventCompletion); for(i = 0; i < This->nFilters; i++) @@ -1567,6 +1569,13 @@ static HRESULT WINAPI MediaControl_Run(IMediaControl *iface) { if (This->state == State_Running) return S_OK; EnterCriticalSection(&This->cs); + if (This->refClock) + { + IReferenceClock_GetTime(This->refClock, &This->start_time); + This->start_time += 500000; + } + else This->position = This->start_time = 0; + SendFilterMessage(iface, SendRun); This->state = State_Running; LeaveCriticalSection(&This->cs); @@ -1580,6 +1589,13 @@ static HRESULT WINAPI MediaControl_Pause(IMediaControl *iface) { if (This->state == State_Paused) return S_OK; EnterCriticalSection(&This->cs); + if (This->state == State_Running && This->refClock) + { + LONGLONG time = This->start_time; + IReferenceClock_GetTime(This->refClock, &time); + This->position += time - This->start_time; + } + SendFilterMessage(iface, SendPause); This->state = State_Paused; LeaveCriticalSection(&This->cs); @@ -1593,6 +1609,13 @@ static HRESULT WINAPI MediaControl_Stop(IMediaControl *iface) { if (This->state == State_Stopped) return S_OK; EnterCriticalSection(&This->cs); + if (This->state == State_Running && This->refClock) + { + LONGLONG time = This->start_time; + IReferenceClock_GetTime(This->refClock, &time); + This->position += time - This->start_time; + } + if (This->state == State_Running) SendFilterMessage(iface, SendPause); SendFilterMessage(iface, SendStop); This->state = State_Stopped; @@ -1952,8 +1975,23 @@ static HRESULT WINAPI MediaSeeking_GetStopPosition(IMediaSeeking *iface, static HRESULT WINAPI MediaSeeking_GetCurrentPosition(IMediaSeeking *iface, LONGLONG *pCurrent) { ICOM_THIS_MULTI(IFilterGraphImpl, IMediaSeeking_vtbl, iface); + LONGLONG time = 0; + + if (!pCurrent) + return E_POINTER; - FIXME("(%p/%p)->(%p): stub !!!\n", This, iface, pCurrent); + if (This->state == State_Running && This->refClock) + { + IReferenceClock_GetTime(This->refClock, &time); + if (time) + time += This->position - This->start_time; + if (time < This->position) + time = This->position; + *pCurrent = time; + } + else + *pCurrent = This->position; + TRACE("Time: %lld.%03lld\n", *pCurrent / 10000000, (*pCurrent / 10000)%1000); return S_OK; } @@ -4933,6 +4971,7 @@ HRESULT FilterGraph_create(IUnknown *pUnkOuter, LPVOID *ppObj) fimpl->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": IFilterGraphImpl.cs"); fimpl->nItfCacheEntries = 0; memcpy(&fimpl->timeformatseek, &TIME_FORMAT_MEDIA_TIME, sizeof(GUID)); + fimpl->start_time = fimpl->position = 0; hr = CoCreateInstance(&CLSID_FilterMapper2, NULL, CLSCTX_INPROC_SERVER, &IID_IFilterMapper2, (LPVOID*)&fimpl->pFilterMapper2); if (FAILED(hr)) { diff --git a/dlls/quartz/tests/filtergraph.c b/dlls/quartz/tests/filtergraph.c index 2a2a806..efe12fc 100644 --- a/dlls/quartz/tests/filtergraph.c +++ b/dlls/quartz/tests/filtergraph.c @@ -172,6 +172,42 @@ static void test_graph_builder_addfilter(void) hr = IGraphBuilder_AddFilter(pgraph, pF, NULL); ok(hr == S_OK, "IGraphBuilder_AddFilter returned: %x\n", hr); + IMediaFilter_Release(pF); +} + +static void test_mediacontrol(void) +{ + HRESULT hr; + LONGLONG pos = 0xdeadbeef; + IMediaSeeking *seeking = NULL; + IMediaFilter *filter = NULL; + + IFilterGraph2_SetDefaultSyncSource(pgraph); + hr = IFilterGraph2_QueryInterface(pgraph, &IID_IMediaSeeking, (void**) &seeking); + ok(hr == S_OK, "QueryInterface IMediaControl failed: %08x\n", hr); + if (FAILED(hr)) + return; + + hr = IFilterGraph2_QueryInterface(pgraph, &IID_IMediaFilter, (void**) &filter); + ok(hr == S_OK, "QueryInterface IMediaFilter failed: %08x\n", hr); + if (FAILED(hr)) + { + IUnknown_Release(seeking); + return; + } + + hr = IMediaSeeking_GetCurrentPosition(seeking, &pos); + ok(hr == S_OK, "GetCurrentPosition failed: %08x\n", hr); + ok(pos == 0, "Position != 0 (%x%08x)\n", (DWORD)(pos >> 32), (DWORD)pos); + + IMediaFilter_SetSyncSource(filter, NULL); + pos = 0xdeadbeef; + hr = IMediaSeeking_GetCurrentPosition(seeking, &pos); + ok(hr == S_OK, "GetCurrentPosition failed: %08x\n", hr); + ok(pos == 0, "Position != 0 (%x%08x)\n", (DWORD)(pos >> 32), (DWORD)pos); + + IUnknown_Release(seeking); + IUnknown_Release(filter); releasefiltergraph(); } @@ -195,5 +231,6 @@ START_TEST(filtergraph) test_render_run(); test_graph_builder(); test_graph_builder_addfilter(); + test_mediacontrol(); test_filter_graph2(); }
1
0
0
0
Maarten Lankhorst : quartz: Change name from Start position to Current position in MediaSeeking.
by Alexandre Julliard
28 Mar '08
28 Mar '08
Module: wine Branch: master Commit: cc3ef90db000235f8de7a6692e9db79eda9680f3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cc3ef90db000235f8de7a6692…
Author: Maarten Lankhorst <m.b.lankhorst(a)gmail.com> Date: Thu Mar 27 16:27:53 2008 -0700 quartz: Change name from Start position to Current position in MediaSeeking. --- dlls/quartz/control.c | 32 ++++++++++++++++---------------- dlls/quartz/control_private.h | 8 +++----- 2 files changed, 19 insertions(+), 21 deletions(-) diff --git a/dlls/quartz/control.c b/dlls/quartz/control.c index d32d054..6e5cb0d 100644 --- a/dlls/quartz/control.c +++ b/dlls/quartz/control.c @@ -95,23 +95,23 @@ out: } -HRESULT MediaSeekingImpl_Init(IBaseFilter *pUserData, CHANGEPROC fnChangeStop, CHANGEPROC fnChangeStart, CHANGEPROC fnChangeRate, MediaSeekingImpl * pSeeking, PCRITICAL_SECTION crit_sect) +HRESULT MediaSeekingImpl_Init(IBaseFilter *pUserData, CHANGEPROC fnChangeStop, CHANGEPROC fnChangeCurrent, CHANGEPROC fnChangeRate, MediaSeekingImpl * pSeeking, PCRITICAL_SECTION crit_sect) { - assert(fnChangeStop && fnChangeStart && fnChangeRate); + assert(fnChangeStop && fnChangeCurrent && fnChangeRate); pSeeking->refCount = 1; pSeeking->pUserData = pUserData; pSeeking->fnChangeRate = fnChangeRate; pSeeking->fnChangeStop = fnChangeStop; - pSeeking->fnChangeStart = fnChangeStart; + pSeeking->fnChangeCurrent = fnChangeCurrent; pSeeking->dwCapabilities = AM_SEEKING_CanSeekForwards | AM_SEEKING_CanSeekBackwards | AM_SEEKING_CanSeekAbsolute | AM_SEEKING_CanGetStopPos | AM_SEEKING_CanGetDuration; - pSeeking->llStart = 0; + pSeeking->llCurrent = 0; pSeeking->llStop = ((ULONGLONG)0x80000000) << 32; - pSeeking->llDuration = pSeeking->llStop - pSeeking->llStart; + pSeeking->llDuration = pSeeking->llStop; pSeeking->dRate = 1.0; pSeeking->timeformat = TIME_FORMAT_MEDIA_TIME; pSeeking->crst = crit_sect; @@ -306,7 +306,7 @@ HRESULT WINAPI MediaSeekingImpl_GetCurrentPosition(IMediaSeeking * iface, LONGLO TRACE("(%p)\n", pCurrent); EnterCriticalSection(This->crst); - *pCurrent = This->llStart; + *pCurrent = This->llCurrent; ForwardCmdSeek(This->pUserData, fwd_getcurposition, pCurrent); LeaveCriticalSection(This->crst); @@ -344,31 +344,31 @@ static inline LONGLONG Adjust(LONGLONG value, const LONGLONG * pModifier, DWORD HRESULT WINAPI MediaSeekingImpl_SetPositions(IMediaSeeking * iface, LONGLONG * pCurrent, DWORD dwCurrentFlags, LONGLONG * pStop, DWORD dwStopFlags) { MediaSeekingImpl *This = (MediaSeekingImpl *)iface; - BOOL bChangeStart = FALSE, bChangeStop = FALSE; - LONGLONG llNewStart, llNewStop; + BOOL bChangeCurrent = FALSE, bChangeStop = FALSE; + LONGLONG llNewCurrent, llNewStop; TRACE("(%p, %x, %p, %x)\n", pCurrent, dwCurrentFlags, pStop, dwStopFlags); EnterCriticalSection(This->crst); - llNewStart = Adjust(This->llStart, pCurrent, dwCurrentFlags); + llNewCurrent = Adjust(This->llCurrent, pCurrent, dwCurrentFlags); llNewStop = Adjust(This->llStop, pStop, dwStopFlags); - if (llNewStart != This->llStart) - bChangeStart = TRUE; + if (llNewCurrent != This->llCurrent) + bChangeCurrent = TRUE; if (llNewStop != This->llStop) bChangeStop = TRUE; - This->llStart = llNewStart; + This->llCurrent = llNewCurrent; This->llStop = llNewStop; if (dwCurrentFlags & AM_SEEKING_ReturnTime) - *pCurrent = llNewStart; + *pCurrent = llNewCurrent; if (dwStopFlags & AM_SEEKING_ReturnTime) *pStop = llNewStop; - if (bChangeStart) - This->fnChangeStart(This->pUserData); + if (bChangeCurrent) + This->fnChangeCurrent(This->pUserData); if (bChangeStop) This->fnChangeStop(This->pUserData); @@ -384,7 +384,7 @@ HRESULT WINAPI MediaSeekingImpl_GetPositions(IMediaSeeking * iface, LONGLONG * p TRACE("(%p, %p)\n", pCurrent, pStop); EnterCriticalSection(This->crst); - *pCurrent = This->llStart; + *pCurrent = This->llCurrent; *pStop = This->llStop; LeaveCriticalSection(This->crst); diff --git a/dlls/quartz/control_private.h b/dlls/quartz/control_private.h index 80e550d..15855d6 100644 --- a/dlls/quartz/control_private.h +++ b/dlls/quartz/control_private.h @@ -27,18 +27,16 @@ typedef struct MediaSeekingImpl ULONG refCount; IBaseFilter *pUserData; CHANGEPROC fnChangeStop; - CHANGEPROC fnChangeStart; + CHANGEPROC fnChangeCurrent; CHANGEPROC fnChangeRate; DWORD dwCapabilities; double dRate; - LONGLONG llStart; - LONGLONG llStop; - LONGLONG llDuration; /* FIXME: needed? */ + LONGLONG llCurrent, llStop, llDuration; GUID timeformat; PCRITICAL_SECTION crst; } MediaSeekingImpl; -HRESULT MediaSeekingImpl_Init(IBaseFilter *pUserData, CHANGEPROC fnChangeStop, CHANGEPROC fnChangeStart, CHANGEPROC fnChangeRate, MediaSeekingImpl * pSeeking, PCRITICAL_SECTION crit_sect); +HRESULT MediaSeekingImpl_Init(IBaseFilter *pUserData, CHANGEPROC fnChangeStop, CHANGEPROC fnChangeCurrent, CHANGEPROC fnChangeRate, MediaSeekingImpl * pSeeking, PCRITICAL_SECTION crit_sect); HRESULT WINAPI MediaSeekingImpl_GetCapabilities(IMediaSeeking * iface, DWORD * pCapabilities); HRESULT WINAPI MediaSeekingImpl_CheckCapabilities(IMediaSeeking * iface, DWORD * pCapabilities);
1
0
0
0
Dan Hipschman : wininet: InternetReadFileExA should check INTERNET_FLAG_ASYNC.
by Alexandre Julliard
28 Mar '08
28 Mar '08
Module: wine Branch: master Commit: 0929593b6c96a9dd482919b56f0a39d3ed015cb0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0929593b6c96a9dd482919b56…
Author: Dan Hipschman <dsh(a)linux.ucla.edu> Date: Thu Mar 27 13:52:24 2008 -0700 wininet: InternetReadFileExA should check INTERNET_FLAG_ASYNC. --- dlls/wininet/http.c | 4 +--- dlls/wininet/tests/http.c | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index fc458d4..3980e9a 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -1733,9 +1733,7 @@ static DWORD HTTPREQ_ReadFileExA(WININETHANDLEHEADER *hdr, INTERNET_BUFFERSA *bu INTERNET_SendCallback(&req->hdr, req->hdr.dwContext, INTERNET_STATUS_RECEIVING_RESPONSE, NULL, 0); - /* FIXME: IRF_ASYNC may not be the right thing to test here; - * hIC->hdr.dwFlags & INTERNET_FLAG_ASYNC is probably better */ - if (flags & IRF_ASYNC) { + if (hdr->dwFlags & INTERNET_FLAG_ASYNC) { DWORD available = 0; NETCON_query_data_available(&req->netConnection, &available); diff --git a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c index fb561c4..5d42077 100644 --- a/dlls/wininet/tests/http.c +++ b/dlls/wininet/tests/http.c @@ -659,6 +659,8 @@ static void InternetReadFileExA_test(int flags) if (GetLastError() == ERROR_IO_PENDING) { trace("InternetReadFileEx -> PENDING\n"); + ok(flags & INTERNET_FLAG_ASYNC, + "Should not get ERROR_IO_PENDING without INTERNET_FLAG_ASYNC\n"); CHECK_NOTIFIED(INTERNET_STATUS_RECEIVING_RESPONSE); WaitForSingleObject(hCompleteEvent, INFINITE); CHECK_NOTIFIED(INTERNET_STATUS_REQUEST_COMPLETE);
1
0
0
0
Dan Hipschman : wininet: HttpSendRequestExA is not a stub.
by Alexandre Julliard
28 Mar '08
28 Mar '08
Module: wine Branch: master Commit: aaecdf79bdb0fef0c04901dc03f4540ad62f3f11 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=aaecdf79bdb0fef0c04901dc0…
Author: Dan Hipschman <dsh(a)linux.ucla.edu> Date: Thu Mar 27 13:51:13 2008 -0700 wininet: HttpSendRequestExA is not a stub. --- dlls/wininet/http.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 016a8f0..fc458d4 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -2588,7 +2588,7 @@ BOOL WINAPI HttpSendRequestExA(HINTERNET hRequest, DWORD headerlen; LPWSTR header = NULL; - TRACE("(%p, %p, %p, %08x, %08lx): stub\n", hRequest, lpBuffersIn, + TRACE("(%p, %p, %p, %08x, %08lx)\n", hRequest, lpBuffersIn, lpBuffersOut, dwFlags, dwContext); if (lpBuffersIn)
1
0
0
0
Lei Zhang : user32: Add more DrawText tests.
by Alexandre Julliard
28 Mar '08
28 Mar '08
Module: wine Branch: master Commit: bab3d82bcf0df511d07d29b525b2614465d94f3b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=bab3d82bcf0df511d07d29b52…
Author: Lei Zhang <thestig(a)google.com> Date: Thu Mar 27 10:58:08 2008 -0700 user32: Add more DrawText tests. --- dlls/user32/tests/text.c | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/dlls/user32/tests/text.c b/dlls/user32/tests/text.c index 01bd306..1e09650 100644 --- a/dlls/user32/tests/text.c +++ b/dlls/user32/tests/text.c @@ -147,6 +147,23 @@ static void test_DrawTextCalcRect(void) "rectangle should NOT be empty.\n"); } + /* More test cases from bug 12226 */ + SetRect(&rect, 0, 0, 0, 0); + textheight = DrawTextA(hdc, emptystring, -1, &rect, DT_CALCRECT | DT_LEFT | DT_SINGLELINE); + todo_wine ok(textheight, "DrawTextA error %u\n", GetLastError()); + ok(0 == rect.left, "expected 0, got %d\n", rect.left); + ok(0 == rect.right, "expected 0, got %d\n", rect.right); + ok(0 == rect.top, "expected 0, got %d\n", rect.top); + todo_wine ok(rect.bottom, "rect.bottom should not be 0\n"); + + SetRect(&rect, 0, 0, 0, 0); + textheight = DrawTextW(hdc, emptystringW, -1, &rect, DT_CALCRECT | DT_LEFT | DT_SINGLELINE); + todo_wine ok(textheight, "DrawTextW error %u\n", GetLastError()); + ok(0 == rect.left, "expected 0, got %d\n", rect.left); + ok(0 == rect.right, "expected 0, got %d\n", rect.right); + ok(0 == rect.top, "expected 0, got %d\n", rect.top); + todo_wine ok(rect.bottom, "rect.bottom should not be 0\n"); + SelectObject(hdc, hOldFont); ret = DeleteObject(hFont); ok( ret, "DeleteObject error %u\n", GetLastError());
1
0
0
0
Lei Zhang : user32: Handle WM_CHAR messages better in edit controls.
by Alexandre Julliard
28 Mar '08
28 Mar '08
Module: wine Branch: master Commit: 0fac05b97791145cc624034733ab474169640156 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0fac05b97791145cc62403473…
Author: Lei Zhang <thestig(a)google.com> Date: Thu Mar 27 12:22:04 2008 -0700 user32: Handle WM_CHAR messages better in edit controls. --- dlls/user32/edit.c | 22 ++++++++++++++++------ dlls/user32/tests/edit.c | 6 +++--- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c index 0ff4e7c..dd5ba0a 100644 --- a/dlls/user32/edit.c +++ b/dlls/user32/edit.c @@ -853,12 +853,22 @@ static LRESULT WINAPI EditWndProc_common( HWND hwnd, UINT msg, MultiByteToWideChar(CP_ACP, 0, &charA, 1, &charW, 1); } - if ((charW == VK_RETURN || charW == VK_ESCAPE) && es->hwndListBox) - { - if (SendMessageW(GetParent(hwnd), CB_GETDROPPEDSTATE, 0, 0)) - SendMessageW(GetParent(hwnd), WM_KEYDOWN, charW, 0); - break; - } + if (es->hwndListBox) + { + if (charW == VK_RETURN || charW == VK_ESCAPE) + { + if (SendMessageW(GetParent(hwnd), CB_GETDROPPEDSTATE, 0, 0)) + { + SendMessageW(GetParent(hwnd), WM_KEYDOWN, charW, 0); + break; + } + } + } + else + { + if (charW == VK_TAB || charW == VK_RETURN) + break; + } EDIT_WM_Char(es, charW); break; } diff --git a/dlls/user32/tests/edit.c b/dlls/user32/tests/edit.c index 0d15641..74092be 100644 --- a/dlls/user32/tests/edit.c +++ b/dlls/user32/tests/edit.c @@ -1296,9 +1296,9 @@ static void test_edit_dialog(void) r = DialogBoxParam(hinst, "EDIT_DIALOG", NULL, (DLGPROC)edit_dialog_proc, 3); ok(444 == r, "Expected %d, got %d\n", 444, r); r = DialogBoxParam(hinst, "EDIT_DIALOG", NULL, (DLGPROC)edit_dialog_proc, 4); - todo_wine ok(444 == r, "Expected %d, got %d\n", 444, r); + ok(444 == r, "Expected %d, got %d\n", 444, r); r = DialogBoxParam(hinst, "EDIT_DIALOG", NULL, (DLGPROC)edit_dialog_proc, 5); - todo_wine ok(444 == r, "Expected %d, got %d\n", 444, r); + ok(444 == r, "Expected %d, got %d\n", 444, r); /* tests for WM_KEYDOWN + WM_CHAR */ r = DialogBoxParam(hinst, "EDIT_DIALOG", NULL, (DLGPROC)edit_dialog_proc, 6); @@ -1306,7 +1306,7 @@ static void test_edit_dialog(void) r = DialogBoxParam(hinst, "EDIT_DIALOG", NULL, (DLGPROC)edit_dialog_proc, 7); todo_wine ok(444 == r, "Expected %d, got %d\n", 444, r); r = DialogBoxParam(hinst, "EDIT_DIALOG", NULL, (DLGPROC)edit_dialog_proc, 8); - todo_wine ok(444 == r, "Expected %d, got %d\n", 444, r); + ok(444 == r, "Expected %d, got %d\n", 444, r); } static BOOL RegisterWindowClasses (void)
1
0
0
0
← Newer
1
...
9
10
11
12
13
14
15
...
101
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
Results per page:
10
25
50
100
200