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
Marcus Meissner : gdiplus: Check return values of GdipCreateMatrix(2) ( Coverity).
by Alexandre Julliard
14 Jul '11
14 Jul '11
Module: wine Branch: master Commit: f0392c77bc0eb59f1e0212a1a160f625d70cd5f9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f0392c77bc0eb59f1e0212a1a…
Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Thu Jul 14 08:45:01 2011 +0200 gdiplus: Check return values of GdipCreateMatrix(2) (Coverity). --- dlls/gdiplus/tests/graphics.c | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/dlls/gdiplus/tests/graphics.c b/dlls/gdiplus/tests/graphics.c index 3df57f1..0d31365 100644 --- a/dlls/gdiplus/tests/graphics.c +++ b/dlls/gdiplus/tests/graphics.c @@ -546,8 +546,9 @@ static void test_BeginContainer2(void) status = GdipBeginContainer2(graphics, &cont1); expect(Ok, status); - GdipCreateMatrix2(defTrans[0], defTrans[1], defTrans[2], defTrans[3], + status = GdipCreateMatrix2(defTrans[0], defTrans[1], defTrans[2], defTrans[3], defTrans[4], defTrans[5], &transform); + expect(Ok, status); GdipSetWorldTransform(graphics, transform); GdipDeleteMatrix(transform); transform = NULL; @@ -555,7 +556,8 @@ static void test_BeginContainer2(void) status = GdipBeginContainer2(graphics, &cont2); expect(Ok, status); - GdipCreateMatrix2(10, 20, 30, 40, 50, 60, &transform); + status = GdipCreateMatrix2(10, 20, 30, 40, 50, 60, &transform); + expect(Ok, status); GdipSetWorldTransform(graphics, transform); GdipDeleteMatrix(transform); transform = NULL; @@ -563,7 +565,8 @@ static void test_BeginContainer2(void) status = GdipEndContainer(graphics, cont2); expect(Ok, status); - GdipCreateMatrix(&transform); + status = GdipCreateMatrix(&transform); + expect(Ok, status); GdipGetWorldTransform(graphics, transform); GdipGetMatrixElements(transform, elems); ok(fabs(defTrans[0] - elems[0]) < 0.0001 && @@ -1430,7 +1433,8 @@ static void test_Get_Release_DC(void) rectf[i].Width = (REAL)rect[i].Width; } - GdipCreateMatrix(&m); + status = GdipCreateMatrix(&m); + expect(Ok, status); GdipCreateRegion(®ion); GdipCreateSolidFill((ARGB)0xdeadbeef, &brush); GdipCreatePath(FillModeAlternate, &path); @@ -3036,7 +3040,8 @@ static void test_string_functions(void) for (i=0; i<4; i++) GdipDeleteRegion(regions[i]); - GdipCreateMatrix(&identity); + status = GdipCreateMatrix(&identity); + expect(Ok, status); position.X = 0; position.Y = 0;
1
0
0
0
Marcus Meissner : shell32: Check error return in get_known_folder_path ( Coverity).
by Alexandre Julliard
14 Jul '11
14 Jul '11
Module: wine Branch: master Commit: a05ba2b9de7dcbc454f9d04cf1b3df4dffea57a6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a05ba2b9de7dcbc454f9d04cf…
Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Thu Jul 14 08:45:00 2011 +0200 shell32: Check error return in get_known_folder_path (Coverity). --- dlls/shell32/shellpath.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/dlls/shell32/shellpath.c b/dlls/shell32/shellpath.c index 58e2006..4b14739 100644 --- a/dlls/shell32/shellpath.c +++ b/dlls/shell32/shellpath.c @@ -3422,9 +3422,14 @@ static HRESULT get_known_folder_path( if(hr == S_OK) { /* get parent's known folder path (recursive) */ - get_known_folder_registry_path(NULL, parentGuid, &parentRegistryPath); + hr = get_known_folder_registry_path(NULL, parentGuid, &parentRegistryPath); + if(!SUCCEEDED(hr)) return hr; hr = get_known_folder_path(parentGuid, parentRegistryPath, &parentPath); + if(!SUCCEEDED(hr)) { + HeapFree(GetProcessHeap(), 0, parentRegistryPath); + return hr; + } lstrcatW(path, parentPath); lstrcatW(path, sBackslash);
1
0
0
0
Marcus Meissner : dinput: const REFIID is duplicate const (Coverity).
by Alexandre Julliard
14 Jul '11
14 Jul '11
Module: wine Branch: master Commit: 3dc66a9d6dbeaa0b9a4bab26122ad562631412cc URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3dc66a9d6dbeaa0b9a4bab261…
Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Thu Jul 14 08:44:59 2011 +0200 dinput: const REFIID is duplicate const (Coverity). --- dlls/dinput/tests/dinput.c | 24 ++++++++++++------------ dlls/dinput8/tests/dinput.c | 20 ++++++++++---------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/dlls/dinput/tests/dinput.c b/dlls/dinput/tests/dinput.c index 34f5a91..90a8266 100644 --- a/dlls/dinput/tests/dinput.c +++ b/dlls/dinput/tests/dinput.c @@ -201,16 +201,16 @@ static void test_DirectInputCreateEx(void) {TRUE, DIRECTINPUT_VERSION + 1, &IID_IDirectInputA, TRUE, DIERR_OLDDIRECTINPUTVERSION, NULL}, }; - static const REFIID no_interface_list[] = {&IID_IUnknown, &IID_IDirectInput8A, - &IID_IDirectInput8W, &IID_IDirectInputDeviceA, - &IID_IDirectInputDeviceW, &IID_IDirectInputDevice2A, - &IID_IDirectInputDevice2W, &IID_IDirectInputDevice7A, - &IID_IDirectInputDevice7W, &IID_IDirectInputDevice8A, - &IID_IDirectInputDevice8W, &IID_IDirectInputEffect}; + static REFIID no_interface_list[] = {&IID_IUnknown, &IID_IDirectInput8A, + &IID_IDirectInput8W, &IID_IDirectInputDeviceA, + &IID_IDirectInputDeviceW, &IID_IDirectInputDevice2A, + &IID_IDirectInputDevice2W, &IID_IDirectInputDevice7A, + &IID_IDirectInputDevice7W, &IID_IDirectInputDevice8A, + &IID_IDirectInputDevice8W, &IID_IDirectInputEffect}; - static const REFIID iid_list[] = {&IID_IDirectInputA, &IID_IDirectInputW, - &IID_IDirectInput2A, &IID_IDirectInput2W, - &IID_IDirectInput7A, &IID_IDirectInput7W}; + static REFIID iid_list[] = {&IID_IDirectInputA, &IID_IDirectInputW, + &IID_IDirectInput2A, &IID_IDirectInput2W, + &IID_IDirectInput7A, &IID_IDirectInput7W}; int i, j; IUnknown *pUnk; @@ -270,9 +270,9 @@ static void test_DirectInputCreateEx(void) static void test_QueryInterface(void) { - static const REFIID iid_list[] = {&IID_IUnknown, &IID_IDirectInputA, &IID_IDirectInputW, - &IID_IDirectInput2A, &IID_IDirectInput2W, - &IID_IDirectInput7A, &IID_IDirectInput7W}; + static REFIID iid_list[] = {&IID_IUnknown, &IID_IDirectInputA, &IID_IDirectInputW, + &IID_IDirectInput2A, &IID_IDirectInput2W, + &IID_IDirectInput7A, &IID_IDirectInput7W}; static const struct { diff --git a/dlls/dinput8/tests/dinput.c b/dlls/dinput8/tests/dinput.c index 5f61634..88c4c5a 100644 --- a/dlls/dinput8/tests/dinput.c +++ b/dlls/dinput8/tests/dinput.c @@ -176,16 +176,16 @@ static void test_DirectInput8Create(void) {TRUE, DIRECTINPUT_VERSION + 1, &IID_IDirectInput8A, TRUE, DIERR_OLDDIRECTINPUTVERSION}, }; - static const REFIID no_interface_list[] = {&IID_IDirectInputA, &IID_IDirectInputW, - &IID_IDirectInput2A, &IID_IDirectInput2W, - &IID_IDirectInput7A, &IID_IDirectInput7W, - &IID_IDirectInputDeviceA, &IID_IDirectInputDeviceW, - &IID_IDirectInputDevice2A, &IID_IDirectInputDevice2W, - &IID_IDirectInputDevice7A, &IID_IDirectInputDevice7W, - &IID_IDirectInputDevice8A, &IID_IDirectInputDevice8W, - &IID_IDirectInputEffect}; + static REFIID no_interface_list[] = {&IID_IDirectInputA, &IID_IDirectInputW, + &IID_IDirectInput2A, &IID_IDirectInput2W, + &IID_IDirectInput7A, &IID_IDirectInput7W, + &IID_IDirectInputDeviceA, &IID_IDirectInputDeviceW, + &IID_IDirectInputDevice2A, &IID_IDirectInputDevice2W, + &IID_IDirectInputDevice7A, &IID_IDirectInputDevice7W, + &IID_IDirectInputDevice8A, &IID_IDirectInputDevice8W, + &IID_IDirectInputEffect}; - static const REFIID iid_list[] = {&IID_IUnknown, &IID_IDirectInput8A, &IID_IDirectInput8W}; + static REFIID iid_list[] = {&IID_IUnknown, &IID_IDirectInput8A, &IID_IDirectInput8W}; int i; IUnknown *pUnk; @@ -225,7 +225,7 @@ static void test_DirectInput8Create(void) static void test_QueryInterface(void) { - static const REFIID iid_list[] = {&IID_IUnknown, &IID_IDirectInput8A, &IID_IDirectInput8W}; + static REFIID iid_list[] = {&IID_IUnknown, &IID_IDirectInput8A, &IID_IDirectInput8W}; static const struct {
1
0
0
0
Lucas Fialho Zawacki : dinput: Corrected misuse of index in EnumDevicesBySemantics.
by Alexandre Julliard
14 Jul '11
14 Jul '11
Module: wine Branch: master Commit: 4958db8ebae1acfaa7828cec719ae1af375dad72 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4958db8ebae1acfaa7828cec7…
Author: Lucas Fialho Zawacki <lfzawacki(a)gmail.com> Date: Wed Jul 13 20:54:57 2011 -0300 dinput: Corrected misuse of index in EnumDevicesBySemantics. --- dlls/dinput/dinput_main.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/dinput/dinput_main.c b/dlls/dinput/dinput_main.c index 821a9a0..b653307 100644 --- a/dlls/dinput/dinput_main.c +++ b/dlls/dinput/dinput_main.c @@ -902,7 +902,7 @@ static HRESULT WINAPI IDirectInput8AImpl_EnumDevicesBySemantics( /* If there's at least one action for the device it's priority 1 */ for(j=0; j < lpdiActionFormat->dwActionSize; j++) - if ((lpdiActionFormat->rgoAction[j].dwSemantic & actionMasks[j]) == actionMasks[j]) + if ((lpdiActionFormat->rgoAction[j].dwSemantic & actionMasks[i]) == actionMasks[i]) callbackFlags |= DIEDBS_MAPPEDPRI1; if (lpCallback(&didevi, lpdid, callbackFlags, sizeof(guids)/sizeof(guids[0]) - (i+1), pvRef) == DIENUM_STOP) @@ -967,7 +967,7 @@ static HRESULT WINAPI IDirectInput8WImpl_EnumDevicesBySemantics( /* If there's at least one action for the device it's priority 1 */ for(j=0; j < lpdiActionFormat->dwActionSize; j++) - if ((lpdiActionFormat->rgoAction[j].dwSemantic & actionMasks[j]) == actionMasks[j]) + if ((lpdiActionFormat->rgoAction[j].dwSemantic & actionMasks[i]) == actionMasks[i]) callbackFlags |= DIEDBS_MAPPEDPRI1; if (lpCallback(&didevi, lpdid, callbackFlags, sizeof(guids)/sizeof(guids[0]) - (i+1), pvRef) == DIENUM_STOP)
1
0
0
0
Henri Verbeet : wined3d: Pass a wined3d_state pointer to state handlers.
by Alexandre Julliard
14 Jul '11
14 Jul '11
Module: wine Branch: master Commit: e4d2d785006ef174c2db73ffb7143170f14372a6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e4d2d785006ef174c2db73ffb…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Jul 14 01:02:48 2011 +0200 wined3d: Pass a wined3d_state pointer to state handlers. Instead of an entire stateblock. This is mainly useful is we ever want to call state handlers on state not stored in a stateblock. --- dlls/wined3d/arb_program_shader.c | 125 ++-- dlls/wined3d/ati_fragment_shader.c | 65 +- dlls/wined3d/context.c | 15 +- dlls/wined3d/nvidia_texture_shader.c | 33 +- dlls/wined3d/state.c | 1198 +++++++++++++++++----------------- dlls/wined3d/utils.c | 24 +- dlls/wined3d/wined3d_private.h | 54 +- 7 files changed, 752 insertions(+), 762 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=e4d2d785006ef174c2db7…
1
0
0
0
Henri Verbeet : wined3d: Make the context and device parameters to find_draw_buffers_mask() const.
by Alexandre Julliard
14 Jul '11
14 Jul '11
Module: wine Branch: master Commit: 9375a87c86796ce9363b802a894e2386c196c142 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9375a87c86796ce9363b802a8…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Jul 14 01:02:47 2011 +0200 wined3d: Make the context and device parameters to find_draw_buffers_mask() const. --- dlls/wined3d/context.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index e1e0d87..306d2f7 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -2149,7 +2149,7 @@ BOOL context_apply_clear_state(struct wined3d_context *context, struct wined3d_d return TRUE; } -static DWORD find_draw_buffers_mask(struct wined3d_context *context, struct wined3d_device *device) +static DWORD find_draw_buffers_mask(const struct wined3d_context *context, const struct wined3d_device *device) { const struct wined3d_state *state = &device->stateBlock->state; struct wined3d_surface **rts = state->fb->render_targets;
1
0
0
0
Henri Verbeet : wined3d: Get rid of the clip status code.
by Alexandre Julliard
14 Jul '11
14 Jul '11
Module: wine Branch: master Commit: 565fcbdfb88971973a612e66408bfb2fdc031f8a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=565fcbdfb88971973a612e664…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Jul 14 01:02:46 2011 +0200 wined3d: Get rid of the clip status code. I'm pretty sure this is just broken, and I'm not aware of any application using this. --- dlls/wined3d/device.c | 6 ------ dlls/wined3d/state.c | 12 ------------ dlls/wined3d/stateblock.c | 4 ---- dlls/wined3d/wined3d_private.h | 1 - 4 files changed, 0 insertions(+), 23 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index b2dd89a..4f7ab3b 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -2242,9 +2242,6 @@ HRESULT CDECL wined3d_device_set_clip_status(struct wined3d_device *device, cons if (!clip_status) return WINED3DERR_INVALIDCALL; - device->updateStateBlock->state.clip_status.ClipUnion = clip_status->ClipUnion; - device->updateStateBlock->state.clip_status.ClipIntersection = clip_status->ClipIntersection; - return WINED3D_OK; } @@ -2255,9 +2252,6 @@ HRESULT CDECL wined3d_device_get_clip_status(struct wined3d_device *device, WINE if (!clip_status) return WINED3DERR_INVALIDCALL; - clip_status->ClipUnion = device->updateStateBlock->state.clip_status.ClipUnion; - clip_status->ClipIntersection = device->updateStateBlock->state.clip_status.ClipIntersection; - return WINED3D_OK; } diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index ee521a4..42a7a31 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -573,18 +573,6 @@ static void state_clipping(DWORD state_id, struct wined3d_stateblock *stateblock if (disable & WINED3DCLIPPLANE3) { glDisable(GL_CLIP_PLANE3); checkGLcall("glDisable(clip plane 3)"); } if (disable & WINED3DCLIPPLANE4) { glDisable(GL_CLIP_PLANE4); checkGLcall("glDisable(clip plane 4)"); } if (disable & WINED3DCLIPPLANE5) { glDisable(GL_CLIP_PLANE5); checkGLcall("glDisable(clip plane 5)"); } - - /** update clipping status */ - if (enable) - { - stateblock->state.clip_status.ClipUnion = 0; - stateblock->state.clip_status.ClipIntersection = 0xFFFFFFFF; - } - else - { - stateblock->state.clip_status.ClipUnion = 0; - stateblock->state.clip_status.ClipIntersection = 0; - } } static void state_blendop_w(DWORD state, struct wined3d_stateblock *stateblock, struct wined3d_context *context) diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c index a9baa0e..6764b23 100644 --- a/dlls/wined3d/stateblock.c +++ b/dlls/wined3d/stateblock.c @@ -1233,10 +1233,6 @@ void stateblock_init_default_state(struct wined3d_stateblock *stateblock) state->render_states[WINED3DRS_DESTBLENDALPHA] = WINED3DBLEND_ZERO; state->render_states[WINED3DRS_BLENDOPALPHA] = WINED3DBLENDOP_ADD; - /* clipping status */ - state->clip_status.ClipUnion = 0; - state->clip_status.ClipIntersection = 0xFFFFFFFF; - /* Texture Stage States - Put directly into state block, we will call function below */ for (i = 0; i < MAX_TEXTURES; ++i) { diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index dc036fc..da01906 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -2265,7 +2265,6 @@ struct wined3d_state WINED3DMATRIX transforms[HIGHEST_TRANSFORMSTATE + 1]; double clip_planes[MAX_CLIPPLANES][4]; - WINED3DCLIPSTATUS clip_status; WINED3DMATERIAL material; WINED3DVIEWPORT viewport; RECT scissor_rect;
1
0
0
0
Henri Verbeet : wined3d: Remove the unused untransformed field from struct wined3d_device.
by Alexandre Julliard
14 Jul '11
14 Jul '11
Module: wine Branch: master Commit: 5e83efa1b2217243b0e0a1d5698ee43b6950af96 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5e83efa1b2217243b0e0a1d56…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Jul 14 01:02:45 2011 +0200 wined3d: Remove the unused untransformed field from struct wined3d_device. --- dlls/wined3d/state.c | 12 ++---------- dlls/wined3d/wined3d_private.h | 3 +-- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index 7115314..ee521a4 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -4544,7 +4544,7 @@ static void vertexdeclaration(DWORD state_id, struct wined3d_stateblock *statebl { const struct wined3d_gl_info *gl_info = context->gl_info; const struct wined3d_state *state = &stateblock->state; - struct wined3d_device *device = stateblock->device; + const struct wined3d_device *device = stateblock->device; BOOL useVertexShaderFunction = use_vs(state); BOOL usePixelShaderFunction = use_ps(state); BOOL updateFog = FALSE; @@ -4556,15 +4556,7 @@ static void vertexdeclaration(DWORD state_id, struct wined3d_stateblock *statebl if (transformed != context->last_was_rhw && !useVertexShaderFunction) updateFog = TRUE; - if (transformed) { - context->last_was_rhw = TRUE; - } else { - - /* Untransformed, so relies on the view and projection matrices */ - context->last_was_rhw = FALSE; - /* This turns off the Z scale trick to 'disable' viewport frustum clipping in rhw mode*/ - device->untransformed = TRUE; - } + context->last_was_rhw = transformed; /* Don't have to apply the matrices when vertex shaders are used. When vshaders are turned * off this function will be called again anyway to make sure they're properly set diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index 10a35b9..dc036fc 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -1654,7 +1654,6 @@ struct wined3d_device DWORD vs_clipping; WORD view_ident : 1; /* true iff view matrix is identity */ - WORD untransformed : 1; WORD vertexBlendUsed : 1; /* To avoid needless setting of the blend matrices */ WORD isRecordingState : 1; WORD isInDraw : 1; @@ -1665,7 +1664,7 @@ struct wined3d_device WORD useDrawStridedSlow : 1; WORD instancedDraw : 1; WORD filter_messages : 1; - WORD padding : 4; + WORD padding : 5; BYTE fixed_function_usage_map; /* MAX_TEXTURES, 8 */
1
0
0
0
Henri Verbeet : wined3d: Store a pointer to the framebuffer state in struct wined3d_state.
by Alexandre Julliard
14 Jul '11
14 Jul '11
Module: wine Branch: master Commit: fcf4303e1a4bfacc97aea184ca0a57c44a389e0e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fcf4303e1a4bfacc97aea184c…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Jul 14 01:02:44 2011 +0200 wined3d: Store a pointer to the framebuffer state in struct wined3d_state. --- dlls/wined3d/arb_program_shader.c | 18 +++--- dlls/wined3d/context.c | 17 ++++--- dlls/wined3d/shader.c | 2 +- dlls/wined3d/state.c | 101 ++++++++++++++++++++----------------- dlls/wined3d/stateblock.c | 2 + dlls/wined3d/utils.c | 2 +- dlls/wined3d/wined3d_private.h | 2 + 7 files changed, 79 insertions(+), 65 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=fcf4303e1a4bfacc97aea…
1
0
0
0
Alexandre Julliard : winex11: Add support for bottom-up format in PutImage.
by Alexandre Julliard
14 Jul '11
14 Jul '11
Module: wine Branch: master Commit: eeb3625dce04836fb33dcaad32cb2d843e09c685 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=eeb3625dce04836fb33dcaad3…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Jul 14 13:09:38 2011 +0200 winex11: Add support for bottom-up format in PutImage. --- dlls/winex11.drv/bitblt.c | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/dlls/winex11.drv/bitblt.c b/dlls/winex11.drv/bitblt.c index d76ceba..f252e42 100644 --- a/dlls/winex11.drv/bitblt.c +++ b/dlls/winex11.drv/bitblt.c @@ -1641,8 +1641,8 @@ static DWORD copy_image_bits( BITMAPINFO *info, const ColorShifts *color_shifts, const struct gdi_image_bits *src_bits, struct gdi_image_bits *dst_bits ) { BOOL need_byteswap; - int x, y, height = -info->bmiHeader.biHeight; - unsigned int width_bytes = image->bytes_per_line; + int x, y, height = abs(info->bmiHeader.biHeight); + int width_bytes = image->bytes_per_line; unsigned char *src, *dst; switch (info->bmiHeader.biBitCount) @@ -1666,7 +1666,7 @@ static DWORD copy_image_bits( BITMAPINFO *info, const ColorShifts *color_shifts, break; } - if ((need_byteswap && !src_bits->is_copy) || (width_bytes & 3)) + if ((need_byteswap && !src_bits->is_copy) || (width_bytes & 3) || (info->bmiHeader.biHeight > 0)) { width_bytes = (width_bytes + 3) & ~3; info->bmiHeader.biSizeImage = height * width_bytes; @@ -1689,6 +1689,12 @@ static DWORD copy_image_bits( BITMAPINFO *info, const ColorShifts *color_shifts, src = src_bits->ptr; dst = dst_bits->ptr; + if (info->bmiHeader.biHeight > 0) + { + dst += (height - 1) * width_bytes; + width_bytes = -width_bytes; + } + if (need_byteswap) { switch (info->bmiHeader.biBitCount) @@ -1768,7 +1774,6 @@ DWORD X11DRV_PutImage( PHYSDEV dev, HBITMAP hbitmap, BITMAPINFO *info, const str if (info->bmiHeader.biPlanes != 1) goto update_format; if (info->bmiHeader.biBitCount != format->bits_per_pixel) goto update_format; - if (info->bmiHeader.biHeight > 0) goto update_format; /* bottom-up not supported */ /* FIXME: could try to handle 1-bpp using XCopyPlane */ if (info->bmiHeader.biCompression == BI_BITFIELDS) @@ -1804,7 +1809,7 @@ DWORD X11DRV_PutImage( PHYSDEV dev, HBITMAP hbitmap, BITMAPINFO *info, const str wine_tsx11_lock(); image = XCreateImage( gdi_display, visual, depth, ZPixmap, 0, NULL, - info->bmiHeader.biWidth, -info->bmiHeader.biHeight, 32, 0 ); + info->bmiHeader.biWidth, abs(info->bmiHeader.biHeight), 32, 0 ); wine_tsx11_unlock(); if (!image) return ERROR_OUTOFMEMORY;
1
0
0
0
← Newer
1
...
46
47
48
49
50
51
52
...
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