winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
July 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
838 discussions
Start a n
N
ew thread
Austin English : wine.inf: Create %systemroot%\logs directory by default.
by Alexandre Julliard
18 Jul '11
18 Jul '11
Module: wine Branch: master Commit: 2a708ee94db84276e4b72e13cbb124e67aa0fb9d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2a708ee94db84276e4b72e13c…
Author: Austin English <austinenglish(a)gmail.com> Date: Sat Jul 16 12:10:22 2011 -0500 wine.inf: Create %systemroot%\logs directory by default. --- tools/wine.inf.in | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tools/wine.inf.in b/tools/wine.inf.in index d9159dd..69124be 100644 --- a/tools/wine.inf.in +++ b/tools/wine.inf.in @@ -2600,6 +2600,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G" ; create some directories first 10,help, 10,inf, +10,logs, 10,temp, 11,mui, 11,spool\drivers\color,
1
0
0
0
Frédéric Delanoy : cmd/tests: Convert line endings to DOS style at runtime before running batch test file .
by Alexandre Julliard
18 Jul '11
18 Jul '11
Module: wine Branch: master Commit: 1cb7378e94bc15d8223af824f0d691fb478d0e08 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1cb7378e94bc15d8223af824f…
Author: Frédéric Delanoy <frederic.delanoy(a)gmail.com> Date: Sat Jul 16 10:14:50 2011 +0200 cmd/tests: Convert line endings to DOS style at runtime before running batch test file. --- programs/cmd/tests/batch.c | 43 ++++++++++++++++++++++++++++++------------- 1 files changed, 30 insertions(+), 13 deletions(-) diff --git a/programs/cmd/tests/batch.c b/programs/cmd/tests/batch.c index 03c2b56..2715b11 100644 --- a/programs/cmd/tests/batch.c +++ b/programs/cmd/tests/batch.c @@ -25,22 +25,39 @@ static char workdir[MAX_PATH]; static DWORD workdir_len; -/* Substitute escaped spaces with real ones */ -static const char* replace_escaped_spaces(const char *data, DWORD size, DWORD *new_size) +/* Convert to DOS line endings, and substitute escaped spaces with real ones */ +static const char* convert_input_data(const char *data, DWORD size, DWORD *new_size) { - static const char escaped_space[] = {'@','s','p','a','c','e','@','\0'}; + static const char escaped_space[] = {'@','s','p','a','c','e','@'}; + DWORD i, eol_count = 0; char *ptr, *new_data; - new_data = ptr = HeapAlloc(GetProcessHeap(), 0, size + 1); - memcpy( new_data, data, size ); - new_data[size] = 0; - - while ((ptr = strstr(ptr, escaped_space))) - { - char *end = ptr + sizeof(escaped_space) - 1; - *ptr++ = ' '; - memmove( ptr, end, strlen(end) + 1 ); + for (i = 0; i < size; i++) + if (data[i] == '\n') eol_count++; + + ptr = new_data = HeapAlloc(GetProcessHeap(), 0, size + eol_count + 1); + + for (i = 0; i < size; i++) { + switch (data[i]) { + case '\n': + *ptr++ = '\r'; + *ptr++ = '\n'; + break; + case '@': + if (data + i + sizeof(escaped_space) - 1 < data + size + && !memcmp(data + i, escaped_space, sizeof(escaped_space))) { + *ptr++ = ' '; + i += sizeof(escaped_space) - 1; + } else { + *ptr++ = data[i]; + } + break; + default: + *ptr++ = data[i]; + } } + *ptr = '\0'; + *new_size = strlen(new_data); return new_data; } @@ -233,7 +250,7 @@ static void run_test(const char *cmd_data, DWORD cmd_size, const char *exp_data, const char *out_data, *actual_cmd_data; DWORD out_size, actual_cmd_size; - actual_cmd_data = replace_escaped_spaces(cmd_data, cmd_size, &actual_cmd_size); + actual_cmd_data = convert_input_data(cmd_data, cmd_size, &actual_cmd_size); if(!actual_cmd_size || !actual_cmd_data) goto cleanup;
1
0
0
0
Vincent Povirk : gdiplus: Fix use of uninitialized memory.
by Alexandre Julliard
18 Jul '11
18 Jul '11
Module: wine Branch: master Commit: 171e832839c082b55e7e44161d82bd58aa3b056e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=171e832839c082b55e7e44161…
Author: Vincent Povirk <vincent(a)codeweavers.com> Date: Fri Jul 15 13:21:09 2011 -0500 gdiplus: Fix use of uninitialized memory. --- dlls/gdiplus/graphics.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 1e3f946..324b895 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -4713,6 +4713,9 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string args.graphics = graphics; args.brush = brush; + args.x = rect->X; + args.y = rect->Y; + args.rel_width = rel_width; args.rel_height = rel_height;
1
0
0
0
Rico Schüller : d3dx9: Implement D3DXGetShaderSamplers ().
by Alexandre Julliard
18 Jul '11
18 Jul '11
Module: wine Branch: master Commit: c42ee0339a8aa6069712059ccc6b3e72d10e9d2e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c42ee0339a8aa6069712059cc…
Author: Rico Schüller <kgbricola(a)web.de> Date: Fri Jul 15 10:52:36 2011 +0200 d3dx9: Implement D3DXGetShaderSamplers(). --- dlls/d3dx9_36/d3dx9_36.spec | 2 +- dlls/d3dx9_36/shader.c | 62 +++++++++++++++++++++++ dlls/d3dx9_36/tests/shader.c | 111 ++++++++++++++++++++++++++++++++++++++++++ include/d3dx9shader.h | 1 + 4 files changed, 175 insertions(+), 1 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=c42ee0339a8aa60697120…
1
0
0
0
Travis Athougies : d3dx9_36: Improved constant table handle support.
by Alexandre Julliard
18 Jul '11
18 Jul '11
Module: wine Branch: master Commit: 48d03555a7a6931ee8ba0952ccb92c70925c6bed URL:
http://source.winehq.org/git/wine.git/?a=commit;h=48d03555a7a6931ee8ba0952c…
Author: Travis Athougies <iammisc(a)gmail.com> Date: Thu Jul 14 14:06:49 2011 -0700 d3dx9_36: Improved constant table handle support. --- dlls/d3dx9_36/shader.c | 81 ++++++++++++++++++++++++++--------------------- 1 files changed, 45 insertions(+), 36 deletions(-) diff --git a/dlls/d3dx9_36/shader.c b/dlls/d3dx9_36/shader.c index 958c4e8..6a67f04 100644 --- a/dlls/d3dx9_36/shader.c +++ b/dlls/d3dx9_36/shader.c @@ -648,6 +648,33 @@ static DWORD calc_bytes(D3DXCONSTANT_DESC *desc) return 4 * desc->Elements * desc->Rows * desc->Columns; } +static ctab_constant *is_valid_constant(ID3DXConstantTableImpl *This, D3DXHANDLE parameter) +{ + UINT i; + + for (i = 0; i < This->desc.Constants; i++) + if ((ctab_constant *)parameter == &This->constants[i]) + return (ctab_constant *)parameter; + + return NULL; +} + +static ctab_constant *lookup_constant_by_name(ID3DXConstantTableImpl *This, ctab_constant *c, LPCSTR name) +{ + UINT i; + + TRACE("(%p, %p, %s)\n", This, c, name); + + if (c) + FIXME("Only top level constant supported\n"); + + for (i = 0; i < This->desc.Constants; i++) + if (!strcmp(This->constants[i].desc.Name, name)) + return &This->constants[i]; + + return NULL; +} + /*** IUnknown methods ***/ static HRESULT WINAPI ID3DXConstantTableImpl_QueryInterface(ID3DXConstantTable* iface, REFIID riid, void** ppvObject) { @@ -741,16 +768,13 @@ static HRESULT WINAPI ID3DXConstantTableImpl_GetConstantDesc(ID3DXConstantTable* return D3DERR_INVALIDCALL; /* Applications can pass the name of the constant in place of the handle */ - if (!((UINT_PTR)constant >> 16)) - constant_info = &This->constants[(UINT_PTR)constant - 1]; + if (is_valid_constant(This, constant)) + constant_info = (ctab_constant *)constant; else - { - D3DXHANDLE c = ID3DXConstantTable_GetConstantByName(iface, NULL, constant); - if (!c) - return D3DERR_INVALIDCALL; + constant_info = lookup_constant_by_name(This, NULL, (LPCSTR)constant); - constant_info = &This->constants[(UINT_PTR)c - 1]; - } + if (!constant_info) + return D3DERR_INVALIDCALL; if (desc) *desc = constant_info->desc; @@ -785,39 +809,33 @@ static D3DXHANDLE WINAPI ID3DXConstantTableImpl_GetConstant(ID3DXConstantTable* TRACE("(%p)->(%p, %d)\n", This, constant, index); - if (constant) + if (!constant) { - FIXME("Only top level constants supported\n"); - return NULL; - } + if (index >= This->desc.Constants) + return NULL; - if (index >= This->desc.Constants) + return (D3DXHANDLE)&This->constants[index]; + } + else + { + FIXME("Only top level constant supported\n"); return NULL; - - return (D3DXHANDLE)(DWORD_PTR)(index + 1); + } } static D3DXHANDLE WINAPI ID3DXConstantTableImpl_GetConstantByName(ID3DXConstantTable* iface, D3DXHANDLE constant, LPCSTR name) { ID3DXConstantTableImpl *This = impl_from_ID3DXConstantTable(iface); - UINT i; TRACE("(%p)->(%p, %s)\n", This, constant, name); if (!name) return NULL; - if (constant) - { - FIXME("Only top level constants supported\n"); + if (!constant || is_valid_constant(This, constant)) + return (D3DXHANDLE)lookup_constant_by_name(This, (ctab_constant *)constant, name); + else return NULL; - } - - for (i = 0; i < This->desc.Constants; i++) - if (!strcmp(This->constants[i].desc.Name, name)) - return (D3DXHANDLE)(DWORD_PTR)(i + 1); - - return NULL; } static D3DXHANDLE WINAPI ID3DXConstantTableImpl_GetConstantElement(ID3DXConstantTable* iface, D3DXHANDLE constant, UINT index) @@ -1217,13 +1235,6 @@ HRESULT WINAPI D3DXGetShaderConstantTableEx(CONST DWORD* byte_code, if (ctab_header->Target) TRACE("Target = %s\n", object->ctab + ctab_header->Target); - if (object->desc.Constants > 65535) - { - FIXME("Too many constants (%u)\n", object->desc.Constants); - hr = E_NOTIMPL; - goto error; - } - object->constants = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*object->constants) * object->desc.Constants); if (!object->constants) @@ -1255,9 +1266,7 @@ HRESULT WINAPI D3DXGetShaderConstantTableEx(CONST DWORD* byte_code, error: - HeapFree(GetProcessHeap(), 0, object->constants); - HeapFree(GetProcessHeap(), 0, object->ctab); - HeapFree(GetProcessHeap(), 0, object); + ID3DXConstantTableImpl_Release((ID3DXConstantTable *)object); return hr; }
1
0
0
0
Travis Athougies : d3dx9_36: Separate calculation of Bytes.
by Alexandre Julliard
18 Jul '11
18 Jul '11
Module: wine Branch: master Commit: c55caea1b3c6435c94e0cf3a1d95c7765e941ee2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c55caea1b3c6435c94e0cf3a1…
Author: Travis Athougies <iammisc(a)gmail.com> Date: Thu Jul 14 14:06:48 2011 -0700 d3dx9_36: Separate calculation of Bytes. --- dlls/d3dx9_36/shader.c | 26 ++++++++++---------------- 1 files changed, 10 insertions(+), 16 deletions(-) diff --git a/dlls/d3dx9_36/shader.c b/dlls/d3dx9_36/shader.c index c3ae172..958c4e8 100644 --- a/dlls/d3dx9_36/shader.c +++ b/dlls/d3dx9_36/shader.c @@ -639,6 +639,15 @@ static inline int is_vertex_shader(DWORD version) return (version & 0xFFFF0000) == 0xFFFE0000; } +static DWORD calc_bytes(D3DXCONSTANT_DESC *desc) +{ + if (desc->RegisterSet != D3DXRS_FLOAT4 && desc->RegisterSet != D3DXRS_SAMPLER) + FIXME("Don't know how to calculate Bytes for constants of type %d\n", + desc->RegisterSet); + + return 4 * desc->Elements * desc->Rows * desc->Columns; +} + /*** IUnknown methods ***/ static HRESULT WINAPI ID3DXConstantTableImpl_QueryInterface(ID3DXConstantTable* iface, REFIID riid, void** ppvObject) { @@ -1130,6 +1139,7 @@ static HRESULT parse_ctab_constant_type(const D3DXSHADER_TYPEINFO *type, ctab_co constant->desc.Columns = type->Columns; constant->desc.Elements = type->Elements; constant->desc.StructMembers = type->StructMembers; + constant->desc.Bytes = calc_bytes(&constant->desc); TRACE("class = %d, type = %d, rows = %d, columns = %d, elements = %d, struct_members = %d\n", constant->desc.Class, constant->desc.Type, constant->desc.Elements, @@ -1237,22 +1247,6 @@ HRESULT WINAPI D3DXGetShaderConstantTableEx(CONST DWORD* byte_code, &object->constants[i]); if (hr != D3D_OK) goto error; - - if (constant_info[i].RegisterSet != D3DXRS_FLOAT4 && - constant_info[i].RegisterSet != D3DXRS_SAMPLER) - FIXME("Don't know how to calculate Bytes for constants of type %d\n", - constant_info[i].RegisterSet); - - /* - * D3DXRS_FLOAT4 and D3DXRS_SAMPLER have a base size of 4 - * (not taking into account dimensions and element count) - */ - object->constants[i].desc.Bytes = 4; - - /* Take into account dimensions and elements */ - object->constants[i].desc.Bytes *= object->constants[i].desc.Elements; - object->constants[i].desc.Bytes *= object->constants[i].desc.Rows * - object->constants[i].desc.Columns; } *constant_table = &object->ID3DXConstantTable_iface;
1
0
0
0
Alexandre Julliard : winex11: Simplify a couple of BitBlt operation codes.
by Alexandre Julliard
18 Jul '11
18 Jul '11
Module: wine Branch: master Commit: 5ce421efbde9f482a4e2634db63467d4b7bfc7f7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5ce421efbde9f482a4e2634db…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Jul 18 11:38:20 2011 +0200 winex11: Simplify a couple of BitBlt operation codes. --- dlls/winex11.drv/bitblt.c | 34 +++++++++++++--------------------- 1 files changed, 13 insertions(+), 21 deletions(-) diff --git a/dlls/winex11.drv/bitblt.c b/dlls/winex11.drv/bitblt.c index 73ab7e8..9ecdbc9 100644 --- a/dlls/winex11.drv/bitblt.c +++ b/dlls/winex11.drv/bitblt.c @@ -79,20 +79,20 @@ static const unsigned char BITBLT_Opcodes[256][MAX_OP_LEN] = { OP(PAT,DST,GXand), OP(SRC,DST,GXnor) }, /* 0x13 ~(S|(D&P)) */ { OP(PAT,SRC,GXequiv), OP(SRC,DST,GXnor) }, /* 0x14 ~(D|~(P^S)) */ { OP(PAT,SRC,GXand), OP(SRC,DST,GXnor) }, /* 0x15 ~(D|(P&S)) */ - { OP(SRC,TMP,GXcopy), OP(PAT,TMP,GXnand), - OP(TMP,DST,GXand), OP(SRC,DST,GXxor), + { OP(SRC,TMP,GXcopy), OP(PAT,SRC,GXnand), + OP(SRC,DST,GXand), OP(TMP,DST,GXxor), OP(PAT,DST,GXxor) }, /* 0x16 P^S^(D&~(P&S) */ { OP(SRC,TMP,GXcopy), OP(SRC,DST,GXxor), OP(PAT,SRC,GXxor), OP(SRC,DST,GXand), OP(TMP,DST,GXequiv) }, /* 0x17 ~S^((S^P)&(S^D))*/ { OP(PAT,SRC,GXxor), OP(PAT,DST,GXxor), OP(SRC,DST,GXand) }, /* 0x18 (S^P)&(D^P) */ - { OP(SRC,TMP,GXcopy), OP(PAT,TMP,GXnand), - OP(TMP,DST,GXand), OP(SRC,DST,GXequiv) }, /* 0x19 ~S^(D&~(P&S)) */ + { OP(SRC,TMP,GXcopy), OP(PAT,SRC,GXnand), + OP(SRC,DST,GXand), OP(TMP,DST,GXequiv) }, /* 0x19 ~S^(D&~(P&S)) */ { OP(PAT,SRC,GXand), OP(SRC,DST,GXor), OP(PAT,DST,GXxor) }, /* 0x1a P^(D|(S&P)) */ - { OP(SRC,TMP,GXcopy), OP(PAT,TMP,GXxor), - OP(TMP,DST,GXand), OP(SRC,DST,GXequiv) }, /* 0x1b ~S^(D&(P^S)) */ + { OP(SRC,TMP,GXcopy), OP(PAT,SRC,GXxor), + OP(SRC,DST,GXand), OP(TMP,DST,GXequiv) }, /* 0x1b ~S^(D&(P^S)) */ { OP(PAT,DST,GXand), OP(SRC,DST,GXor), OP(PAT,DST,GXxor) }, /* 0x1c P^(S|(D&P)) */ { OP(DST,TMP,GXcopy), OP(PAT,DST,GXxor), @@ -107,13 +107,13 @@ static const unsigned char BITBLT_Opcodes[256][MAX_OP_LEN] = OP(SRC,DST,GXand) }, /* 0x24 (S^P)&(S^D) */ { OP(PAT,SRC,GXnand), OP(SRC,DST,GXand), OP(PAT,DST,GXequiv) }, /* 0x25 ~P^(D&~(S&P)) */ - { OP(SRC,TMP,GXcopy), OP(PAT,TMP,GXand), - OP(TMP,DST,GXor), OP(SRC,DST,GXxor) }, /* 0x26 S^(D|(S&P)) */ - { OP(SRC,TMP,GXcopy), OP(PAT,TMP,GXequiv), - OP(TMP,DST,GXor), OP(SRC,DST,GXxor) }, /* 0x27 S^(D|~(P^S)) */ + { OP(SRC,TMP,GXcopy), OP(PAT,SRC,GXand), + OP(SRC,DST,GXor), OP(TMP,DST,GXxor) }, /* 0x26 S^(D|(S&P)) */ + { OP(SRC,TMP,GXcopy), OP(PAT,SRC,GXequiv), + OP(SRC,DST,GXor), OP(TMP,DST,GXxor) }, /* 0x27 S^(D|~(P^S)) */ { OP(PAT,SRC,GXxor), OP(SRC,DST,GXand) }, /* 0x28 D&(P^S) */ - { OP(SRC,TMP,GXcopy), OP(PAT,TMP,GXand), - OP(TMP,DST,GXor), OP(SRC,DST,GXxor), + { OP(SRC,TMP,GXcopy), OP(PAT,SRC,GXand), + OP(SRC,DST,GXor), OP(TMP,DST,GXxor), OP(PAT,DST,GXequiv) }, /* 0x29 ~P^S^(D|(P&S)) */ { OP(PAT,SRC,GXnand), OP(SRC,DST,GXand) }, /* 0x2a D&~(P&S) */ { OP(SRC,TMP,GXcopy), OP(PAT,SRC,GXxor), @@ -528,7 +528,7 @@ static int do_bitop( int s, int d, int rop ) int main() { int rop, i, res, src, dst, pat, tmp, dstUsed; - const BYTE *opcode; + const unsigned char *opcode; for (rop = 0; rop < 256; rop++) { @@ -555,9 +555,6 @@ int main() dst = do_bitop( src, dst, *opcode & 0xf ); dstUsed = 1; break; - case OP_ARGS(PAT,TMP): - tmp = do_bitop( pat, tmp, *opcode & 0xf ); - break; case OP_ARGS(PAT,DST): dst = do_bitop( pat, dst, *opcode & 0xf ); dstUsed = 1; @@ -1389,11 +1386,6 @@ static void execute_rop( X11DRV_PDEVICE *physdev, Pixmap src_pixmap, GC gc, XCopyArea( gdi_display, pixmaps[OP_SRC(*opcode)], pixmaps[OP_DST(*opcode)], gc, 0, 0, width, height, 0, 0 ); break; - - case OP_ARGS(PAT,TMP): - if (!pixmaps[TMP] && !null_brush) - pixmaps[TMP] = XCreatePixmap( gdi_display, root_window, width, height, physdev->depth ); - /* fall through */ case OP_ARGS(PAT,DST): case OP_ARGS(PAT,SRC): if (!null_brush)
1
0
0
0
Alexandre Julliard : winex11: Avoid overflowing the source rectangle in StretchBlt.
by Alexandre Julliard
18 Jul '11
18 Jul '11
Module: wine Branch: master Commit: 1e2e45ce665700e74f905da1432fb61014d58289 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1e2e45ce665700e74f905da14…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Jul 18 16:22:57 2011 +0200 winex11: Avoid overflowing the source rectangle in StretchBlt. --- dlls/winex11.drv/bitblt.c | 17 +++++------------ 1 files changed, 5 insertions(+), 12 deletions(-) diff --git a/dlls/winex11.drv/bitblt.c b/dlls/winex11.drv/bitblt.c index 9ecdbc9..53f5c63 100644 --- a/dlls/winex11.drv/bitblt.c +++ b/dlls/winex11.drv/bitblt.c @@ -804,9 +804,7 @@ static void BITBLT_StretchImage( XImage *srcImage, XImage *dstImage, /* Retrieve a source row */ BITBLT_GetRow( srcImage, rowSrc, (ysrc >> 16) - visRectSrc->top, - hswap ? widthSrc - visRectSrc->right - : visRectSrc->left, - visRectSrc->right - visRectSrc->left, + visRectSrc->left, visRectSrc->right - visRectSrc->left, dstImage->depth, foreground, background, pixel_mask, hswap ); /* Stretch or shrink it */ @@ -814,9 +812,7 @@ static void BITBLT_StretchImage( XImage *srcImage, XImage *dstImage, BITBLT_StretchRow( rowSrc, rowDst, visRectDst->left, visRectDst->right - visRectDst->left, xinc, xoff, mode ); - else BITBLT_ShrinkRow( rowSrc, rowDst, - hswap ? widthSrc - visRectSrc->right - : visRectSrc->left, + else BITBLT_ShrinkRow( rowSrc, rowDst, visRectSrc->left, visRectSrc->right - visRectSrc->left, xinc, xoff, mode ); @@ -863,9 +859,7 @@ static void BITBLT_StretchImage( XImage *srcImage, XImage *dstImage, /* Retrieve a source row */ BITBLT_GetRow( srcImage, rowSrc, ysrc - visRectSrc->top, - hswap ? widthSrc - visRectSrc->right - : visRectSrc->left, - visRectSrc->right - visRectSrc->left, + visRectSrc->left, visRectSrc->right - visRectSrc->left, dstImage->depth, foreground, background, pixel_mask, hswap ); /* Stretch or shrink it */ @@ -873,9 +867,7 @@ static void BITBLT_StretchImage( XImage *srcImage, XImage *dstImage, BITBLT_StretchRow( rowSrc, rowDst, visRectDst->left, visRectDst->right - visRectDst->left, xinc, xoff, mode ); - else BITBLT_ShrinkRow( rowSrc, rowDst, - hswap ? widthSrc - visRectSrc->right - : visRectSrc->left, + else BITBLT_ShrinkRow( rowSrc, rowDst, visRectSrc->left, visRectSrc->right - visRectSrc->left, xinc, xoff, mode ); @@ -1474,6 +1466,7 @@ BOOL X11DRV_StretchBlt( PHYSDEV dst_dev, struct bitblt_coords *dst, GC tmpGC; if (IsRectEmpty( &dst->visrect )) return TRUE; + if (IsRectEmpty( &src->visrect )) return TRUE; fStretch = (src->width != dst->width) || (src->height != dst->height);
1
0
0
0
Alexandre Julliard : winex11: Don' t access the source rectangle in PutImage until needed.
by Alexandre Julliard
18 Jul '11
18 Jul '11
Module: wine Branch: master Commit: 55bc21938f5109c8bec7e59acbdcfb55b6fb4748 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=55bc21938f5109c8bec7e59ac…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Jul 15 19:57:31 2011 +0200 winex11: Don't access the source rectangle in PutImage until needed. --- dlls/winex11.drv/bitblt.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/winex11.drv/bitblt.c b/dlls/winex11.drv/bitblt.c index 880d71f..73ab7e8 100644 --- a/dlls/winex11.drv/bitblt.c +++ b/dlls/winex11.drv/bitblt.c @@ -1802,8 +1802,6 @@ DWORD X11DRV_PutImage( PHYSDEV dev, HBITMAP hbitmap, BITMAPINFO *info, const str struct gdi_image_bits dst_bits; const XPixmapFormatValues *format; const ColorShifts *color_shifts; - int width = rect->right - rect->left; - int height = rect->bottom - rect->top; if (hbitmap) { @@ -1866,6 +1864,9 @@ DWORD X11DRV_PutImage( PHYSDEV dev, HBITMAP hbitmap, BITMAPINFO *info, const str if (!ret) { + int width = rect->right - rect->left; + int height = rect->bottom - rect->top; + image->data = dst_bits.ptr; if (bitmap) {
1
0
0
0
Alexandre Julliard : gdi32: Use the original StretchBlt rectangle if a DC doesn' t have a visible region.
by Alexandre Julliard
18 Jul '11
18 Jul '11
Module: wine Branch: master Commit: a64a549b4c644d9dd0a5227419ec246cfceb45a2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a64a549b4c644d9dd0a522741…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Jul 15 20:15:25 2011 +0200 gdi32: Use the original StretchBlt rectangle if a DC doesn't have a visible region. --- dlls/gdi32/bitblt.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/gdi32/bitblt.c b/dlls/gdi32/bitblt.c index a99efc7..da22507 100644 --- a/dlls/gdi32/bitblt.c +++ b/dlls/gdi32/bitblt.c @@ -89,8 +89,10 @@ static void get_vis_rectangles( DC *dc_dst, struct bitblt_coords *dst, if (rect.left > rect.right) { swap_ints( &rect.left, &rect.right ); rect.left++; rect.right++; } if (rect.top > rect.bottom) { swap_ints( &rect.top, &rect.bottom ); rect.top++; rect.bottom++; } - get_clip_box( dc_dst, &clip ); - intersect_rect( &dst->visrect, &rect, &clip ); + if (get_clip_box( dc_dst, &clip )) + intersect_rect( &dst->visrect, &rect, &clip ); + else + dst->visrect = rect; /* get the source visible rectangle */
1
0
0
0
← Newer
1
...
39
40
41
42
43
44
45
...
84
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
Results per page:
10
25
50
100
200