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
April 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
3 participants
937 discussions
Start a n
N
ew thread
Alexandre Julliard : winetest: Do not count test runs with no results as a success for the index page.
by Alexandre Julliard
21 Apr '11
21 Apr '11
Module: tools Branch: master Commit: 7b4fd493ca841a7a1b18563533d6b481f4da48da URL:
http://source.winehq.org/git/tools.git/?a=commit;h=7b4fd493ca841a7a1b185635…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Apr 21 11:57:59 2011 +0200 winetest: Do not count test runs with no results as a success for the index page. --- winetest/gather | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/winetest/gather b/winetest/gather index 8a538d9..ab5e41f 100755 --- a/winetest/gather +++ b/winetest/gather @@ -291,6 +291,7 @@ foreach my $group (@groups) { $report->{errors} = 0; $report->{successes} = 0; $report->{todos} = 0; + $report->{runs} = 0; foreach my $testname (sort keys %alltests) { my $result = $report->{$testname}; if ($result->{status} !~ /^(?:dll missing|run|skipped)$/ or @@ -304,10 +305,14 @@ foreach my $group (@groups) { { $report->{todos}++; } + if ($result->{status} !~ /^(?:dll missing|skipped)$/) + { + $report->{runs}++; + } } } foreach my $report (@{$group->{reports}}) { - $group->{successes}++ if !$report->{errors}; + $group->{successes}++ if !$report->{errors} && $report->{runs}; } }
1
0
0
0
Alexandre Julliard : winetest: Ignore user-skipped tests also when merging with a missing dll case.
by Alexandre Julliard
21 Apr '11
21 Apr '11
Module: tools Branch: master Commit: 0c6f3aa99c46ea7ac965683b0e613e4241b4bf4b URL:
http://source.winehq.org/git/tools.git/?a=commit;h=0c6f3aa99c46ea7ac965683b…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Apr 21 11:51:55 2011 +0200 winetest: Ignore user-skipped tests also when merging with a missing dll case. --- winetest/gather | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/winetest/gather b/winetest/gather index ccce11c..8a538d9 100755 --- a/winetest/gather +++ b/winetest/gather @@ -209,11 +209,15 @@ sub merge_status($$) my ($group_result, $result) = @_; if (!defined $group_result->{status}) { $group_result->{status} = $result->{status}; - } elsif ($group_result->{status} =~ /^(dll missing|skipped)$/ and + } elsif ($group_result->{status} eq "skipped") { + $group_result->{status} = $result->{status}; + } elsif ($result->{status} eq "skipped") { + ; # Nothing to do + } elsif ($group_result->{status} eq "dll missing" and $result->{status} eq "run") { $group_result->{status} = "run"; } elsif ($group_result->{status} eq "run" and - $result->{status} =~ /^(dll missing|skipped)$/) { + $result->{status} eq "dll missing") { ; # Nothing to do } elsif ($group_result->{status} ne $result->{status}) { $group_result->{status} = "mixed";
1
0
0
0
Dmitry Timoshkov : winex11.drv: Make sure that all relevant keyboard traces are printed in the same debug channel .
by Alexandre Julliard
20 Apr '11
20 Apr '11
Module: wine Branch: master Commit: f339b6c0f166a2117f78010e79fe622138db07dd URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f339b6c0f166a2117f78010e7…
Author: Dmitry Timoshkov <dmitry(a)codeweavers.com> Date: Wed Apr 20 18:57:38 2011 +0900 winex11.drv: Make sure that all relevant keyboard traces are printed in the same debug channel. --- dlls/winex11.drv/keyboard.c | 34 +++++++++++++++++----------------- 1 files changed, 17 insertions(+), 17 deletions(-) diff --git a/dlls/winex11.drv/keyboard.c b/dlls/winex11.drv/keyboard.c index 4185025..42ca462 100644 --- a/dlls/winex11.drv/keyboard.c +++ b/dlls/winex11.drv/keyboard.c @@ -1144,7 +1144,7 @@ static void X11DRV_send_keyboard_input( HWND hwnd, WORD vkey, WORD scan, DWORD f { INPUT input; - TRACE_(key)( "vkey=%04x scan=%04x flags=%04x\n", vkey, scan, flags ); + TRACE_(key)( "hwnd %p vkey=%04x scan=%04x flags=%04x\n", hwnd, vkey, scan, flags ); input.type = INPUT_KEYBOARD; input.u.ki.wVk = vkey; @@ -1295,13 +1295,13 @@ void X11DRV_KeyEvent( HWND hwnd, XEvent *xev ) if (xic && event->type == KeyPress) { ascii_chars = XmbLookupString(xic, event, buf, sizeof(buf), &keysym, &status); - TRACE("XmbLookupString needs %i byte(s)\n", ascii_chars); + TRACE_(key)("XmbLookupString needs %i byte(s)\n", ascii_chars); if (status == XBufferOverflow) { Str = HeapAlloc(GetProcessHeap(), 0, ascii_chars); if (Str == NULL) { - ERR("Failed to allocate memory!\n"); + ERR_(key)("Failed to allocate memory!\n"); wine_tsx11_unlock(); return; } @@ -2402,16 +2402,16 @@ INT CDECL X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, const BYTE *lpKeyState if (scanCode & 0x8000) { - TRACE("Key UP, doing nothing\n" ); + TRACE_(key)("Key UP, doing nothing\n" ); return 0; } if (!match_x11_keyboard_layout(hkl)) - FIXME("keyboard layout %p is not supported\n", hkl); + FIXME_(key)("keyboard layout %p is not supported\n", hkl); if ((lpKeyState[VK_MENU] & 0x80) && (lpKeyState[VK_CONTROL] & 0x80)) { - TRACE("Ctrl+Alt+[key] won't generate a character\n"); + TRACE_(key)("Ctrl+Alt+[key] won't generate a character\n"); return 0; } @@ -2432,27 +2432,27 @@ INT CDECL X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, const BYTE *lpKeyState if (lpKeyState[VK_SHIFT] & 0x80) { - TRACE("ShiftMask = %04x\n", ShiftMask); + TRACE_(key)("ShiftMask = %04x\n", ShiftMask); e.state |= ShiftMask; } if (lpKeyState[VK_CAPITAL] & 0x01) { - TRACE("LockMask = %04x\n", LockMask); + TRACE_(key)("LockMask = %04x\n", LockMask); e.state |= LockMask; } if (lpKeyState[VK_CONTROL] & 0x80) { - TRACE("ControlMask = %04x\n", ControlMask); + TRACE_(key)("ControlMask = %04x\n", ControlMask); e.state |= ControlMask; } if (lpKeyState[VK_NUMLOCK] & 0x01) { - TRACE("NumLockMask = %04x\n", NumLockMask); + TRACE_(key)("NumLockMask = %04x\n", NumLockMask); e.state |= NumLockMask; } /* Restore saved AltGr state */ - TRACE("AltGrMask = %04x\n", AltGrMask); + TRACE_(key)("AltGrMask = %04x\n", AltGrMask); e.state |= AltGrMask; TRACE_(key)("(%04X, %04X) : faked state = 0x%04x\n", @@ -2485,11 +2485,11 @@ INT CDECL X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, const BYTE *lpKeyState if (!e.keycode && virtKey != VK_NONAME) { - WARN("Unknown virtual key %X !!!\n", virtKey); + WARN_(key)("Unknown virtual key %X !!!\n", virtKey); wine_tsx11_unlock(); return 0; } - else TRACE("Found keycode %u\n",e.keycode); + else TRACE_(key)("Found keycode %u\n",e.keycode); TRACE_(key)("type %d, window %lx, state 0x%04x, keycode %u\n", e.type, e.window, e.state, e.keycode); @@ -2500,13 +2500,13 @@ INT CDECL X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, const BYTE *lpKeyState if (xic) { ret = XmbLookupString(xic, &e, buf, sizeof(buf), &keysym, &status); - TRACE("XmbLookupString needs %d byte(s)\n", ret); + TRACE_(key)("XmbLookupString needs %d byte(s)\n", ret); if (status == XBufferOverflow) { lpChar = HeapAlloc(GetProcessHeap(), 0, ret); if (lpChar == NULL) { - ERR("Failed to allocate memory!\n"); + ERR_(key)("Failed to allocate memory!\n"); wine_tsx11_unlock(); return 0; } @@ -2586,9 +2586,9 @@ INT CDECL X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, const BYTE *lpKeyState ksname = "No Name"; if ((keysym >> 8) != 0xff) { - WARN("no char for keysym %04lx (%s) :\n", + WARN_(key)("no char for keysym %04lx (%s) :\n", keysym, ksname); - WARN("virtKey=%X, scanCode=%X, keycode=%u, state=%X\n", + WARN_(key)("virtKey=%X, scanCode=%X, keycode=%u, state=%X\n", virtKey, scanCode, e.keycode, e.state); } }
1
0
0
0
Huw Davies : gdi32: Add a directional bias for the case when the Bresenham error term is zero.
by Alexandre Julliard
20 Apr '11
20 Apr '11
Module: wine Branch: master Commit: a9675b35093aa3226814c37dd8b2c36270056293 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a9675b35093aa3226814c37dd…
Author: Huw Davies <huw(a)codeweavers.com> Date: Wed Apr 20 12:52:06 2011 +0100 gdi32: Add a directional bias for the case when the Bresenham error term is zero. --- dlls/gdi32/dibdrv/objects.c | 83 +++++++++++++++++++++++++++++++++++++++++- dlls/gdi32/tests/dib.c | 21 +++++++++++ 2 files changed, 102 insertions(+), 2 deletions(-) diff --git a/dlls/gdi32/dibdrv/objects.c b/dlls/gdi32/dibdrv/objects.c index c8fb7fe..a2411c3 100644 --- a/dlls/gdi32/dibdrv/objects.c +++ b/dlls/gdi32/dibdrv/objects.c @@ -106,7 +106,31 @@ static inline BOOL pt_in_rect( const RECT *rect, const POINT *pt ) (pt->y >= rect->top) && (pt->y < rect->bottom)); } -static void WINAPI solid_pen_line_callback(INT x, INT y, LPARAM lparam) +/********************************************************************** + * get_octant_number + * + * Return the octant number starting clockwise from the +ve x-axis. + */ +static inline int get_octant_number(int dx, int dy) +{ + if(dy > 0) + if(dx > 0) + return ( dx > dy) ? 1 : 2; + else + return (-dx > dy) ? 4 : 3; + else + if(dx < 0) + return (-dx > -dy) ? 5 : 6; + else + return ( dx > -dy) ? 8 : 7; +} + +static inline DWORD get_octant_mask(int dx, int dy) +{ + return 1 << (get_octant_number(dx, dy) - 1); +} + +static void solid_pen_line_callback(INT x, INT y, LPARAM lparam) { dibdrv_physdev *pdev = (dibdrv_physdev *)lparam; RECT rect; @@ -119,6 +143,61 @@ static void WINAPI solid_pen_line_callback(INT x, INT y, LPARAM lparam) return; } +static void bres_line_with_bias(INT x1, INT y1, INT x2, INT y2, void (* callback)(INT,INT,LPARAM), LPARAM lParam) +{ + INT xadd = 1, yadd = 1; + INT err, erradd; + INT cnt; + INT dx = x2 - x1; + INT dy = y2 - y1; + DWORD octant = get_octant_mask(dx, dy); + INT bias = 0; + + /* Octants 3, 5, 6 and 8 take a bias */ + if(octant & 0xb4) bias = 1; + + if (dx < 0) + { + dx = -dx; + xadd = -1; + } + if (dy < 0) + { + dy = -dy; + yadd = -1; + } + if (dx > dy) /* line is "more horizontal" */ + { + err = 2*dy - dx; erradd = 2*dy - 2*dx; + for(cnt = 0; cnt < dx; cnt++) + { + callback(x1, y1, lParam); + if (err + bias > 0) + { + y1 += yadd; + err += erradd; + } + else err += 2*dy; + x1 += xadd; + } + } + else /* line is "more vertical" */ + { + err = 2*dx - dy; erradd = 2*dx - 2*dy; + for(cnt = 0; cnt < dy; cnt++) + { + callback(x1, y1, lParam); + if (err + bias > 0) + { + x1 += xadd; + err += erradd; + } + else err += 2*dx; + y1 += yadd; + } + } +} + static BOOL solid_pen_line(dibdrv_physdev *pdev, POINT *start, POINT *end) { const WINEREGION *clip = get_wine_region(pdev->clip); @@ -188,7 +267,7 @@ static BOOL solid_pen_line(dibdrv_physdev *pdev, POINT *start, POINT *end) if(clip->numRects == 1 && pt_in_rect(&clip->extents, start) && pt_in_rect(&clip->extents, end)) /* FIXME: Optimize by moving Bresenham algorithm to the primitive functions, or at least cache adjacent points in the callback */ - LineDDA(start->x, start->y, end->x, end->y, solid_pen_line_callback, (LPARAM)pdev); + bres_line_with_bias(start->x, start->y, end->x, end->y, solid_pen_line_callback, (LPARAM)pdev); else if(clip->numRects >= 1) ret = FALSE; } diff --git a/dlls/gdi32/tests/dib.c b/dlls/gdi32/tests/dib.c index 784d8d5..3046799 100644 --- a/dlls/gdi32/tests/dib.c +++ b/dlls/gdi32/tests/dib.c @@ -78,6 +78,7 @@ static const char *sha1_graphics_a8r8g8b8[] = "a3cadd34d95d3d5cc23344f69aab1c2e55935fcf", "2426172d9e8fec27d9228088f382ef3c93717da9", "9e8f27ca952cdba01dbf25d07c34e86a7820c012", + "664fac17803859a4015c6ae29e5538e314d5c827", "17b2c177bdce5e94433574a928bda5c94a8cdfa5", "fe6cc678fb13a3ead67839481bf22348adc69f52", "d51bd330cec510cdccf5394328bd8e5411901e9e", @@ -150,6 +151,18 @@ static void compare_hash(BITMAPINFO *bmi, BYTE *bits, const char ***sha1, const HeapFree(GetProcessHeap(), 0, hash); } +static const RECT bias_check[] = +{ + {100, 100, 200, 150}, + {100, 100, 150, 200}, + {100, 100, 50, 200}, + {100, 100, 0, 150}, + {100, 100, 0, 50}, + {100, 100, 50, 0}, + {100, 100, 150, 0}, + {100, 100, 200, 50} +}; + static const RECT hline_clips[] = { {120, 120, 140, 120}, /* unclipped */ @@ -251,6 +264,14 @@ static void draw_graphics(HDC hdc, BITMAPINFO *bmi, BYTE *bits, const char ***sh compare_hash(bmi, bits, sha1, "diagonal solid lines"); memset(bits, 0xcc, dib_size); + for(i = 0; i < sizeof(bias_check) / sizeof(bias_check[0]); i++) + { + MoveToEx(hdc, bias_check[i].left, bias_check[i].top, NULL); + LineTo(hdc, bias_check[i].right, bias_check[i].bottom); + } + compare_hash(bmi, bits, sha1, "more diagonal solid lines"); + memset(bits, 0xcc, dib_size); + /* solid brush PatBlt */ solid_brush = CreateSolidBrush(RGB(0x33, 0xaa, 0xff)); orig_brush = SelectObject(hdc, solid_brush);
1
0
0
0
Michael Stefaniuc : d3d9: COM cleanup for the IDirect3DVolumeTexture9 iface .
by Alexandre Julliard
20 Apr '11
20 Apr '11
Module: wine Branch: master Commit: a3e77bfe594c0f87de3130fb7c237064070f24a0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a3e77bfe594c0f87de3130fb7…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Wed Apr 20 11:08:42 2011 +0200 d3d9: COM cleanup for the IDirect3DVolumeTexture9 iface. --- dlls/d3d9/d3d9_private.h | 4 +- dlls/d3d9/device.c | 2 +- dlls/d3d9/volumetexture.c | 114 +++++++++++++++++++++++++++----------------- 3 files changed, 73 insertions(+), 47 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=a3e77bfe594c0f87de313…
1
0
0
0
Michael Stefaniuc : d3d9: COM cleanup for the IDirect3DVolume9 iface.
by Alexandre Julliard
20 Apr '11
20 Apr '11
Module: wine Branch: master Commit: aab2d427e3bb24d71dc575fa5f4f057ee34b7ef0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=aab2d427e3bb24d71dc575fa5…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Wed Apr 20 11:04:23 2011 +0200 d3d9: COM cleanup for the IDirect3DVolume9 iface. --- dlls/d3d9/d3d9_private.h | 4 +- dlls/d3d9/device.c | 2 +- dlls/d3d9/volume.c | 66 +++++++++++++++++++++++++++++---------------- 3 files changed, 45 insertions(+), 27 deletions(-) diff --git a/dlls/d3d9/d3d9_private.h b/dlls/d3d9/d3d9_private.h index ecf6113..8a19606 100644 --- a/dlls/d3d9/d3d9_private.h +++ b/dlls/d3d9/d3d9_private.h @@ -188,8 +188,8 @@ HRESULT device_init(IDirect3DDevice9Impl *device, struct wined3d *wined3d, UINT typedef struct IDirect3DVolume9Impl { /* IUnknown fields */ - const IDirect3DVolume9Vtbl *lpVtbl; - LONG ref; + IDirect3DVolume9 IDirect3DVolume9_iface; + LONG ref; struct wined3d_volume *wined3d_volume; IUnknown *container; IUnknown *forwardReference; diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c index e109e33..57f8bc3 100644 --- a/dlls/d3d9/device.c +++ b/dlls/d3d9/device.c @@ -3148,7 +3148,7 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateVolume(IWineD3DDeviceParent *volume = object->wined3d_volume; wined3d_volume_incref(*volume); - IDirect3DVolume9_Release((IDirect3DVolume9 *)object); + IDirect3DVolume9_Release(&object->IDirect3DVolume9_iface); object->container = container_parent; object->forwardReference = container_parent; diff --git a/dlls/d3d9/volume.c b/dlls/d3d9/volume.c index cd76f06..34336d6 100644 --- a/dlls/d3d9/volume.c +++ b/dlls/d3d9/volume.c @@ -24,9 +24,15 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d9); -/* IDirect3DVolume9 IUnknown parts follow: */ -static HRESULT WINAPI IDirect3DVolume9Impl_QueryInterface(LPDIRECT3DVOLUME9 iface, REFIID riid, LPVOID* ppobj) { - IDirect3DVolume9Impl *This = (IDirect3DVolume9Impl *)iface; +static inline IDirect3DVolume9Impl *impl_from_IDirect3DVolume9(IDirect3DVolume9 *iface) +{ + return CONTAINING_RECORD(iface, IDirect3DVolume9Impl, IDirect3DVolume9_iface); +} + +static HRESULT WINAPI IDirect3DVolume9Impl_QueryInterface(IDirect3DVolume9 *iface, REFIID riid, + void **ppobj) +{ + IDirect3DVolume9Impl *This = impl_from_IDirect3DVolume9(iface); TRACE("iface %p, riid %s, object %p.\n", iface, debugstr_guid(riid), ppobj); @@ -42,8 +48,9 @@ static HRESULT WINAPI IDirect3DVolume9Impl_QueryInterface(LPDIRECT3DVOLUME9 ifac return E_NOINTERFACE; } -static ULONG WINAPI IDirect3DVolume9Impl_AddRef(LPDIRECT3DVOLUME9 iface) { - IDirect3DVolume9Impl *This = (IDirect3DVolume9Impl *)iface; +static ULONG WINAPI IDirect3DVolume9Impl_AddRef(IDirect3DVolume9 *iface) +{ + IDirect3DVolume9Impl *This = impl_from_IDirect3DVolume9(iface); TRACE("iface %p.\n", iface); @@ -68,8 +75,9 @@ static ULONG WINAPI IDirect3DVolume9Impl_AddRef(LPDIRECT3DVOLUME9 iface) { } } -static ULONG WINAPI IDirect3DVolume9Impl_Release(LPDIRECT3DVOLUME9 iface) { - IDirect3DVolume9Impl *This = (IDirect3DVolume9Impl *)iface; +static ULONG WINAPI IDirect3DVolume9Impl_Release(IDirect3DVolume9 *iface) +{ + IDirect3DVolume9Impl *This = impl_from_IDirect3DVolume9(iface); TRACE("iface %p.\n", iface); @@ -93,10 +101,10 @@ static ULONG WINAPI IDirect3DVolume9Impl_Release(LPDIRECT3DVOLUME9 iface) { } } -/* IDirect3DVolume9 Interface follow: */ -static HRESULT WINAPI IDirect3DVolume9Impl_GetDevice(IDirect3DVolume9 *iface, IDirect3DDevice9 **device) +static HRESULT WINAPI IDirect3DVolume9Impl_GetDevice(IDirect3DVolume9 *iface, + IDirect3DDevice9 **device) { - IDirect3DVolume9Impl *This = (IDirect3DVolume9Impl *)iface; + IDirect3DVolume9Impl *This = impl_from_IDirect3DVolume9(iface); IDirect3DResource9 *resource; HRESULT hr; @@ -114,8 +122,10 @@ static HRESULT WINAPI IDirect3DVolume9Impl_GetDevice(IDirect3DVolume9 *iface, ID return hr; } -static HRESULT WINAPI IDirect3DVolume9Impl_SetPrivateData(LPDIRECT3DVOLUME9 iface, REFGUID refguid, CONST void* pData, DWORD SizeOfData, DWORD Flags) { - IDirect3DVolume9Impl *This = (IDirect3DVolume9Impl *)iface; +static HRESULT WINAPI IDirect3DVolume9Impl_SetPrivateData(IDirect3DVolume9 *iface, REFGUID refguid, + const void *pData, DWORD SizeOfData, DWORD Flags) +{ + IDirect3DVolume9Impl *This = impl_from_IDirect3DVolume9(iface); HRESULT hr; TRACE("iface %p, guid %s, data %p, data_size %u, flags %#x.\n", @@ -128,8 +138,10 @@ static HRESULT WINAPI IDirect3DVolume9Impl_SetPrivateData(LPDIRECT3DVOLUME9 ifac return hr; } -static HRESULT WINAPI IDirect3DVolume9Impl_GetPrivateData(LPDIRECT3DVOLUME9 iface, REFGUID refguid, void* pData, DWORD* pSizeOfData) { - IDirect3DVolume9Impl *This = (IDirect3DVolume9Impl *)iface; +static HRESULT WINAPI IDirect3DVolume9Impl_GetPrivateData(IDirect3DVolume9 *iface, REFGUID refguid, + void *pData, DWORD *pSizeOfData) +{ + IDirect3DVolume9Impl *This = impl_from_IDirect3DVolume9(iface); HRESULT hr; TRACE("iface %p, guid %s, data %p, data_size %p.\n", @@ -142,8 +154,9 @@ static HRESULT WINAPI IDirect3DVolume9Impl_GetPrivateData(LPDIRECT3DVOLUME9 ifac return hr; } -static HRESULT WINAPI IDirect3DVolume9Impl_FreePrivateData(LPDIRECT3DVOLUME9 iface, REFGUID refguid) { - IDirect3DVolume9Impl *This = (IDirect3DVolume9Impl *)iface; +static HRESULT WINAPI IDirect3DVolume9Impl_FreePrivateData(IDirect3DVolume9 *iface, REFGUID refguid) +{ + IDirect3DVolume9Impl *This = impl_from_IDirect3DVolume9(iface); HRESULT hr; TRACE("iface %p, guid %s.\n", iface, debugstr_guid(refguid)); @@ -155,8 +168,10 @@ static HRESULT WINAPI IDirect3DVolume9Impl_FreePrivateData(LPDIRECT3DVOLUME9 ifa return hr; } -static HRESULT WINAPI IDirect3DVolume9Impl_GetContainer(LPDIRECT3DVOLUME9 iface, REFIID riid, void** ppContainer) { - IDirect3DVolume9Impl *This = (IDirect3DVolume9Impl *)iface; +static HRESULT WINAPI IDirect3DVolume9Impl_GetContainer(IDirect3DVolume9 *iface, REFIID riid, + void **ppContainer) +{ + IDirect3DVolume9Impl *This = impl_from_IDirect3DVolume9(iface); HRESULT res; TRACE("iface %p, riid %s, container %p.\n", iface, debugstr_guid(riid), ppContainer); @@ -172,7 +187,7 @@ static HRESULT WINAPI IDirect3DVolume9Impl_GetContainer(LPDIRECT3DVOLUME9 iface, static HRESULT WINAPI IDirect3DVolume9Impl_GetDesc(IDirect3DVolume9 *iface, D3DVOLUME_DESC *desc) { - IDirect3DVolume9Impl *This = (IDirect3DVolume9Impl *)iface; + IDirect3DVolume9Impl *This = impl_from_IDirect3DVolume9(iface); struct wined3d_resource_desc wined3d_desc; struct wined3d_resource *wined3d_resource; @@ -194,8 +209,10 @@ static HRESULT WINAPI IDirect3DVolume9Impl_GetDesc(IDirect3DVolume9 *iface, D3DV return D3D_OK; } -static HRESULT WINAPI IDirect3DVolume9Impl_LockBox(LPDIRECT3DVOLUME9 iface, D3DLOCKED_BOX* pLockedVolume, CONST D3DBOX* pBox, DWORD Flags) { - IDirect3DVolume9Impl *This = (IDirect3DVolume9Impl *)iface; +static HRESULT WINAPI IDirect3DVolume9Impl_LockBox(IDirect3DVolume9 *iface, + D3DLOCKED_BOX *pLockedVolume, const D3DBOX *pBox, DWORD Flags) +{ + IDirect3DVolume9Impl *This = impl_from_IDirect3DVolume9(iface); HRESULT hr; TRACE("iface %p, locked_box %p, box %p, flags %#x.\n", @@ -209,8 +226,9 @@ static HRESULT WINAPI IDirect3DVolume9Impl_LockBox(LPDIRECT3DVOLUME9 iface, D3DL return hr; } -static HRESULT WINAPI IDirect3DVolume9Impl_UnlockBox(LPDIRECT3DVOLUME9 iface) { - IDirect3DVolume9Impl *This = (IDirect3DVolume9Impl *)iface; +static HRESULT WINAPI IDirect3DVolume9Impl_UnlockBox(IDirect3DVolume9 *iface) +{ + IDirect3DVolume9Impl *This = impl_from_IDirect3DVolume9(iface); HRESULT hr; TRACE("iface %p.\n", iface); @@ -254,7 +272,7 @@ HRESULT volume_init(IDirect3DVolume9Impl *volume, IDirect3DDevice9Impl *device, { HRESULT hr; - volume->lpVtbl = &Direct3DVolume9_Vtbl; + volume->IDirect3DVolume9_iface.lpVtbl = &Direct3DVolume9_Vtbl; volume->ref = 1; hr = IWineD3DDevice_CreateVolume(device->WineD3DDevice, width, height, depth, usage & WINED3DUSAGE_MASK,
1
0
0
0
Michael Stefaniuc : d3d9: COM cleanup for the IDirect3DTexture9 iface.
by Alexandre Julliard
20 Apr '11
20 Apr '11
Module: wine Branch: master Commit: 31bea55ef4ca0f283de31357b0674c6f6baee9b3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=31bea55ef4ca0f283de31357b…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Wed Apr 20 10:58:44 2011 +0200 d3d9: COM cleanup for the IDirect3DTexture9 iface. --- dlls/d3d9/d3d9_private.h | 4 +- dlls/d3d9/device.c | 2 +- dlls/d3d9/texture.c | 112 ++++++++++++++++++++++++++++------------------ 3 files changed, 72 insertions(+), 46 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=31bea55ef4ca0f283de31…
1
0
0
0
Andrew Nguyen : msvcrt: Avoid the use of SetFilePointerEx in _lseeki64.
by Alexandre Julliard
20 Apr '11
20 Apr '11
Module: wine Branch: master Commit: 6329d0d47da7391baa545669f9028ff2ac4bc4a4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6329d0d47da7391baa545669f…
Author: Andrew Nguyen <anguyen(a)codeweavers.com> Date: Wed Apr 20 01:17:48 2011 -0500 msvcrt: Avoid the use of SetFilePointerEx in _lseeki64. --- dlls/msvcrt/file.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dlls/msvcrt/file.c b/dlls/msvcrt/file.c index b8077d2..c1a7785 100644 --- a/dlls/msvcrt/file.c +++ b/dlls/msvcrt/file.c @@ -863,7 +863,7 @@ void msvcrt_free_io(void) __int64 CDECL MSVCRT__lseeki64(int fd, __int64 offset, int whence) { HANDLE hand = msvcrt_fdtoh(fd); - LARGE_INTEGER ofs, ret; + LARGE_INTEGER ofs; TRACE(":fd (%d) handle (%p)\n",fd,hand); if (hand == INVALID_HANDLE_VALUE) @@ -881,13 +881,16 @@ __int64 CDECL MSVCRT__lseeki64(int fd, __int64 offset, int whence) (whence==SEEK_CUR)?"SEEK_CUR": (whence==SEEK_END)?"SEEK_END":"UNKNOWN"); + /* The MoleBox protection scheme expects msvcrt to use SetFilePointer only, + * so a LARGE_INTEGER offset cannot be passed directly via SetFilePointerEx. */ ofs.QuadPart = offset; - if (SetFilePointerEx(hand, ofs, &ret, whence)) + if ((ofs.LowPart = SetFilePointer(hand, ofs.LowPart, &ofs.HighPart, whence)) != INVALID_SET_FILE_POINTER || + GetLastError() == ERROR_SUCCESS) { MSVCRT_fdesc[fd].wxflag &= ~(WX_ATEOF|WX_READEOF); /* FIXME: What if we seek _to_ EOF - is EOF set? */ - return ret.QuadPart; + return ofs.QuadPart; } TRACE(":error-last error (%d)\n",GetLastError()); msvcrt_set_errno(GetLastError());
1
0
0
0
Rico Schüller : d3dx9: Implement ID3DXBaseEffect:: GetPassByName().
by Alexandre Julliard
20 Apr '11
20 Apr '11
Module: wine Branch: master Commit: 0a23fc7b294e2dd30482f9a36196d31ebc47fc81 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0a23fc7b294e2dd30482f9a36…
Author: Rico Schüller <kgbricola(a)web.de> Date: Wed Apr 20 07:58:34 2011 +0200 d3dx9: Implement ID3DXBaseEffect::GetPassByName(). --- dlls/d3dx9_36/effect.c | 23 ++++++++++++++++++++++- 1 files changed, 22 insertions(+), 1 deletions(-) diff --git a/dlls/d3dx9_36/effect.c b/dlls/d3dx9_36/effect.c index 287e468..081da31 100644 --- a/dlls/d3dx9_36/effect.c +++ b/dlls/d3dx9_36/effect.c @@ -688,8 +688,29 @@ static D3DXHANDLE WINAPI ID3DXBaseEffectImpl_GetPass(ID3DXBaseEffect *iface, D3D static D3DXHANDLE WINAPI ID3DXBaseEffectImpl_GetPassByName(ID3DXBaseEffect *iface, D3DXHANDLE technique, LPCSTR name) { struct ID3DXBaseEffectImpl *This = impl_from_ID3DXBaseEffect(iface); + struct d3dx_technique *tech = is_valid_technique(This, technique); + + TRACE("iface %p, technique %p, name %s\n", This, technique, debugstr_a(name)); + + if (!tech) tech = get_technique_struct(iface->lpVtbl->GetTechniqueByName(iface, technique)); + + if (tech && name) + { + unsigned int i; + + for (i = 0; i < tech->pass_count; ++i) + { + struct d3dx_pass *pass = get_pass_struct(tech->pass_handles[i]); - FIXME("iface %p, technique %p, name %s stub\n", This, technique, debugstr_a(name)); + if (!strcmp(pass->name, name)) + { + TRACE("Returning pass %p\n", tech->pass_handles[i]); + return tech->pass_handles[i]; + } + } + } + + WARN("Invalid argument specified.\n"); return NULL; }
1
0
0
0
Rico Schüller : d3dx9: Implement ID3DXBaseEffect:: GetPass().
by Alexandre Julliard
20 Apr '11
20 Apr '11
Module: wine Branch: master Commit: 2e2b3c775b820a9906a47e27e3ad4d795a3fe300 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2e2b3c775b820a9906a47e27e…
Author: Rico Schüller <kgbricola(a)web.de> Date: Wed Apr 20 07:58:32 2011 +0200 d3dx9: Implement ID3DXBaseEffect::GetPass(). --- dlls/d3dx9_36/effect.c | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/dlls/d3dx9_36/effect.c b/dlls/d3dx9_36/effect.c index 837e80d..287e468 100644 --- a/dlls/d3dx9_36/effect.c +++ b/dlls/d3dx9_36/effect.c @@ -668,8 +668,19 @@ static D3DXHANDLE WINAPI ID3DXBaseEffectImpl_GetTechniqueByName(ID3DXBaseEffect static D3DXHANDLE WINAPI ID3DXBaseEffectImpl_GetPass(ID3DXBaseEffect *iface, D3DXHANDLE technique, UINT index) { struct ID3DXBaseEffectImpl *This = impl_from_ID3DXBaseEffect(iface); + struct d3dx_technique *tech = is_valid_technique(This, technique); - FIXME("iface %p, technique %p, index %u stub\n", This, technique, index); + TRACE("iface %p, technique %p, index %u\n", This, technique, index); + + if (!tech) tech = get_technique_struct(iface->lpVtbl->GetTechniqueByName(iface, technique)); + + if (tech && index < tech->pass_count) + { + TRACE("Returning pass %p\n", tech->pass_handles[index]); + return tech->pass_handles[index]; + } + + WARN("Invalid argument specified.\n"); return NULL; }
1
0
0
0
← Newer
1
...
23
24
25
26
27
28
29
...
94
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
Results per page:
10
25
50
100
200