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
December 2011
----- 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
2 participants
810 discussions
Start a n
N
ew thread
Aric Stewart : usp10: Add Yi script.
by Alexandre Julliard
13 Dec '11
13 Dec '11
Module: wine Branch: master Commit: 4d34ea52adfaea2d0ae101ed494c3f0011467bea URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4d34ea52adfaea2d0ae101ed4…
Author: Aric Stewart <aric(a)codeweavers.com> Date: Mon Dec 12 14:50:40 2011 -0600 usp10: Add Yi script. --- dlls/usp10/shape.c | 1 + dlls/usp10/tests/usp10.c | 10 ++++++++++ dlls/usp10/usp10.c | 8 +++++++- dlls/usp10/usp10_internal.h | 1 + 4 files changed, 19 insertions(+), 1 deletions(-) diff --git a/dlls/usp10/shape.c b/dlls/usp10/shape.c index bc53bba..4b399d7 100644 --- a/dlls/usp10/shape.c +++ b/dlls/usp10/shape.c @@ -644,6 +644,7 @@ static const ScriptShapeData ShapingData[] = {{ no_features, 0}, NULL, "bopo", "", NULL, NULL}, {{ no_features, 0}, NULL, "kana", "", NULL, NULL}, {{ no_features, 0}, NULL, "hang", "", NULL, NULL}, + {{ no_features, 0}, NULL, "yi ", "", NULL, NULL}, }; static INT GSUB_is_glyph_covered(LPCVOID table , UINT glyph) diff --git a/dlls/usp10/tests/usp10.c b/dlls/usp10/tests/usp10.c index 83ea749..b2538f8 100644 --- a/dlls/usp10/tests/usp10.c +++ b/dlls/usp10/tests/usp10.c @@ -157,6 +157,7 @@ static inline void _test_items_ok(LPCWSTR string, DWORD cchString, #define bopo_tag MS_MAKE_TAG('b','o','p','o') #define kana_tag MS_MAKE_TAG('k','a','n','a') #define hang_tag MS_MAKE_TAG('h','a','n','g') +#define yi_tag MS_MAKE_TAG('y','i',' ',' ') static void test_ScriptItemize( void ) { @@ -351,6 +352,11 @@ static void test_ScriptItemize( void ) static const itemTest t321[2] = {{{0,0,0,0,0},0,0,0,0,hang_tag,FALSE},{{0,0,0,0,0},3,0,0,0,-1,FALSE}}; static const itemTest t322[2] = {{{0,0,0,0,0},0,0,0,2,hang_tag,FALSE},{{0,0,0,0,0},3,0,0,0,-1,FALSE}}; + /* Yi */ + static const WCHAR test33[] = {0xa188,0xa320,0xa071,0xa0b7}; + static const itemTest t331[2] = {{{0,0,0,0,0},0,0,0,0,yi_tag,FALSE},{{0,0,0,0,0},4,0,0,0,-1,FALSE}}; + static const itemTest t332[2] = {{{0,0,0,0,0},0,0,0,2,yi_tag,FALSE},{{0,0,0,0,0},4,0,0,0,-1,FALSE}}; + SCRIPT_ITEM items[15]; SCRIPT_CONTROL Control; SCRIPT_STATE State; @@ -416,6 +422,7 @@ static void test_ScriptItemize( void ) test_items_ok(test30,8,NULL,NULL,1,t301,FALSE,0); test_items_ok(test31,8,NULL,NULL,1,t311,FALSE,2); test_items_ok(test32,3,NULL,NULL,1,t321,FALSE,0); + test_items_ok(test33,4,NULL,NULL,1,t331,FALSE,0); State.uBidiLevel = 0; test_items_ok(test1,4,&Control,&State,1,t11,FALSE,0); @@ -455,6 +462,7 @@ static void test_ScriptItemize( void ) test_items_ok(test30,8,&Control,&State,1,t301,FALSE,0); test_items_ok(test31,8,&Control,&State,1,t311,FALSE,2); test_items_ok(test32,3,&Control,&State,1,t321,FALSE,0); + test_items_ok(test33,4,&Control,&State,1,t331,FALSE,0); State.uBidiLevel = 1; test_items_ok(test1,4,&Control,&State,1,t12,FALSE,0); @@ -494,6 +502,7 @@ static void test_ScriptItemize( void ) test_items_ok(test30,8,&Control,&State,1,t302,FALSE,0); test_items_ok(test31,8,&Control,&State,1,t312,FALSE,2); test_items_ok(test32,3,&Control,&State,1,t322,FALSE,0); + test_items_ok(test33,4,&Control,&State,1,t332,FALSE,0); State.uBidiLevel = 1; Control.fMergeNeutralItems = TRUE; @@ -534,6 +543,7 @@ static void test_ScriptItemize( void ) test_items_ok(test30,8,&Control,&State,1,t302,FALSE,0); test_items_ok(test31,8,&Control,&State,1,t312,FALSE,2); test_items_ok(test32,3,&Control,&State,1,t322,FALSE,0); + test_items_ok(test33,4,&Control,&State,1,t332,FALSE,0); } static inline void _test_shape_ok(int valid, HDC hdc, LPCWSTR string, diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c index dcd4477..71888db 100644 --- a/dlls/usp10/usp10.c +++ b/dlls/usp10/usp10.c @@ -214,6 +214,8 @@ static const scriptRange scriptRanges[] = { { Script_CJK_Han ,0x3400, 0x4dbf, 0, 0}, /* CJK Unified Ideographs: U+4E00–U+9FFF */ { Script_CJK_Han ,0x4e00, 0x9fff, 0, 0}, + /* Yi: U+A000–U+A4CF */ + { Script_Yi ,0xa000, 0xa4cf, 0, 0}, /* Cyrillic Extended-B: U+A640–U+A69F */ { Script_Cyrillic, 0xa640, 0xa69f, 0, 0}, /* Modifier Tone Letters: U+A700–U+A71F */ @@ -503,6 +505,10 @@ static const scriptData scriptInformation[] = { {LANG_KOREAN, 0, 1, 0, 1, DEFAULT_CHARSET, 0, 0, 0, 0, 0, 0, 1, 0, 0}, MS_MAKE_TAG('h','a','n','g'), {0}}, + {{Script_Yi, 0, 0, 0, 0, 0, 0, { 0,0,0,0,0,0,0,0,0,0,0}}, + {LANG_ENGLISH, 0, 0, 0, 0, DEFAULT_CHARSET, 0, 0, 0, 0, 0, 0, 1, 0, 0}, + MS_MAKE_TAG('y','i',' ',' '), + {'M','i','c','r','o','s','o','f','t',' ','Y','i',' ','B','a','i','t','i'}}, }; static const SCRIPT_PROPERTIES *script_props[] = @@ -536,7 +542,7 @@ static const SCRIPT_PROPERTIES *script_props[] = &scriptInformation[52].props, &scriptInformation[53].props, &scriptInformation[54].props, &scriptInformation[55].props, &scriptInformation[56].props, &scriptInformation[57].props, - &scriptInformation[58].props + &scriptInformation[58].props, &scriptInformation[59].props }; typedef struct { diff --git a/dlls/usp10/usp10_internal.h b/dlls/usp10/usp10_internal.h index 3ee06cb..563323e 100644 --- a/dlls/usp10/usp10_internal.h +++ b/dlls/usp10/usp10_internal.h @@ -89,6 +89,7 @@ #define Script_Bopomofo 56 #define Script_Kana 57 #define Script_Hangul 58 +#define Script_Yi 59 #define GLYPH_BLOCK_SHIFT 8 #define GLYPH_BLOCK_SIZE (1UL << GLYPH_BLOCK_SHIFT)
1
0
0
0
Aric Stewart : usp10: Add Hangul script.
by Alexandre Julliard
13 Dec '11
13 Dec '11
Module: wine Branch: master Commit: 345102ed135ffe9010876116be92942f376902e2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=345102ed135ffe9010876116b…
Author: Aric Stewart <aric(a)codeweavers.com> Date: Mon Dec 12 14:50:34 2011 -0600 usp10: Add Hangul script. --- dlls/usp10/shape.c | 1 + dlls/usp10/tests/usp10.c | 10 ++++++++++ dlls/usp10/usp10.c | 23 +++++++++++++++++++++-- dlls/usp10/usp10_internal.h | 1 + 4 files changed, 33 insertions(+), 2 deletions(-) diff --git a/dlls/usp10/shape.c b/dlls/usp10/shape.c index 7ff8070..bc53bba 100644 --- a/dlls/usp10/shape.c +++ b/dlls/usp10/shape.c @@ -643,6 +643,7 @@ static const ScriptShapeData ShapingData[] = {{ no_features, 0}, NULL, "hani", "", NULL, NULL}, {{ no_features, 0}, NULL, "bopo", "", NULL, NULL}, {{ no_features, 0}, NULL, "kana", "", NULL, NULL}, + {{ no_features, 0}, NULL, "hang", "", NULL, NULL}, }; static INT GSUB_is_glyph_covered(LPCVOID table , UINT glyph) diff --git a/dlls/usp10/tests/usp10.c b/dlls/usp10/tests/usp10.c index a726b68..83ea749 100644 --- a/dlls/usp10/tests/usp10.c +++ b/dlls/usp10/tests/usp10.c @@ -156,6 +156,7 @@ static inline void _test_items_ok(LPCWSTR string, DWORD cchString, #define hani_tag MS_MAKE_TAG('h','a','n','i') #define bopo_tag MS_MAKE_TAG('b','o','p','o') #define kana_tag MS_MAKE_TAG('k','a','n','a') +#define hang_tag MS_MAKE_TAG('h','a','n','g') static void test_ScriptItemize( void ) { @@ -345,6 +346,11 @@ static void test_ScriptItemize( void ) static const itemTest t311[2] = {{{0,0,0,0,0},0,0,0,0,kana_tag,FALSE},{{0,0,0,0,0},8,0,0,0,-1,FALSE}}; static const itemTest t312[2] = {{{0,0,0,0,0},0,0,0,2,kana_tag,FALSE},{{0,0,0,0,0},8,0,0,0,-1,FALSE}}; + /* Hangul */ + static const WCHAR test32[] = {0xd55c,0xad6d,0xc5b4}; + static const itemTest t321[2] = {{{0,0,0,0,0},0,0,0,0,hang_tag,FALSE},{{0,0,0,0,0},3,0,0,0,-1,FALSE}}; + static const itemTest t322[2] = {{{0,0,0,0,0},0,0,0,2,hang_tag,FALSE},{{0,0,0,0,0},3,0,0,0,-1,FALSE}}; + SCRIPT_ITEM items[15]; SCRIPT_CONTROL Control; SCRIPT_STATE State; @@ -409,6 +415,7 @@ static void test_ScriptItemize( void ) test_items_ok(test29,10,NULL,NULL,2,t291,FALSE,0); test_items_ok(test30,8,NULL,NULL,1,t301,FALSE,0); test_items_ok(test31,8,NULL,NULL,1,t311,FALSE,2); + test_items_ok(test32,3,NULL,NULL,1,t321,FALSE,0); State.uBidiLevel = 0; test_items_ok(test1,4,&Control,&State,1,t11,FALSE,0); @@ -447,6 +454,7 @@ static void test_ScriptItemize( void ) test_items_ok(test29,10,&Control,&State,2,t291,FALSE,0); test_items_ok(test30,8,&Control,&State,1,t301,FALSE,0); test_items_ok(test31,8,&Control,&State,1,t311,FALSE,2); + test_items_ok(test32,3,&Control,&State,1,t321,FALSE,0); State.uBidiLevel = 1; test_items_ok(test1,4,&Control,&State,1,t12,FALSE,0); @@ -485,6 +493,7 @@ static void test_ScriptItemize( void ) test_items_ok(test29,10,&Control,&State,2,t292,FALSE,0); test_items_ok(test30,8,&Control,&State,1,t302,FALSE,0); test_items_ok(test31,8,&Control,&State,1,t312,FALSE,2); + test_items_ok(test32,3,&Control,&State,1,t322,FALSE,0); State.uBidiLevel = 1; Control.fMergeNeutralItems = TRUE; @@ -524,6 +533,7 @@ static void test_ScriptItemize( void ) test_items_ok(test29,10,&Control,&State,2,t292,FALSE,0); test_items_ok(test30,8,&Control,&State,1,t302,FALSE,0); test_items_ok(test31,8,&Control,&State,1,t312,FALSE,2); + test_items_ok(test32,3,&Control,&State,1,t322,FALSE,0); } static inline void _test_shape_ok(int valid, HDC hdc, LPCWSTR string, diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c index 4ebbd93..dcd4477 100644 --- a/dlls/usp10/usp10.c +++ b/dlls/usp10/usp10.c @@ -111,6 +111,8 @@ static const scriptRange scriptRanges[] = { { Script_Myanmar, 0x1000, 0x109f, Script_Myanmar_Numeric, 0}, /* Georgian: U+10A0–U+10FF */ { Script_Georgian, 0x10a0, 0x10ff, 0, 0}, + /* Hangul Jamo: U+1100–U+11FF */ + { Script_Hangul, 0x1100, 0x11ff, 0, 0}, /* Khmer: U+1780–U+17FF */ { Script_Khmer, 0x1780, 0x17ff, Script_Khmer_Numeric, 0}, /* Tai Le: U+1950–U+197F */ @@ -189,6 +191,8 @@ static const scriptRange scriptRanges[] = { { Script_Kana ,0x3040, 0x30ff, 0, 0}, /* Bopomofo: U+3100–U+312F */ { Script_Bopomofo ,0x3100, 0x312f, 0, 0}, + /* Hangul Compatibility Jamo: U+3130–U+318F */ + { Script_Hangul ,0x3130, 0x318f, 0, 0}, /* Kanbun: U+3190–U+319F */ { Script_Ideograph ,0x3190, 0x319f, 0, 0}, /* Bopomofo Extended: U+31A0–U+31BF */ @@ -198,7 +202,10 @@ static const scriptRange scriptRanges[] = { /* Katakana Phonetic Extensions: U+31F0–U+31FF */ { Script_Kana ,0x31f0, 0x31ff, 0, 0}, /* Enclosed CJK Letters and Months: U+3200–U+32FF */ - { Script_Ideograph ,0x3220, 0x32ef, 0, 0}, + { Script_Hangul ,0x3200, 0x321f, 0, 0}, + { Script_Ideograph ,0x3220, 0x325f, 0, 0}, + { Script_Hangul ,0x3260, 0x327f, 0, 0}, + { Script_Ideograph ,0x3280, 0x32ef, 0, 0}, { Script_Kana ,0x32d0, 0x31ff, 0, 0}, /* CJK Compatibility: U+3300–U+33FF*/ { Script_Kana ,0x3300, 0x3357, 0, 0}, @@ -218,6 +225,12 @@ static const scriptRange scriptRanges[] = { { Script_Devanagari, 0xa8e0, 0xa8ff, Script_Devanagari_Numeric, 0}, /* Myanmar Extended-A: U+AA60–U+AA7F */ { Script_Myanmar, 0xaa60, 0xaa7f, Script_Myanmar_Numeric, 0}, + /* Hangul Jamo Extended-A: U+A960–U+A97F */ + { Script_Hangul, 0xa960, 0xa97f, 0, 0}, + /* Hangul Syllables: U+AC00–U+D7A3 */ + { Script_Hangul, 0xac00, 0xd7a3, 0, 0}, + /* Hangul Jamo Extended-B: U+D7B0–U+D7FF */ + { Script_Hangul, 0xd7b0, 0xd7ff, 0, 0}, /* CJK Compatibility Ideographs: U+F900–U+FAFF */ { Script_CJK_Han ,0xf900, 0xfaff, 0, 0}, /* Latin Ligatures: U+FB00–U+FB06 */ @@ -238,6 +251,7 @@ static const scriptRange scriptRanges[] = { /* Halfwidth and Fullwidth Forms: U+FF00–FFEF */ { Script_Ideograph ,0xff00, 0xff64, Script_Numeric2, 0}, { Script_Kana ,0xff65, 0xff9f, 0, 0}, + { Script_Hangul ,0xffa0, 0xffdf, 0, 0}, { Script_Ideograph ,0xffe0, 0xffef, 0, 0}, /* END */ { SCRIPT_UNDEFINED, 0, 0, 0} @@ -485,6 +499,10 @@ static const scriptData scriptInformation[] = { {LANG_ENGLISH, 0, 0, 0, 0, ANSI_CHARSET, 0, 0, 0, 0, 0, 0, 1, 0, 0}, MS_MAKE_TAG('k','a','n','a'), {0}}, + {{Script_Hangul, 0, 0, 0, 0, 0, 0, { 0,0,0,0,0,0,0,0,0,0,0}}, + {LANG_KOREAN, 0, 1, 0, 1, DEFAULT_CHARSET, 0, 0, 0, 0, 0, 0, 1, 0, 0}, + MS_MAKE_TAG('h','a','n','g'), + {0}}, }; static const SCRIPT_PROPERTIES *script_props[] = @@ -517,7 +535,8 @@ static const SCRIPT_PROPERTIES *script_props[] = &scriptInformation[50].props, &scriptInformation[51].props, &scriptInformation[52].props, &scriptInformation[53].props, &scriptInformation[54].props, &scriptInformation[55].props, - &scriptInformation[56].props, &scriptInformation[57].props + &scriptInformation[56].props, &scriptInformation[57].props, + &scriptInformation[58].props }; typedef struct { diff --git a/dlls/usp10/usp10_internal.h b/dlls/usp10/usp10_internal.h index b287ed5..3ee06cb 100644 --- a/dlls/usp10/usp10_internal.h +++ b/dlls/usp10/usp10_internal.h @@ -88,6 +88,7 @@ #define Script_Ideograph 55 #define Script_Bopomofo 56 #define Script_Kana 57 +#define Script_Hangul 58 #define GLYPH_BLOCK_SHIFT 8 #define GLYPH_BLOCK_SIZE (1UL << GLYPH_BLOCK_SHIFT)
1
0
0
0
Aric Stewart : usp10: Add Kana script.
by Alexandre Julliard
13 Dec '11
13 Dec '11
Module: wine Branch: master Commit: 30dc47557a5f864e31b9bb5886dfbcc8c3eebc78 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=30dc47557a5f864e31b9bb588…
Author: Aric Stewart <aric(a)codeweavers.com> Date: Mon Dec 12 14:50:29 2011 -0600 usp10: Add Kana script. --- dlls/usp10/shape.c | 1 + dlls/usp10/tests/usp10.c | 10 ++++++++++ dlls/usp10/usp10.c | 20 +++++++++++++++++--- dlls/usp10/usp10_internal.h | 1 + 4 files changed, 29 insertions(+), 3 deletions(-) diff --git a/dlls/usp10/shape.c b/dlls/usp10/shape.c index e225041..7ff8070 100644 --- a/dlls/usp10/shape.c +++ b/dlls/usp10/shape.c @@ -642,6 +642,7 @@ static const ScriptShapeData ShapingData[] = {{ no_features, 0}, NULL, "hani", "", NULL, NULL}, {{ no_features, 0}, NULL, "hani", "", NULL, NULL}, {{ no_features, 0}, NULL, "bopo", "", NULL, NULL}, + {{ no_features, 0}, NULL, "kana", "", NULL, NULL}, }; static INT GSUB_is_glyph_covered(LPCVOID table , UINT glyph) diff --git a/dlls/usp10/tests/usp10.c b/dlls/usp10/tests/usp10.c index 77c5d5e..a726b68 100644 --- a/dlls/usp10/tests/usp10.c +++ b/dlls/usp10/tests/usp10.c @@ -155,6 +155,7 @@ static inline void _test_items_ok(LPCWSTR string, DWORD cchString, #define khmr_tag MS_MAKE_TAG('k','h','m','r') #define hani_tag MS_MAKE_TAG('h','a','n','i') #define bopo_tag MS_MAKE_TAG('b','o','p','o') +#define kana_tag MS_MAKE_TAG('k','a','n','a') static void test_ScriptItemize( void ) { @@ -339,6 +340,11 @@ static void test_ScriptItemize( void ) static const itemTest t301[2] = {{{0,0,0,0,0},0,0,0,0,bopo_tag,FALSE},{{0,0,0,0,0},8,0,0,0,-1,FALSE}}; static const itemTest t302[2] = {{{0,0,0,0,0},0,0,0,2,bopo_tag,FALSE},{{0,0,0,0,0},8,0,0,0,-1,FALSE}}; + /* Kana */ + static const WCHAR test31[] = {0x3072,0x3089,0x304b,0x306a,0x30ab,0x30bf,0x30ab,0x30ca}; + static const itemTest t311[2] = {{{0,0,0,0,0},0,0,0,0,kana_tag,FALSE},{{0,0,0,0,0},8,0,0,0,-1,FALSE}}; + static const itemTest t312[2] = {{{0,0,0,0,0},0,0,0,2,kana_tag,FALSE},{{0,0,0,0,0},8,0,0,0,-1,FALSE}}; + SCRIPT_ITEM items[15]; SCRIPT_CONTROL Control; SCRIPT_STATE State; @@ -402,6 +408,7 @@ static void test_ScriptItemize( void ) test_items_ok(test28,4,NULL,NULL,1,t281,FALSE,0); test_items_ok(test29,10,NULL,NULL,2,t291,FALSE,0); test_items_ok(test30,8,NULL,NULL,1,t301,FALSE,0); + test_items_ok(test31,8,NULL,NULL,1,t311,FALSE,2); State.uBidiLevel = 0; test_items_ok(test1,4,&Control,&State,1,t11,FALSE,0); @@ -439,6 +446,7 @@ static void test_ScriptItemize( void ) test_items_ok(test28,4,&Control,&State,1,t281,FALSE,0); test_items_ok(test29,10,&Control,&State,2,t291,FALSE,0); test_items_ok(test30,8,&Control,&State,1,t301,FALSE,0); + test_items_ok(test31,8,&Control,&State,1,t311,FALSE,2); State.uBidiLevel = 1; test_items_ok(test1,4,&Control,&State,1,t12,FALSE,0); @@ -476,6 +484,7 @@ static void test_ScriptItemize( void ) test_items_ok(test28,4,&Control,&State,1,t282,FALSE,0); test_items_ok(test29,10,&Control,&State,2,t292,FALSE,0); test_items_ok(test30,8,&Control,&State,1,t302,FALSE,0); + test_items_ok(test31,8,&Control,&State,1,t312,FALSE,2); State.uBidiLevel = 1; Control.fMergeNeutralItems = TRUE; @@ -514,6 +523,7 @@ static void test_ScriptItemize( void ) test_items_ok(test28,4,&Control,&State,1,t282,FALSE,0); test_items_ok(test29,10,&Control,&State,2,t292,FALSE,0); test_items_ok(test30,8,&Control,&State,1,t302,FALSE,0); + test_items_ok(test31,8,&Control,&State,1,t312,FALSE,2); } static inline void _test_shape_ok(int valid, HDC hdc, LPCWSTR string, diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c index c02a10e..4ebbd93 100644 --- a/dlls/usp10/usp10.c +++ b/dlls/usp10/usp10.c @@ -179,9 +179,14 @@ static const scriptRange scriptRanges[] = { { Script_Ideograph ,0x3008, 0x3020, 0, 0}, { Script_CJK_Han ,0x3021, 0x3029, 0, 0}, { Script_Ideograph ,0x302a, 0x3030, 0, 0}, + /* Kana Marks: */ + { Script_Kana ,0x3031, 0x3035, 0, 0}, { Script_Ideograph ,0x3036, 0x3037, 0, 0}, { Script_CJK_Han ,0x3038, 0x303b, 0, 0}, { Script_Ideograph ,0x303c, 0x303f, 0, 0}, + /* Hiragana: U+3040–U+309F */ + /* Katakana: U+30A0–U+30FF */ + { Script_Kana ,0x3040, 0x30ff, 0, 0}, /* Bopomofo: U+3100–U+312F */ { Script_Bopomofo ,0x3100, 0x312f, 0, 0}, /* Kanbun: U+3190–U+319F */ @@ -190,10 +195,14 @@ static const scriptRange scriptRanges[] = { { Script_Bopomofo ,0x31a0, 0x31bf, 0, 0}, /* CJK Strokes: U+31C0–U+31EF */ { Script_Ideograph ,0x31c0, 0x31ef, 0, 0}, + /* Katakana Phonetic Extensions: U+31F0–U+31FF */ + { Script_Kana ,0x31f0, 0x31ff, 0, 0}, /* Enclosed CJK Letters and Months: U+3200–U+32FF */ - { Script_Ideograph ,0x3220, 0x32ff, 0, 0}, + { Script_Ideograph ,0x3220, 0x32ef, 0, 0}, + { Script_Kana ,0x32d0, 0x31ff, 0, 0}, /* CJK Compatibility: U+3300–U+33FF*/ - { Script_Ideograph ,0x3300, 0x33ff, 0, 0}, + { Script_Kana ,0x3300, 0x3357, 0, 0}, + { Script_Ideograph ,0x3358, 0x33ff, 0, 0}, /* CJK Unified Ideographs Extension A: U+3400–U+4DBF */ { Script_CJK_Han ,0x3400, 0x4dbf, 0, 0}, /* CJK Unified Ideographs: U+4E00–U+9FFF */ @@ -228,6 +237,7 @@ static const scriptRange scriptRanges[] = { { Script_Arabic, 0xfe70, 0xfeff, 0, 0}, /* Halfwidth and Fullwidth Forms: U+FF00–FFEF */ { Script_Ideograph ,0xff00, 0xff64, Script_Numeric2, 0}, + { Script_Kana ,0xff65, 0xff9f, 0, 0}, { Script_Ideograph ,0xffe0, 0xffef, 0, 0}, /* END */ { SCRIPT_UNDEFINED, 0, 0, 0} @@ -471,6 +481,10 @@ static const scriptData scriptInformation[] = { {LANG_ENGLISH, 0, 0, 0, 0, ANSI_CHARSET, 0, 0, 0, 0, 0, 0, 1, 0, 0}, MS_MAKE_TAG('b','o','p','o'), {0}}, + {{Script_Kana, 0, 0, 0, 0, 0, 0, { 0,0,0,0,0,0,0,0,0,0,0}}, + {LANG_ENGLISH, 0, 0, 0, 0, ANSI_CHARSET, 0, 0, 0, 0, 0, 0, 1, 0, 0}, + MS_MAKE_TAG('k','a','n','a'), + {0}}, }; static const SCRIPT_PROPERTIES *script_props[] = @@ -503,7 +517,7 @@ static const SCRIPT_PROPERTIES *script_props[] = &scriptInformation[50].props, &scriptInformation[51].props, &scriptInformation[52].props, &scriptInformation[53].props, &scriptInformation[54].props, &scriptInformation[55].props, - &scriptInformation[56].props + &scriptInformation[56].props, &scriptInformation[57].props }; typedef struct { diff --git a/dlls/usp10/usp10_internal.h b/dlls/usp10/usp10_internal.h index deaf4df..b287ed5 100644 --- a/dlls/usp10/usp10_internal.h +++ b/dlls/usp10/usp10_internal.h @@ -87,6 +87,7 @@ #define Script_CJK_Han 54 #define Script_Ideograph 55 #define Script_Bopomofo 56 +#define Script_Kana 57 #define GLYPH_BLOCK_SHIFT 8 #define GLYPH_BLOCK_SIZE (1UL << GLYPH_BLOCK_SHIFT)
1
0
0
0
Aric Stewart : usp10: Add Bopomofo script.
by Alexandre Julliard
13 Dec '11
13 Dec '11
Module: wine Branch: master Commit: 513a8c5020c1c683bf14caa6ac8d548874f1a56e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=513a8c5020c1c683bf14caa6a…
Author: Aric Stewart <aric(a)codeweavers.com> Date: Mon Dec 12 14:50:20 2011 -0600 usp10: Add Bopomofo script. --- dlls/usp10/shape.c | 1 + dlls/usp10/tests/usp10.c | 10 ++++++++++ dlls/usp10/usp10.c | 11 ++++++++++- dlls/usp10/usp10_internal.h | 1 + 4 files changed, 22 insertions(+), 1 deletions(-) diff --git a/dlls/usp10/shape.c b/dlls/usp10/shape.c index da04361..e225041 100644 --- a/dlls/usp10/shape.c +++ b/dlls/usp10/shape.c @@ -641,6 +641,7 @@ static const ScriptShapeData ShapingData[] = {{ khmer_features, 5}, required_khmer_features, "khmr", "", ContextualShape_Khmer, ShapeCharGlyphProp_Khmer}, {{ no_features, 0}, NULL, "hani", "", NULL, NULL}, {{ no_features, 0}, NULL, "hani", "", NULL, NULL}, + {{ no_features, 0}, NULL, "bopo", "", NULL, NULL}, }; static INT GSUB_is_glyph_covered(LPCVOID table , UINT glyph) diff --git a/dlls/usp10/tests/usp10.c b/dlls/usp10/tests/usp10.c index d17325d..77c5d5e 100644 --- a/dlls/usp10/tests/usp10.c +++ b/dlls/usp10/tests/usp10.c @@ -154,6 +154,7 @@ static inline void _test_items_ok(LPCWSTR string, DWORD cchString, #define talu_tag MS_MAKE_TAG('t','a','l','u') #define khmr_tag MS_MAKE_TAG('k','h','m','r') #define hani_tag MS_MAKE_TAG('h','a','n','i') +#define bopo_tag MS_MAKE_TAG('b','o','p','o') static void test_ScriptItemize( void ) { @@ -333,6 +334,11 @@ static void test_ScriptItemize( void ) static const itemTest t291[3] = {{{0,0,0,0,0},0,0,0,0,hani_tag,FALSE},{{0,0,0,0,0},4,0,0,0,hani_tag,FALSE},{{0,0,0,0,0},10,0,0,0,-1,FALSE}}; static const itemTest t292[3] = {{{0,0,0,0,0},0,1,1,1,hani_tag,FALSE},{{0,0,0,0,0},4,0,0,2,hani_tag,FALSE},{{0,0,0,0,0},10,0,0,0,-1,FALSE}}; + /* Bopomofo */ + static const WCHAR test30[] = {0x3113,0x3128,0x3127,0x3123,0x3108,0x3128,0x310f,0x3120}; + static const itemTest t301[2] = {{{0,0,0,0,0},0,0,0,0,bopo_tag,FALSE},{{0,0,0,0,0},8,0,0,0,-1,FALSE}}; + static const itemTest t302[2] = {{{0,0,0,0,0},0,0,0,2,bopo_tag,FALSE},{{0,0,0,0,0},8,0,0,0,-1,FALSE}}; + SCRIPT_ITEM items[15]; SCRIPT_CONTROL Control; SCRIPT_STATE State; @@ -395,6 +401,7 @@ static void test_ScriptItemize( void ) test_items_ok(test27,8,NULL,NULL,1,t271,FALSE,0); test_items_ok(test28,4,NULL,NULL,1,t281,FALSE,0); test_items_ok(test29,10,NULL,NULL,2,t291,FALSE,0); + test_items_ok(test30,8,NULL,NULL,1,t301,FALSE,0); State.uBidiLevel = 0; test_items_ok(test1,4,&Control,&State,1,t11,FALSE,0); @@ -431,6 +438,7 @@ static void test_ScriptItemize( void ) test_items_ok(test27,8,&Control,&State,1,t271,FALSE,0); test_items_ok(test28,4,&Control,&State,1,t281,FALSE,0); test_items_ok(test29,10,&Control,&State,2,t291,FALSE,0); + test_items_ok(test30,8,&Control,&State,1,t301,FALSE,0); State.uBidiLevel = 1; test_items_ok(test1,4,&Control,&State,1,t12,FALSE,0); @@ -467,6 +475,7 @@ static void test_ScriptItemize( void ) test_items_ok(test27,8,&Control,&State,1,t272,FALSE,0); test_items_ok(test28,4,&Control,&State,1,t282,FALSE,0); test_items_ok(test29,10,&Control,&State,2,t292,FALSE,0); + test_items_ok(test30,8,&Control,&State,1,t302,FALSE,0); State.uBidiLevel = 1; Control.fMergeNeutralItems = TRUE; @@ -504,6 +513,7 @@ static void test_ScriptItemize( void ) test_items_ok(test27,8,&Control,&State,1,t272,FALSE,0); test_items_ok(test28,4,&Control,&State,1,t282,FALSE,0); test_items_ok(test29,10,&Control,&State,2,t292,FALSE,0); + test_items_ok(test30,8,&Control,&State,1,t302,FALSE,0); } static inline void _test_shape_ok(int valid, HDC hdc, LPCWSTR string, diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c index 2c860cf..c02a10e 100644 --- a/dlls/usp10/usp10.c +++ b/dlls/usp10/usp10.c @@ -182,8 +182,12 @@ static const scriptRange scriptRanges[] = { { Script_Ideograph ,0x3036, 0x3037, 0, 0}, { Script_CJK_Han ,0x3038, 0x303b, 0, 0}, { Script_Ideograph ,0x303c, 0x303f, 0, 0}, + /* Bopomofo: U+3100–U+312F */ + { Script_Bopomofo ,0x3100, 0x312f, 0, 0}, /* Kanbun: U+3190–U+319F */ { Script_Ideograph ,0x3190, 0x319f, 0, 0}, + /* Bopomofo Extended: U+31A0–U+31BF */ + { Script_Bopomofo ,0x31a0, 0x31bf, 0, 0}, /* CJK Strokes: U+31C0–U+31EF */ { Script_Ideograph ,0x31c0, 0x31ef, 0, 0}, /* Enclosed CJK Letters and Months: U+3200–U+32FF */ @@ -463,6 +467,10 @@ static const scriptData scriptInformation[] = { {LANG_ENGLISH, 0, 0, 0, 0, ANSI_CHARSET, 0, 0, 0, 0, 0, 0, 1, 0, 0}, MS_MAKE_TAG('h','a','n','i'), {0}}, + {{Script_Bopomofo, 0, 0, 0, 0, 0, 0, { 0,0,0,0,0,0,0,0,0,0,0}}, + {LANG_ENGLISH, 0, 0, 0, 0, ANSI_CHARSET, 0, 0, 0, 0, 0, 0, 1, 0, 0}, + MS_MAKE_TAG('b','o','p','o'), + {0}}, }; static const SCRIPT_PROPERTIES *script_props[] = @@ -494,7 +502,8 @@ static const SCRIPT_PROPERTIES *script_props[] = &scriptInformation[48].props, &scriptInformation[49].props, &scriptInformation[50].props, &scriptInformation[51].props, &scriptInformation[52].props, &scriptInformation[53].props, - &scriptInformation[54].props, &scriptInformation[55].props + &scriptInformation[54].props, &scriptInformation[55].props, + &scriptInformation[56].props }; typedef struct { diff --git a/dlls/usp10/usp10_internal.h b/dlls/usp10/usp10_internal.h index b6633f0..deaf4df 100644 --- a/dlls/usp10/usp10_internal.h +++ b/dlls/usp10/usp10_internal.h @@ -86,6 +86,7 @@ /* Unicode Chapter 12 */ #define Script_CJK_Han 54 #define Script_Ideograph 55 +#define Script_Bopomofo 56 #define GLYPH_BLOCK_SHIFT 8 #define GLYPH_BLOCK_SIZE (1UL << GLYPH_BLOCK_SHIFT)
1
0
0
0
Aric Stewart : usp10: Add CKJ Han and Ideographic scripts.
by Alexandre Julliard
13 Dec '11
13 Dec '11
Module: wine Branch: master Commit: df2e40bc34895053d3a007c6c9d249577d457b38 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=df2e40bc34895053d3a007c6c…
Author: Aric Stewart <aric(a)codeweavers.com> Date: Mon Dec 12 14:50:12 2011 -0600 usp10: Add CKJ Han and Ideographic scripts. --- dlls/usp10/shape.c | 5 ++++ dlls/usp10/tests/usp10.c | 18 +++++++++++++++ dlls/usp10/usp10.c | 49 ++++++++++++++++++++++++++++++++++++++++++- dlls/usp10/usp10_internal.h | 3 ++ 4 files changed, 74 insertions(+), 1 deletions(-) diff --git a/dlls/usp10/shape.c b/dlls/usp10/shape.c index 11c3658..da04361 100644 --- a/dlls/usp10/shape.c +++ b/dlls/usp10/shape.c @@ -570,6 +570,9 @@ static const char* required_khmer_features[] = NULL }; +static OPENTYPE_FEATURE_RECORD no_features[] = +{ }; + typedef struct ScriptShapeDataTag { TEXTRANGE_PROPERTIES defaultTextRange; const char** requiredFeatures; @@ -636,6 +639,8 @@ static const ScriptShapeData ShapingData[] = {{ standard_features, 2}, NULL, "talu", "", NULL, NULL}, {{ khmer_features, 5}, required_khmer_features, "khmr", "", ContextualShape_Khmer, ShapeCharGlyphProp_Khmer}, {{ khmer_features, 5}, required_khmer_features, "khmr", "", ContextualShape_Khmer, ShapeCharGlyphProp_Khmer}, + {{ no_features, 0}, NULL, "hani", "", NULL, NULL}, + {{ no_features, 0}, NULL, "hani", "", NULL, NULL}, }; static INT GSUB_is_glyph_covered(LPCVOID table , UINT glyph) diff --git a/dlls/usp10/tests/usp10.c b/dlls/usp10/tests/usp10.c index a0985d6..d17325d 100644 --- a/dlls/usp10/tests/usp10.c +++ b/dlls/usp10/tests/usp10.c @@ -153,6 +153,7 @@ static inline void _test_items_ok(LPCWSTR string, DWORD cchString, #define tale_tag MS_MAKE_TAG('t','a','l','e') #define talu_tag MS_MAKE_TAG('t','a','l','u') #define khmr_tag MS_MAKE_TAG('k','h','m','r') +#define hani_tag MS_MAKE_TAG('h','a','n','i') static void test_ScriptItemize( void ) { @@ -322,6 +323,15 @@ static void test_ScriptItemize( void ) static const itemTest t271[2] = {{{0,0,0,0,0},0,0,0,0,khmr_tag,FALSE},{{0,0,0,0,0},8,0,0,0,-1,FALSE}}; static const itemTest t272[2] = {{{0,0,0,0,0},0,0,0,2,khmr_tag,TRUE,{-1,1,1,1,-1}},{{0,0,0,0,0},8,0,0,0,-1,FALSE}}; + /* CJK Han */ + static const WCHAR test28[] = {0x8bed,0x7d20,0x6587,0x5b57}; + static const itemTest t281[2] = {{{0,0,0,0,0},0,0,0,0,hani_tag,FALSE},{{0,0,0,0,0},4,0,0,0,-1,FALSE}}; + static const itemTest t282[2] = {{{0,0,0,0,0},0,0,0,2,hani_tag,FALSE},{{0,0,0,0,0},4,0,0,0,-1,FALSE}}; + + /* Ideographic */ + static const WCHAR test29[] = {0x2ff0,0x2ff3,0x2ffb,0x2ff0,0x65e5,0x65e5,0x5de5,0x7f51,0x4e02,0x4e5e}; + static const itemTest t291[3] = {{{0,0,0,0,0},0,0,0,0,hani_tag,FALSE},{{0,0,0,0,0},4,0,0,0,hani_tag,FALSE},{{0,0,0,0,0},10,0,0,0,-1,FALSE}}; + static const itemTest t292[3] = {{{0,0,0,0,0},0,1,1,1,hani_tag,FALSE},{{0,0,0,0,0},4,0,0,2,hani_tag,FALSE},{{0,0,0,0,0},10,0,0,0,-1,FALSE}}; SCRIPT_ITEM items[15]; SCRIPT_CONTROL Control; @@ -383,6 +393,8 @@ static void test_ScriptItemize( void ) test_items_ok(test25,10,NULL,NULL,1,t251,FALSE,0); test_items_ok(test26,2,NULL,NULL,1,t261,FALSE,0); test_items_ok(test27,8,NULL,NULL,1,t271,FALSE,0); + test_items_ok(test28,4,NULL,NULL,1,t281,FALSE,0); + test_items_ok(test29,10,NULL,NULL,2,t291,FALSE,0); State.uBidiLevel = 0; test_items_ok(test1,4,&Control,&State,1,t11,FALSE,0); @@ -417,6 +429,8 @@ static void test_ScriptItemize( void ) test_items_ok(test25,10,&Control,&State,1,t251,FALSE,0); test_items_ok(test26,2,&Control,&State,1,t261,FALSE,0); test_items_ok(test27,8,&Control,&State,1,t271,FALSE,0); + test_items_ok(test28,4,&Control,&State,1,t281,FALSE,0); + test_items_ok(test29,10,&Control,&State,2,t291,FALSE,0); State.uBidiLevel = 1; test_items_ok(test1,4,&Control,&State,1,t12,FALSE,0); @@ -451,6 +465,8 @@ static void test_ScriptItemize( void ) test_items_ok(test25,10,&Control,&State,1,t252,FALSE,0); test_items_ok(test26,2,&Control,&State,1,t262,FALSE,0); test_items_ok(test27,8,&Control,&State,1,t272,FALSE,0); + test_items_ok(test28,4,&Control,&State,1,t282,FALSE,0); + test_items_ok(test29,10,&Control,&State,2,t292,FALSE,0); State.uBidiLevel = 1; Control.fMergeNeutralItems = TRUE; @@ -486,6 +502,8 @@ static void test_ScriptItemize( void ) test_items_ok(test25,10,&Control,&State,1,t252,FALSE,0); test_items_ok(test26,2,&Control,&State,1,t262,FALSE,0); test_items_ok(test27,8,&Control,&State,1,t272,FALSE,0); + test_items_ok(test28,4,&Control,&State,1,t282,FALSE,0); + test_items_ok(test29,10,&Control,&State,2,t292,FALSE,0); } static inline void _test_shape_ok(int valid, HDC hdc, LPCWSTR string, diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c index ff3ae2e..2c860cf 100644 --- a/dlls/usp10/usp10.c +++ b/dlls/usp10/usp10.c @@ -166,6 +166,34 @@ static const scriptRange scriptRanges[] = { { Script_Georgian, 0x2d00, 0x2d2f, 0, 0}, /* Cyrillic Extended-A: U+2DE0–U+2DFF */ { Script_Cyrillic, 0x2de0, 0x2dff, 0, 0}, + /* CJK Radicals Supplement: U+2E80–U+2EFF */ + /* Kangxi Radicals: U+2F00–U+2FDF */ + { Script_CJK_Han, 0x2e80, 0x2fdf, 0, 0}, + /* Ideographic Description Characters: U+2FF0–U+2FFF */ + { Script_Ideograph ,0x2ff0, 0x2fff, 0, 0}, + /* CJK Symbols and Punctuation: U+3000–U+303F */ + { Script_Ideograph ,0x3000, 0x3004, 0, 0}, + { Script_CJK_Han ,0x3005, 0x3005, 0, 0}, + { Script_Ideograph ,0x3006, 0x3006, 0, 0}, + { Script_CJK_Han ,0x3007, 0x3007, 0, 0}, + { Script_Ideograph ,0x3008, 0x3020, 0, 0}, + { Script_CJK_Han ,0x3021, 0x3029, 0, 0}, + { Script_Ideograph ,0x302a, 0x3030, 0, 0}, + { Script_Ideograph ,0x3036, 0x3037, 0, 0}, + { Script_CJK_Han ,0x3038, 0x303b, 0, 0}, + { Script_Ideograph ,0x303c, 0x303f, 0, 0}, + /* Kanbun: U+3190–U+319F */ + { Script_Ideograph ,0x3190, 0x319f, 0, 0}, + /* CJK Strokes: U+31C0–U+31EF */ + { Script_Ideograph ,0x31c0, 0x31ef, 0, 0}, + /* Enclosed CJK Letters and Months: U+3200–U+32FF */ + { Script_Ideograph ,0x3220, 0x32ff, 0, 0}, + /* CJK Compatibility: U+3300–U+33FF*/ + { Script_Ideograph ,0x3300, 0x33ff, 0, 0}, + /* CJK Unified Ideographs Extension A: U+3400–U+4DBF */ + { Script_CJK_Han ,0x3400, 0x4dbf, 0, 0}, + /* CJK Unified Ideographs: U+4E00–U+9FFF */ + { Script_CJK_Han ,0x4e00, 0x9fff, 0, 0}, /* Cyrillic Extended-B: U+A640–U+A69F */ { Script_Cyrillic, 0xa640, 0xa69f, 0, 0}, /* Modifier Tone Letters: U+A700–U+A71F */ @@ -177,6 +205,8 @@ static const scriptRange scriptRanges[] = { { Script_Devanagari, 0xa8e0, 0xa8ff, Script_Devanagari_Numeric, 0}, /* Myanmar Extended-A: U+AA60–U+AA7F */ { Script_Myanmar, 0xaa60, 0xaa7f, Script_Myanmar_Numeric, 0}, + /* CJK Compatibility Ideographs: U+F900–U+FAFF */ + { Script_CJK_Han ,0xf900, 0xfaff, 0, 0}, /* Latin Ligatures: U+FB00–U+FB06 */ { Script_Latin, 0xfb00, 0xfb06, 0, 0}, /* Armenian ligatures U+FB13..U+FB17 */ @@ -185,8 +215,16 @@ static const scriptRange scriptRanges[] = { { Script_Hebrew, 0xfb1d, 0xfb4f, 0, 0}, /* Arabic Presentation Forms-A: U+FB50–U+FDFF*/ { Script_Arabic, 0xfb50, 0xfdff, 0, 0}, + /* Vertical Forms: U+FE10–U+FE1F */ + /* Combining Half Marks: U+FE20–U+FE2F */ + /* CJK Compatibility Forms: U+FE30–U+FE4F */ + /* Small Form Variants: U+FE50–U+FE6F */ + { Script_Ideograph ,0xfe10, 0xfe6f, 0, 0}, /* Arabic Presentation Forms-B: U+FE70–U+FEFF*/ { Script_Arabic, 0xfe70, 0xfeff, 0, 0}, + /* Halfwidth and Fullwidth Forms: U+FF00–FFEF */ + { Script_Ideograph ,0xff00, 0xff64, Script_Numeric2, 0}, + { Script_Ideograph ,0xffe0, 0xffef, 0, 0}, /* END */ { SCRIPT_UNDEFINED, 0, 0, 0} }; @@ -417,6 +455,14 @@ static const scriptData scriptInformation[] = { {0x53, 1, 1, 0, 0, DEFAULT_CHARSET, 0, 0, 0, 0, 0, 0, 0, 0, 0}, MS_MAKE_TAG('k','h','m','r'), {'D','a','u','n','P','e','n','h'}}, + {{Script_CJK_Han, 0, 0, 0, 0, 0, 0, { 0,0,0,0,0,0,0,0,0,0,0}}, + {LANG_ENGLISH, 0, 0, 0, 0, ANSI_CHARSET, 0, 0, 0, 0, 0, 0, 1, 0, 0}, + MS_MAKE_TAG('h','a','n','i'), + {0}}, + {{Script_Ideograph, 0, 0, 0, 0, 0, 0, { 0,0,0,0,0,0,0,0,0,0,0}}, + {LANG_ENGLISH, 0, 0, 0, 0, ANSI_CHARSET, 0, 0, 0, 0, 0, 0, 1, 0, 0}, + MS_MAKE_TAG('h','a','n','i'), + {0}}, }; static const SCRIPT_PROPERTIES *script_props[] = @@ -447,7 +493,8 @@ static const SCRIPT_PROPERTIES *script_props[] = &scriptInformation[46].props, &scriptInformation[47].props, &scriptInformation[48].props, &scriptInformation[49].props, &scriptInformation[50].props, &scriptInformation[51].props, - &scriptInformation[52].props, &scriptInformation[53].props + &scriptInformation[52].props, &scriptInformation[53].props, + &scriptInformation[54].props, &scriptInformation[55].props }; typedef struct { diff --git a/dlls/usp10/usp10_internal.h b/dlls/usp10/usp10_internal.h index b9c9fa0..b6633f0 100644 --- a/dlls/usp10/usp10_internal.h +++ b/dlls/usp10/usp10_internal.h @@ -83,6 +83,9 @@ #define Script_New_Tai_Lue_Numeric 51 #define Script_Khmer 52 #define Script_Khmer_Numeric 53 +/* Unicode Chapter 12 */ +#define Script_CJK_Han 54 +#define Script_Ideograph 55 #define GLYPH_BLOCK_SHIFT 8 #define GLYPH_BLOCK_SIZE (1UL << GLYPH_BLOCK_SHIFT)
1
0
0
0
Henri Verbeet : wined3d: Get rid of the WINED3DDEVTYPE typedef.
by Alexandre Julliard
13 Dec '11
13 Dec '11
Module: wine Branch: master Commit: 67bca436ee81a2caa98a311c339b411c6db5a727 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=67bca436ee81a2caa98a311c3…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Dec 12 20:53:59 2011 +0100 wined3d: Get rid of the WINED3DDEVTYPE typedef. --- dlls/ddraw/ddraw.c | 18 +++++++++--------- dlls/ddraw/ddraw_private.h | 2 +- dlls/ddraw/device.c | 6 +++--- dlls/ddraw/main.c | 10 +++++----- dlls/dxgi/device.c | 4 ++-- dlls/wined3d/device.c | 2 +- dlls/wined3d/directx.c | 19 ++++++++++--------- dlls/wined3d/utils.c | 12 ++++++------ dlls/wined3d/wined3d_private.h | 4 ++-- include/wine/wined3d.h | 31 +++++++++++++++---------------- 10 files changed, 54 insertions(+), 54 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=67bca436ee81a2caa98a3…
1
0
0
0
Henri Verbeet : wined3d: Get rid of the WINEDDCAPS typedef.
by Alexandre Julliard
13 Dec '11
13 Dec '11
Module: wine Branch: master Commit: ebb85da5f7b1457e20555d97ea615c57578b0db3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ebb85da5f7b1457e20555d97e…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Dec 12 20:53:58 2011 +0100 wined3d: Get rid of the WINEDDCAPS typedef. --- dlls/ddraw/ddraw.c | 35 ++++++++++++++++++----------------- dlls/wined3d/directx.c | 44 ++++++++++++++++++++++---------------------- include/wine/wined3d.h | 42 +++++++++++++++++++++--------------------- 3 files changed, 61 insertions(+), 60 deletions(-) diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c index 7ff9a73..854ab9e 100644 --- a/dlls/ddraw/ddraw.c +++ b/dlls/ddraw/ddraw.c @@ -1197,21 +1197,21 @@ static HRESULT WINAPI ddraw7_GetCaps(IDirectDraw7 *iface, DDCAPS *DriverCaps, DD return hr; } - caps.dwCaps = winecaps.DirectDrawCaps.Caps; - caps.dwCaps2 = winecaps.DirectDrawCaps.Caps2; - caps.dwCKeyCaps = winecaps.DirectDrawCaps.CKeyCaps; - caps.dwFXCaps = winecaps.DirectDrawCaps.FXCaps; - caps.dwPalCaps = winecaps.DirectDrawCaps.PalCaps; - caps.ddsCaps.dwCaps = winecaps.DirectDrawCaps.ddsCaps; - caps.dwSVBCaps = winecaps.DirectDrawCaps.SVBCaps; - caps.dwSVBCKeyCaps = winecaps.DirectDrawCaps.SVBCKeyCaps; - caps.dwSVBFXCaps = winecaps.DirectDrawCaps.SVBFXCaps; - caps.dwVSBCaps = winecaps.DirectDrawCaps.VSBCaps; - caps.dwVSBCKeyCaps = winecaps.DirectDrawCaps.VSBCKeyCaps; - caps.dwVSBFXCaps = winecaps.DirectDrawCaps.VSBFXCaps; - caps.dwSSBCaps = winecaps.DirectDrawCaps.SSBCaps; - caps.dwSSBCKeyCaps = winecaps.DirectDrawCaps.SSBCKeyCaps; - caps.dwSSBFXCaps = winecaps.DirectDrawCaps.SSBFXCaps; + caps.dwCaps = winecaps.ddraw_caps.caps; + caps.dwCaps2 = winecaps.ddraw_caps.caps2; + caps.dwCKeyCaps = winecaps.ddraw_caps.color_key_caps; + caps.dwFXCaps = winecaps.ddraw_caps.fx_caps; + caps.dwPalCaps = winecaps.ddraw_caps.pal_caps; + caps.ddsCaps.dwCaps = winecaps.ddraw_caps.dds_caps; + caps.dwSVBCaps = winecaps.ddraw_caps.svb_caps; + caps.dwSVBCKeyCaps = winecaps.ddraw_caps.svb_color_key_caps; + caps.dwSVBFXCaps = winecaps.ddraw_caps.svb_fx_caps; + caps.dwVSBCaps = winecaps.ddraw_caps.vsb_caps; + caps.dwVSBCKeyCaps = winecaps.ddraw_caps.vsb_color_key_caps; + caps.dwVSBFXCaps = winecaps.ddraw_caps.vsb_fx_caps; + caps.dwSSBCaps = winecaps.ddraw_caps.ssb_caps; + caps.dwSSBCKeyCaps = winecaps.ddraw_caps.ssb_color_key_caps; + caps.dwSSBFXCaps = winecaps.ddraw_caps.ssb_fx_caps; /* Even if WineD3D supports 3D rendering, remove the cap if ddraw is configured * not to use it @@ -1220,9 +1220,10 @@ static HRESULT WINAPI ddraw7_GetCaps(IDirectDraw7 *iface, DDCAPS *DriverCaps, DD caps.dwCaps &= ~DDCAPS_3D; caps.ddsCaps.dwCaps &= ~(DDSCAPS_3DDEVICE | DDSCAPS_MIPMAP | DDSCAPS_TEXTURE | DDSCAPS_ZBUFFER); } - if(winecaps.DirectDrawCaps.StrideAlign != 0) { + if (winecaps.ddraw_caps.stride_align) + { caps.dwCaps |= DDCAPS_ALIGNSTRIDE; - caps.dwAlignStrideAlign = winecaps.DirectDrawCaps.StrideAlign; + caps.dwAlignStrideAlign = winecaps.ddraw_caps.stride_align; } if(DriverCaps) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index fe77b88..a0f716b 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -4899,28 +4899,28 @@ HRESULT CDECL wined3d_get_device_caps(const struct wined3d *wined3d, UINT adapte WINEDDPCAPS_PRIMARYSURFACE; /* Fill the ddraw caps structure */ - caps->DirectDrawCaps.Caps = WINEDDCAPS_GDI | + caps->ddraw_caps.caps = WINEDDCAPS_GDI | WINEDDCAPS_PALETTE | blit_caps; - caps->DirectDrawCaps.Caps2 = WINEDDCAPS2_CERTIFIED | - WINEDDCAPS2_NOPAGELOCKREQUIRED | - WINEDDCAPS2_PRIMARYGAMMA | - WINEDDCAPS2_WIDESURFACES | + caps->ddraw_caps.caps2 = WINEDDCAPS2_CERTIFIED | + WINEDDCAPS2_NOPAGELOCKREQUIRED | + WINEDDCAPS2_PRIMARYGAMMA | + WINEDDCAPS2_WIDESURFACES | WINEDDCAPS2_CANRENDERWINDOWED; - caps->DirectDrawCaps.CKeyCaps = ckey_caps; - caps->DirectDrawCaps.FXCaps = fx_caps; - caps->DirectDrawCaps.PalCaps = pal_caps; - caps->DirectDrawCaps.SVBCaps = blit_caps; - caps->DirectDrawCaps.SVBCKeyCaps = ckey_caps; - caps->DirectDrawCaps.SVBFXCaps = fx_caps; - caps->DirectDrawCaps.VSBCaps = blit_caps; - caps->DirectDrawCaps.VSBCKeyCaps = ckey_caps; - caps->DirectDrawCaps.VSBFXCaps = fx_caps; - caps->DirectDrawCaps.SSBCaps = blit_caps; - caps->DirectDrawCaps.SSBCKeyCaps = ckey_caps; - caps->DirectDrawCaps.SSBFXCaps = fx_caps; - - caps->DirectDrawCaps.ddsCaps = WINEDDSCAPS_ALPHA | + caps->ddraw_caps.color_key_caps = ckey_caps; + caps->ddraw_caps.fx_caps = fx_caps; + caps->ddraw_caps.pal_caps = pal_caps; + caps->ddraw_caps.svb_caps = blit_caps; + caps->ddraw_caps.svb_color_key_caps = ckey_caps; + caps->ddraw_caps.svb_fx_caps = fx_caps; + caps->ddraw_caps.vsb_caps = blit_caps; + caps->ddraw_caps.vsb_color_key_caps = ckey_caps; + caps->ddraw_caps.vsb_fx_caps = fx_caps; + caps->ddraw_caps.ssb_caps = blit_caps; + caps->ddraw_caps.ssb_color_key_caps = ckey_caps; + caps->ddraw_caps.ssb_fx_caps = fx_caps; + + caps->ddraw_caps.dds_caps = WINEDDSCAPS_ALPHA | WINEDDSCAPS_BACKBUFFER | WINEDDSCAPS_FLIP | WINEDDSCAPS_FRONTBUFFER | @@ -4930,16 +4930,16 @@ HRESULT CDECL wined3d_get_device_caps(const struct wined3d *wined3d, UINT adapte WINEDDSCAPS_SYSTEMMEMORY | WINEDDSCAPS_VIDEOMEMORY | WINEDDSCAPS_VISIBLE; - caps->DirectDrawCaps.StrideAlign = DDRAW_PITCH_ALIGNMENT; + caps->ddraw_caps.stride_align = DDRAW_PITCH_ALIGNMENT; /* Set D3D caps if OpenGL is available. */ if (adapter->opengl) { - caps->DirectDrawCaps.ddsCaps |= WINEDDSCAPS_3DDEVICE | + caps->ddraw_caps.dds_caps |= WINEDDSCAPS_3DDEVICE | WINEDDSCAPS_MIPMAP | WINEDDSCAPS_TEXTURE | WINEDDSCAPS_ZBUFFER; - caps->DirectDrawCaps.Caps |= WINEDDCAPS_3D; + caps->ddraw_caps.caps |= WINEDDCAPS_3D; } return WINED3D_OK; diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h index cffb206..6598439 100644 --- a/include/wine/wined3d.h +++ b/include/wine/wined3d.h @@ -1757,27 +1757,27 @@ struct wined3d_pixel_shader_caps INT instruction_slot_count; }; -typedef struct _WINEDDCAPS +struct wined3d_ddraw_caps { - DWORD Caps; - DWORD Caps2; - DWORD CKeyCaps; - DWORD FXCaps; - DWORD FXAlphaCaps; - DWORD PalCaps; - DWORD SVCaps; - DWORD SVBCaps; - DWORD SVBCKeyCaps; - DWORD SVBFXCaps; - DWORD VSBCaps; - DWORD VSBCKeyCaps; - DWORD VSBFXCaps; - DWORD SSBCaps; - DWORD SSBCKeyCaps; - DWORD SSBFXCaps; - DWORD ddsCaps; - DWORD StrideAlign; -} WINEDDCAPS; + DWORD caps; + DWORD caps2; + DWORD color_key_caps; + DWORD fx_caps; + DWORD fx_alpha_caps; + DWORD pal_caps; + DWORD sv_caps; + DWORD svb_caps; + DWORD svb_color_key_caps; + DWORD svb_fx_caps; + DWORD vsb_caps; + DWORD vsb_color_key_caps; + DWORD vsb_fx_caps; + DWORD ssb_caps; + DWORD ssb_color_key_caps; + DWORD ssb_fx_caps; + DWORD dds_caps; + DWORD stride_align; +}; typedef struct _WINED3DCAPS { @@ -1868,7 +1868,7 @@ typedef struct _WINED3DCAPS DWORD Reserved2; /* Not in the microsoft headers but documented */ DWORD Reserved3; - WINEDDCAPS DirectDrawCaps; + struct wined3d_ddraw_caps ddraw_caps; } WINED3DCAPS; struct wined3d_color_key
1
0
0
0
Henri Verbeet : wined3d: Use the correct source pitch and byte_count for uploading converted surfaces .
by Alexandre Julliard
13 Dec '11
13 Dec '11
Module: wine Branch: master Commit: 943fcb0fc42c1f65f54a1c41267ba7fa01109c2e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=943fcb0fc42c1f65f54a1c412…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Dec 12 20:53:57 2011 +0100 wined3d: Use the correct source pitch and byte_count for uploading converted surfaces. --- dlls/wined3d/surface.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 0457ac6..bd45ae3 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -6038,6 +6038,8 @@ static HRESULT surface_load_texture(struct wined3d_surface *surface, return E_OUTOFMEMORY; } format.convert(surface->resource.allocatedMemory, mem, src_pitch, width, height); + format.byte_count = format.conv_byte_count; + src_pitch = dst_pitch; } else if (convert != NO_CONVERSION && surface->resource.allocatedMemory) { @@ -6056,6 +6058,8 @@ static HRESULT surface_load_texture(struct wined3d_surface *surface, } d3dfmt_convert_surface(surface->resource.allocatedMemory, mem, src_pitch, width, height, dst_pitch, convert, surface); + format.byte_count = format.conv_byte_count; + src_pitch = dst_pitch; } else {
1
0
0
0
Henri Verbeet : ddraw: Add support for clipped blits.
by Alexandre Julliard
13 Dec '11
13 Dec '11
Module: wine Branch: master Commit: 10d2a9375ddfac47de8957c7d126a28d82f15701 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=10d2a9375ddfac47de8957c7d…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Dec 12 20:53:56 2011 +0100 ddraw: Add support for clipped blits. --- dlls/ddraw/surface.c | 136 ++++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 122 insertions(+), 14 deletions(-) diff --git a/dlls/ddraw/surface.c b/dlls/ddraw/surface.c index 86d02c5..d110acc 100644 --- a/dlls/ddraw/surface.c +++ b/dlls/ddraw/surface.c @@ -1270,6 +1270,125 @@ static HRESULT WINAPI ddraw_surface1_Flip(IDirectDrawSurface *iface, IDirectDraw dst_impl ? &dst_impl->IDirectDrawSurface7_iface : NULL, flags); } +static HRESULT ddraw_surface_blt_clipped(IDirectDrawSurfaceImpl *dst_surface, const RECT *dst_rect_in, + IDirectDrawSurfaceImpl *src_surface, const RECT *src_rect_in, DWORD flags, + const WINEDDBLTFX *fx, WINED3DTEXTUREFILTERTYPE filter) +{ + struct wined3d_surface *wined3d_src_surface = src_surface ? src_surface->wined3d_surface : NULL; + RECT src_rect, dst_rect; + float scale_x, scale_y; + const RECT *clip_rect; + UINT clip_list_size; + RGNDATA *clip_list; + HRESULT hr = DD_OK; + UINT i; + + if (!dst_surface->clipper) + { + if (src_surface && src_surface->surface_desc.ddsCaps.dwCaps & DDSCAPS_FRONTBUFFER) + hr = ddraw_surface_update_frontbuffer(src_surface, src_rect_in, TRUE); + if (SUCCEEDED(hr)) + hr = wined3d_surface_blt(dst_surface->wined3d_surface, dst_rect_in, + wined3d_src_surface, src_rect_in, flags, fx, filter); + if (SUCCEEDED(hr) && (dst_surface->surface_desc.ddsCaps.dwCaps & DDSCAPS_FRONTBUFFER)) + hr = ddraw_surface_update_frontbuffer(dst_surface, dst_rect_in, FALSE); + + return hr; + } + + if (!dst_rect_in) + { + dst_rect.left = 0; + dst_rect.top = 0; + dst_rect.right = dst_surface->surface_desc.dwWidth; + dst_rect.bottom = dst_surface->surface_desc.dwHeight; + } + else + { + dst_rect = *dst_rect_in; + } + + if (IsRectEmpty(&dst_rect)) + return DDERR_INVALIDRECT; + + if (src_surface) + { + if (!src_rect_in) + { + src_rect.left = 0; + src_rect.top = 0; + src_rect.right = src_surface->surface_desc.dwWidth; + src_rect.bottom = src_surface->surface_desc.dwHeight; + } + else + { + src_rect = *src_rect_in; + } + + if (IsRectEmpty(&src_rect)) + return DDERR_INVALIDRECT; + } + else + { + SetRect(&src_rect, 0, 0, 0, 0); + } + + scale_x = (float)(src_rect.right - src_rect.left) / (float)(dst_rect.right - dst_rect.left); + scale_y = (float)(src_rect.bottom - src_rect.top) / (float)(dst_rect.bottom - dst_rect.top); + + if (FAILED(hr = IDirectDrawClipper_GetClipList(&dst_surface->clipper->IDirectDrawClipper_iface, + &dst_rect, NULL, &clip_list_size))) + { + WARN("Failed to get clip list size, hr %#x.\n", hr); + return hr; + } + + if (!(clip_list = HeapAlloc(GetProcessHeap(), 0, clip_list_size))) + { + WARN("Failed to allocate clip list.\n"); + return E_OUTOFMEMORY; + } + + if (FAILED(hr = IDirectDrawClipper_GetClipList(&dst_surface->clipper->IDirectDrawClipper_iface, + &dst_rect, clip_list, &clip_list_size))) + { + WARN("Failed to get clip list, hr %#x.\n", hr); + return hr; + } + + clip_rect = (RECT *)clip_list->Buffer; + for (i = 0; i < clip_list->rdh.nCount; ++i) + { + RECT src_rect_clipped = src_rect; + + if (src_surface) + { + src_rect_clipped.left += (clip_rect[i].left - dst_rect.left) * scale_x; + src_rect_clipped.top += (clip_rect[i].top - dst_rect.top) * scale_y; + src_rect_clipped.right -= (dst_rect.right - clip_rect[i].right) * scale_x; + src_rect_clipped.bottom -= (dst_rect.bottom - clip_rect[i].bottom) * scale_y; + + if (src_surface->surface_desc.ddsCaps.dwCaps & DDSCAPS_FRONTBUFFER) + { + if (FAILED(hr = ddraw_surface_update_frontbuffer(src_surface, &src_rect_clipped, TRUE))) + break; + } + } + + if (FAILED(hr = wined3d_surface_blt(dst_surface->wined3d_surface, &clip_rect[i], + wined3d_src_surface, &src_rect_clipped, flags, fx, filter))) + break; + + if (dst_surface->surface_desc.ddsCaps.dwCaps & DDSCAPS_FRONTBUFFER) + { + if (FAILED(hr = ddraw_surface_update_frontbuffer(dst_surface, &clip_rect[i], FALSE))) + break; + } + } + + return hr; +} + /***************************************************************************** * IDirectDrawSurface7::Blt * @@ -1322,13 +1441,8 @@ static HRESULT WINAPI ddraw_surface7_Blt(IDirectDrawSurface7 *iface, RECT *DestR * does, copy the struct, and replace the ddraw surfaces with the wined3d * surfaces. So far no blitting operations using surfaces in the bltfx * struct are supported anyway. */ - if (Src && Src->surface_desc.ddsCaps.dwCaps & DDSCAPS_FRONTBUFFER) - hr = ddraw_surface_update_frontbuffer(Src, SrcRect, TRUE); - if (SUCCEEDED(hr)) - hr = wined3d_surface_blt(This->wined3d_surface, DestRect, Src ? Src->wined3d_surface : NULL, - SrcRect, Flags, (WINEDDBLTFX *)DDBltFx, WINED3DTEXF_LINEAR); - if (SUCCEEDED(hr) && (This->surface_desc.ddsCaps.dwCaps & DDSCAPS_FRONTBUFFER)) - hr = ddraw_surface_update_frontbuffer(This, DestRect, FALSE); + hr = ddraw_surface_blt_clipped(This, DestRect, Src, SrcRect, + Flags, (WINEDDBLTFX *)DDBltFx, WINED3DTEXF_LINEAR); wined3d_mutex_unlock(); switch(hr) @@ -3756,13 +3870,7 @@ static HRESULT WINAPI ddraw_surface7_BltFast(IDirectDrawSurface7 *iface, DWORD d flags |= WINEDDBLT_DONOTWAIT; wined3d_mutex_lock(); - if (src->surface_desc.ddsCaps.dwCaps & DDSCAPS_FRONTBUFFER) - hr = ddraw_surface_update_frontbuffer(src, rsrc, TRUE); - if (SUCCEEDED(hr)) - hr = wined3d_surface_blt(This->wined3d_surface, &dst_rect, - src->wined3d_surface, rsrc, flags, NULL, WINED3DTEXF_POINT); - if (SUCCEEDED(hr) && (This->surface_desc.ddsCaps.dwCaps & DDSCAPS_FRONTBUFFER)) - hr = ddraw_surface_update_frontbuffer(This, &dst_rect, FALSE); + hr = ddraw_surface_blt_clipped(This, &dst_rect, src, rsrc, flags, NULL, WINED3DTEXF_POINT); wined3d_mutex_unlock(); switch(hr)
1
0
0
0
Henri Verbeet : ddraw: Move clipper handling to ddraw.
by Alexandre Julliard
13 Dec '11
13 Dec '11
Module: wine Branch: master Commit: e6fb4537f00cd1e94ff11dd85b7b07b58245ec45 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e6fb4537f00cd1e94ff11dd85…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Dec 12 20:53:55 2011 +0100 ddraw: Move clipper handling to ddraw. --- dlls/ddraw/clipper.c | 304 ++++++++++++++++------------------------ dlls/ddraw/ddraw.c | 18 +-- dlls/ddraw/ddraw_private.h | 15 +-- dlls/ddraw/surface.c | 14 +-- dlls/wined3d/Makefile.in | 1 - dlls/wined3d/clipper.c | 161 --------------------- dlls/wined3d/surface.c | 23 +--- dlls/wined3d/wined3d.spec | 11 -- dlls/wined3d/wined3d_private.h | 10 -- include/wine/wined3d.h | 13 -- 10 files changed, 138 insertions(+), 432 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=e6fb4537f00cd1e94ff11…
1
0
0
0
← Newer
1
...
44
45
46
47
48
49
50
...
81
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
Results per page:
10
25
50
100
200