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
October 2006
----- 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
1032 discussions
Start a n
N
ew thread
Mikołaj Zalewski : comctl32: toolbar: Remove dwItemCustDraw from TOOLBAR_INFO and store it as a local variable.
by Alexandre Julliard
12 Oct '06
12 Oct '06
Module: wine Branch: master Commit: 4cf682b8c4c6a229b77011f3a1ae9d882dfec75a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4cf682b8c4c6a229b77011f3a…
Author: Mikołaj Zalewski <mikolaj(a)zalewski.pl> Date: Wed Oct 11 20:47:22 2006 +0200 comctl32: toolbar: Remove dwItemCustDraw from TOOLBAR_INFO and store it as a local variable. --- dlls/comctl32/toolbar.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c index b3a3ee7..8531ac9 100644 --- a/dlls/comctl32/toolbar.c +++ b/dlls/comctl32/toolbar.c @@ -140,7 +140,6 @@ typedef struct INT nOldHit; INT nHotItem; /* index of the "hot" item */ DWORD dwBaseCustDraw; /* CDRF_ response (w/o TBCDRF_) from PREPAINT */ - DWORD dwItemCustDraw; /* CDRF_ response (w/o TBCDRF_) from ITEMPREP */ DWORD dwItemCDFlag; /* TBCDRF_ flags from last ITEMPREPAINT */ SIZE szPadding; /* padding values around button */ INT iListGap; /* default gap between text and image for toolbar with list style */ @@ -821,6 +820,7 @@ TOOLBAR_DrawButton (HWND hwnd, TBUTTON_I DWORD ntfret; INT offset; INT oldBkMode; + DWORD dwItemCustDraw; HTHEME theme = GetWindowTheme (hwnd); rc = btnPtr->rect; @@ -949,7 +949,7 @@ TOOLBAR_DrawButton (HWND hwnd, TBUTTON_I tbcd.hpenLines = 0; /* Issue Item Prepaint notify */ - infoPtr->dwItemCustDraw = 0; + dwItemCustDraw = 0; infoPtr->dwItemCDFlag = 0; if (infoPtr->dwBaseCustDraw & CDRF_NOTIFYITEMDRAW) { @@ -961,9 +961,9 @@ TOOLBAR_DrawButton (HWND hwnd, TBUTTON_I tbcd.nmcd.hdc = hdc; tbcd.nmcd.rc = rc; - infoPtr->dwItemCustDraw = ntfret & 0xffff; + dwItemCustDraw = ntfret & 0xffff; infoPtr->dwItemCDFlag = ntfret & 0xffff0000; - if (infoPtr->dwItemCustDraw & CDRF_SKIPDEFAULT) + if (dwItemCustDraw & CDRF_SKIPDEFAULT) return; /* save the only part of the rect that the user can change */ rcText.right = tbcd.rcText.right + rc.left; @@ -1058,7 +1058,7 @@ TOOLBAR_DrawButton (HWND hwnd, TBUTTON_I TOOLBAR_DrawArrow(hdc, rcArrow.left, rcArrow.top + (rcArrow.bottom - rcArrow.top - ARROW_HEIGHT) / 2, comctl32_color.clrBtnText); } - if (infoPtr->dwItemCustDraw & CDRF_NOTIFYPOSTPAINT) + if (dwItemCustDraw & CDRF_NOTIFYPOSTPAINT) { tbcd.nmcd.dwDrawStage = CDDS_ITEMPOSTPAINT; TOOLBAR_SendNotify(&tbcd.nmcd.hdr, infoPtr, NM_CUSTOMDRAW);
1
0
0
0
Mikołaj Zalewski : comctl32: toolbar: Don' t send NM_CUSTOMDRAW for separators.
by Alexandre Julliard
12 Oct '06
12 Oct '06
Module: wine Branch: master Commit: e0e2d7482c405fb504d739162c9cac063f88a58a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e0e2d7482c405fb504d739162…
Author: Mikołaj Zalewski <mikolaj(a)zalewski.pl> Date: Wed Oct 11 20:44:57 2006 +0200 comctl32: toolbar: Don't send NM_CUSTOMDRAW for separators. --- dlls/comctl32/toolbar.c | 55 +++++++++++++++++++++++------------------------ 1 files changed, 27 insertions(+), 28 deletions(-) diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c index e0d06ae..b3a3ee7 100644 --- a/dlls/comctl32/toolbar.c +++ b/dlls/comctl32/toolbar.c @@ -826,6 +826,33 @@ TOOLBAR_DrawButton (HWND hwnd, TBUTTON_I rc = btnPtr->rect; CopyRect (&rcArrow, &rc); + /* separator - doesn't send NM_CUSTOMDRAW */ + if (btnPtr->fsStyle & BTNS_SEP) { + if (theme) + { + DrawThemeBackground (theme, hdc, + (dwStyle & CCS_VERT) ? TP_SEPARATORVERT : TP_SEPARATOR, 0, + &rc, NULL); + } + else + /* with the FLAT style, iBitmap is the width and has already */ + /* been taken into consideration in calculating the width */ + /* so now we need to draw the vertical separator */ + /* empirical tests show that iBitmap can/will be non-zero */ + /* when drawing the vertical bar... */ + if ((dwStyle & TBSTYLE_FLAT) /* && (btnPtr->iBitmap == 0) */) { + if (btnPtr->fsStyle & BTNS_DROPDOWN) + TOOLBAR_DrawDDFlatSeparator (&rc, hdc, btnPtr, infoPtr); + else + TOOLBAR_DrawFlatSeparator (&rc, hdc, infoPtr); + } + else if (btnPtr->fsStyle != BTNS_SEP) { + FIXME("Draw some kind of separator: fsStyle=%x\n", + btnPtr->fsStyle); + } + return; + } + /* get a pointer to the text */ lpText = TOOLBAR_GetText(infoPtr, btnPtr); @@ -943,33 +970,6 @@ TOOLBAR_DrawButton (HWND hwnd, TBUTTON_I rcText.bottom = tbcd.rcText.bottom + rc.top; } - /* separator */ - if (btnPtr->fsStyle & BTNS_SEP) { - if (theme) - { - DrawThemeBackground (theme, hdc, - (dwStyle & CCS_VERT) ? TP_SEPARATORVERT : TP_SEPARATOR, 0, - &tbcd.nmcd.rc, NULL); - } - else - /* with the FLAT style, iBitmap is the width and has already */ - /* been taken into consideration in calculating the width */ - /* so now we need to draw the vertical separator */ - /* empirical tests show that iBitmap can/will be non-zero */ - /* when drawing the vertical bar... */ - if ((dwStyle & TBSTYLE_FLAT) /* && (btnPtr->iBitmap == 0) */) { - if (btnPtr->fsStyle & BTNS_DROPDOWN) - TOOLBAR_DrawDDFlatSeparator (&rc, hdc, btnPtr, infoPtr); - else - TOOLBAR_DrawFlatSeparator (&rc, hdc, infoPtr); - } - else if (btnPtr->fsStyle != BTNS_SEP) { - FIXME("Draw some kind of separator: fsStyle=%x\n", - btnPtr->fsStyle); - } - goto FINALNOTIFY; - } - if (!(infoPtr->dwItemCDFlag & TBCDRF_NOOFFSET) && (btnPtr->fsState & (TBSTATE_PRESSED | TBSTATE_CHECKED))) OffsetRect(&rcText, 1, 1); @@ -1058,7 +1058,6 @@ TOOLBAR_DrawButton (HWND hwnd, TBUTTON_I TOOLBAR_DrawArrow(hdc, rcArrow.left, rcArrow.top + (rcArrow.bottom - rcArrow.top - ARROW_HEIGHT) / 2, comctl32_color.clrBtnText); } -FINALNOTIFY: if (infoPtr->dwItemCustDraw & CDRF_NOTIFYPOSTPAINT) { tbcd.nmcd.dwDrawStage = CDDS_ITEMPOSTPAINT;
1
0
0
0
Mikołaj Zalewski : comctl32: header: Call DefWindowProcW not DefWindowProcA.
by Alexandre Julliard
12 Oct '06
12 Oct '06
Module: wine Branch: master Commit: 8304d0675f67b46716cd182ce93784e6980d8f61 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8304d0675f67b46716cd182ce…
Author: Mikołaj Zalewski <mikolaj(a)zalewski.pl> Date: Wed Oct 11 20:56:47 2006 +0200 comctl32: header: Call DefWindowProcW not DefWindowProcA. --- dlls/comctl32/header.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/comctl32/header.c b/dlls/comctl32/header.c index 820e72e..04bf978 100644 --- a/dlls/comctl32/header.c +++ b/dlls/comctl32/header.c @@ -2100,7 +2100,7 @@ HEADER_WindowProc (HWND hwnd, UINT msg, if ((msg >= WM_USER) && (msg < WM_APP)) ERR("unknown msg %04x wp=%04x lp=%08lx\n", msg, wParam, lParam ); - return DefWindowProcA (hwnd, msg, wParam, lParam); + return DefWindowProcW(hwnd, msg, wParam, lParam); } }
1
0
0
0
Mikołaj Zalewski : comctl32: header: Invalidate the control after a WM_SETREDRAW with wParam == TRUE.
by Alexandre Julliard
12 Oct '06
12 Oct '06
Module: wine Branch: master Commit: 3f89a71323edbeb528272e3c49ed615c9fa9fbb8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3f89a71323edbeb528272e3c4…
Author: Mikołaj Zalewski <mikolaj(a)zalewski.pl> Date: Wed Oct 11 20:55:31 2006 +0200 comctl32: header: Invalidate the control after a WM_SETREDRAW with wParam == TRUE. --- dlls/comctl32/header.c | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/dlls/comctl32/header.c b/dlls/comctl32/header.c index 63f91d8..820e72e 100644 --- a/dlls/comctl32/header.c +++ b/dlls/comctl32/header.c @@ -1945,6 +1945,18 @@ HEADER_SetFont (HWND hwnd, WPARAM wParam return 0; } +static LRESULT HEADER_SetRedraw(HWND hwnd, WPARAM wParam, LPARAM lParam) +{ + /* ignoring the InvalidateRect calls is handled by user32. But some apps expect + * that we invalidate the header and this has to be done manually */ + LRESULT ret; + + ret = DefWindowProcW(hwnd, WM_SETREDRAW, wParam, lParam); + if (wParam) + InvalidateRect(hwnd, NULL, TRUE); + return ret; +} + /* Update the theme handle after a theme change */ static LRESULT HEADER_ThemeChanged(HWND hwnd) { @@ -2081,6 +2093,9 @@ HEADER_WindowProc (HWND hwnd, UINT msg, case WM_SETFONT: return HEADER_SetFont (hwnd, wParam, lParam); + case WM_SETREDRAW: + return HEADER_SetRedraw(hwnd, wParam, lParam); + default: if ((msg >= WM_USER) && (msg < WM_APP)) ERR("unknown msg %04x wp=%04x lp=%08lx\n",
1
0
0
0
Mikołaj Zalewski : comctl32: listview: Don' t call ScrollColumn with an out of bounds index when resizing the last column .
by Alexandre Julliard
12 Oct '06
12 Oct '06
Module: wine Branch: master Commit: 056d004b3b83a279791a392ec9d77e30e14f2d81 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=056d004b3b83a279791a392ec…
Author: Mikołaj Zalewski <mikolaj(a)zalewski.pl> Date: Wed Oct 11 20:43:47 2006 +0200 comctl32: listview: Don't call ScrollColumn with an out of bounds index when resizing the last column. --- dlls/comctl32/listview.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 8d4fc6d..7c6c7a3 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -8582,7 +8582,8 @@ static LRESULT LISTVIEW_HeaderNotificati if (dx != 0) { lpColumnInfo->rcHeader.right += dx; - LISTVIEW_ScrollColumns(infoPtr, lpnmh->iItem + 1, dx); + if (lpnmh->iItem + 1 < DPA_GetPtrCount(infoPtr->hdpaColumns)) + LISTVIEW_ScrollColumns(infoPtr, lpnmh->iItem + 1, dx); LISTVIEW_UpdateItemSize(infoPtr); if (uView == LVS_REPORT && is_redrawing(infoPtr)) {
1
0
0
0
Ivan Gyurdiev : wined3d: Merge D3DDP_MAXTEXCOORD constants into one constant in WINED3D namespace.
by Alexandre Julliard
12 Oct '06
12 Oct '06
Module: wine Branch: master Commit: 532fe7a1cf4c4165877e0305fee14df952f988cf URL:
http://source.winehq.org/git/wine.git/?a=commit;h=532fe7a1cf4c4165877e0305f…
Author: Ivan Gyurdiev <ivg231(a)gmail.com> Date: Thu Oct 12 02:24:43 2006 -0400 wined3d: Merge D3DDP_MAXTEXCOORD constants into one constant in WINED3D namespace. --- dlls/wined3d/drawprim.c | 18 +++++++++--------- include/wine/wined3d_types.h | 9 +++------ 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c index ffde5d2..fad7bf8 100644 --- a/dlls/wined3d/drawprim.c +++ b/dlls/wined3d/drawprim.c @@ -368,24 +368,24 @@ static BOOL fixed_get_input( *regnum = 5; else if (usage == D3DDECLUSAGE_COLOR && usage_idx == 1) *regnum = 6; - else if (usage == D3DDECLUSAGE_TEXCOORD && usage_idx < D3DDP_MAXTEXCOORD) + else if (usage == D3DDECLUSAGE_TEXCOORD && usage_idx < WINED3DDP_MAXTEXCOORD) *regnum = 7 + usage_idx; else if ((usage == D3DDECLUSAGE_POSITION || usage == D3DDECLUSAGE_POSITIONT) && usage_idx == 1) - *regnum = 7 + D3DDP_MAXTEXCOORD; + *regnum = 7 + WINED3DDP_MAXTEXCOORD; else if (usage == D3DDECLUSAGE_NORMAL && usage_idx == 1) - *regnum = 8 + D3DDP_MAXTEXCOORD; + *regnum = 8 + WINED3DDP_MAXTEXCOORD; else if (usage == D3DDECLUSAGE_TANGENT && usage_idx == 0) - *regnum = 9 + D3DDP_MAXTEXCOORD; + *regnum = 9 + WINED3DDP_MAXTEXCOORD; else if (usage == D3DDECLUSAGE_BINORMAL && usage_idx == 0) - *regnum = 10 + D3DDP_MAXTEXCOORD; + *regnum = 10 + WINED3DDP_MAXTEXCOORD; else if (usage == D3DDECLUSAGE_TESSFACTOR && usage_idx == 0) - *regnum = 11 + D3DDP_MAXTEXCOORD; + *regnum = 11 + WINED3DDP_MAXTEXCOORD; else if (usage == D3DDECLUSAGE_FOG && usage_idx == 0) - *regnum = 12 + D3DDP_MAXTEXCOORD; + *regnum = 12 + WINED3DDP_MAXTEXCOORD; else if (usage == D3DDECLUSAGE_DEPTH && usage_idx == 0) - *regnum = 13 + D3DDP_MAXTEXCOORD; + *regnum = 13 + WINED3DDP_MAXTEXCOORD; else if (usage == D3DDECLUSAGE_SAMPLE && usage_idx == 0) - *regnum = 14 + D3DDP_MAXTEXCOORD; + *regnum = 14 + WINED3DDP_MAXTEXCOORD; if (*regnum < 0) { FIXME("Unsupported input stream [usage=%s, usage_idx=%u]\n", diff --git a/include/wine/wined3d_types.h b/include/wine/wined3d_types.h index 48120e4..42afc1e 100644 --- a/include/wine/wined3d_types.h +++ b/include/wine/wined3d_types.h @@ -25,11 +25,6 @@ #ifndef __WINE_WINED3D_TYPES_H #define __WINE_WINED3D_TYPES_H -/* TODO: remove the dependency on d3d9 or d3d8 */ -#if !defined( __WINE_D3D_H ) && !defined( __WINE_D3D8_H ) && !defined( __WINE_D3D9_H ) -# error You must include d3d.h, d3d8.h or d3d9.h header to use this header -#endif - typedef DWORD WINED3DCOLOR; typedef enum _WINED3DLIGHTTYPE { @@ -986,6 +981,8 @@ typedef struct glDescriptor { int/*GLenum*/ glType; } glDescriptor; +#define WINED3DDP_MAXTEXCOORD 8 + typedef enum _WINED3DDECLMETHOD { WINED3DDECLMETHOD_DEFAULT = 0, WINED3DDECLMETHOD_PARTIALU = 1, @@ -1038,7 +1035,7 @@ typedef struct WineDirect3DVertexStrided WineDirect3DStridedData pSize; WineDirect3DStridedData diffuse; WineDirect3DStridedData specular; - WineDirect3DStridedData texCoords[D3DDP_MAXTEXCOORD]; + WineDirect3DStridedData texCoords[WINED3DDP_MAXTEXCOORD]; WineDirect3DStridedData position2; /* tween data */ WineDirect3DStridedData normal2; /* tween data */ WineDirect3DStridedData tangent;
1
0
0
0
Ivan Gyurdiev : wined3d: Merge D3DPRIMITIVETYPE types into one type in WINED3D namespace.
by Alexandre Julliard
12 Oct '06
12 Oct '06
Module: wine Branch: master Commit: 2bac4a02da936aaea0d26d70cce69946f0e332a3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2bac4a02da936aaea0d26d70c…
Author: Ivan Gyurdiev <ivg231(a)gmail.com> Date: Thu Oct 12 02:23:55 2006 -0400 wined3d: Merge D3DPRIMITIVETYPE types into one type in WINED3D namespace. --- dlls/wined3d/device.c | 10 +++++----- dlls/wined3d/drawprim.c | 14 +++++++------- dlls/wined3d/utils.c | 16 ++++++++-------- dlls/wined3d/wined3d_private.h | 2 +- include/wine/wined3d_interface.h | 14 +++++--------- include/wine/wined3d_types.h | 11 +++++++++++ 6 files changed, 37 insertions(+), 30 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=2bac4a02da936aaea0d26…
1
0
0
0
Ivan Gyurdiev : wined3d: Merge D3DCOLOR types into one type in WINED3D namespace.
by Alexandre Julliard
12 Oct '06
12 Oct '06
Module: wine Branch: master Commit: 1cd7bcf4c87c3af90cc8ceff505c2f122f380ada URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1cd7bcf4c87c3af90cc8ceff5…
Author: Ivan Gyurdiev <ivg231(a)gmail.com> Date: Thu Oct 12 02:22:59 2006 -0400 wined3d: Merge D3DCOLOR types into one type in WINED3D namespace. --- dlls/wined3d/device.c | 4 ++-- include/wine/wined3d_interface.h | 4 ++-- include/wine/wined3d_types.h | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 4b72580..748dbef 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -6022,7 +6022,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl } static HRESULT WINAPI IWineD3DDeviceImpl_Clear(IWineD3DDevice *iface, DWORD Count, CONST WINED3DRECT* pRects, - DWORD Flags, D3DCOLOR Color, float Z, DWORD Stencil) { + DWORD Flags, WINED3DCOLOR Color, float Z, DWORD Stencil) { IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface; /* TODO: From MSDN This method fails if you specify the D3DCLEAR_ZBUFFER or D3DCLEAR_STENCIL flags when the @@ -6995,7 +6995,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl return WINED3D_OK; } -static HRESULT WINAPI IWineD3DDeviceImpl_ColorFill(IWineD3DDevice *iface, IWineD3DSurface *pSurface, CONST WINED3DRECT* pRect, D3DCOLOR color) { +static HRESULT WINAPI IWineD3DDeviceImpl_ColorFill(IWineD3DDevice *iface, IWineD3DSurface *pSurface, CONST WINED3DRECT* pRect, WINED3DCOLOR color) { IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *) iface; IWineD3DSurfaceImpl *surface = (IWineD3DSurfaceImpl *) pSurface; DDBLTFX BltFx; diff --git a/include/wine/wined3d_interface.h b/include/wine/wined3d_interface.h index b6a2650..60c2334 100644 --- a/include/wine/wined3d_interface.h +++ b/include/wine/wined3d_interface.h @@ -447,7 +447,7 @@ DECLARE_INTERFACE_(IWineD3DDevice,IWineD STDMETHOD(BeginScene)(THIS) PURE; STDMETHOD(EndScene)(THIS) PURE; STDMETHOD(Present)(THIS_ CONST RECT * pSourceRect,CONST RECT * pDestRect,HWND hDestWindowOverride,CONST RGNDATA * pDirtyRegion) PURE; - STDMETHOD(Clear)(THIS_ DWORD Count, CONST WINED3DRECT * pRects, DWORD Flags, D3DCOLOR Color,float Z, DWORD Stencil) PURE; + STDMETHOD(Clear)(THIS_ DWORD Count, CONST WINED3DRECT * pRects, DWORD Flags, WINED3DCOLOR Color, float Z, DWORD Stencil) PURE; STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT StartVertex,UINT PrimitiveCount) PURE; STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE PrimitiveType,INT baseVIdx, UINT minIndex,UINT NumVertices,UINT startIndex,UINT primCount) PURE; STDMETHOD(DrawPrimitiveUP)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT PrimitiveCount,CONST void * pVertexStreamZeroData,UINT VertexStreamZeroStride) PURE; @@ -456,7 +456,7 @@ DECLARE_INTERFACE_(IWineD3DDevice,IWineD STDMETHOD(DrawRectPatch)(THIS_ UINT Handle, CONST float* pNumSegs, CONST WINED3DRECTPATCH_INFO* pRectPatchInfo) PURE; STDMETHOD(DrawTriPatch)(THIS_ UINT Handle, CONST float* pNumSegs, CONST WINED3DTRIPATCH_INFO* pTriPatchInfo) PURE; STDMETHOD(DeletePatch)(THIS_ UINT Handle) PURE; - STDMETHOD(ColorFill)(THIS_ struct IWineD3DSurface* pSurface, CONST WINED3DRECT* pRect, D3DCOLOR color) PURE; + STDMETHOD(ColorFill)(THIS_ struct IWineD3DSurface* pSurface, CONST WINED3DRECT* pRect, WINED3DCOLOR color) PURE; STDMETHOD(UpdateTexture)(THIS_ struct IWineD3DBaseTexture *pSourceTexture, struct IWineD3DBaseTexture *pDestinationTexture) PURE; STDMETHOD(UpdateSurface)(THIS_ struct IWineD3DSurface* pSourceSurface, CONST RECT* pSourceRect, struct IWineD3DSurface* pDestinationSurface, CONST POINT* pDestPoint) PURE; STDMETHOD(CopyRects)(THIS_ struct IWineD3DSurface* pSourceSurface, CONST RECT* pSourceRectsArray, UINT cRects, struct IWineD3DSurface* pDestinationSurface, CONST POINT* pDestPointsArray); diff --git a/include/wine/wined3d_types.h b/include/wine/wined3d_types.h index 9eac171..b930211 100644 --- a/include/wine/wined3d_types.h +++ b/include/wine/wined3d_types.h @@ -30,6 +30,8 @@ #if !defined( __WINE_D3D_H ) && !defined # error You must include d3d.h, d3d8.h or d3d9.h header to use this header #endif +typedef DWORD WINED3DCOLOR; + typedef enum _WINED3DLIGHTTYPE { WINED3DLIGHT_POINT = 1, WINED3DLIGHT_SPOT = 2,
1
0
0
0
Ivan Gyurdiev : wined3d: Merge D3DRECT types into one type in WINED3D namespace.
by Alexandre Julliard
12 Oct '06
12 Oct '06
Module: wine Branch: master Commit: 9628a1b2e29b9918ae8bd72be6ea4414331ecc60 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9628a1b2e29b9918ae8bd72be…
Author: Ivan Gyurdiev <ivg231(a)gmail.com> Date: Thu Oct 12 02:22:18 2006 -0400 wined3d: Merge D3DRECT types into one type in WINED3D namespace. --- dlls/d3d8/device.c | 3 ++- dlls/d3d9/device.c | 8 ++++++-- dlls/ddraw/device.c | 3 ++- dlls/wined3d/device.c | 8 ++++---- dlls/wined3d/surface.c | 4 ++-- include/wine/wined3d_interface.h | 4 ++-- include/wine/wined3d_types.h | 7 +++++++ 7 files changed, 25 insertions(+), 12 deletions(-) diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c index 150abde..380a8ff 100644 --- a/dlls/d3d8/device.c +++ b/dlls/d3d8/device.c @@ -671,7 +671,8 @@ static HRESULT WINAPI IDirect3DDevice8Im IDirect3DDevice8Impl *This = (IDirect3DDevice8Impl *)iface; TRACE("(%p) Relay\n" , This); - return IWineD3DDevice_Clear(This->WineD3DDevice, Count, pRects, Flags, Color, Z, Stencil); + /* Note: D3DRECT is compatible with WINED3DRECT */ + return IWineD3DDevice_Clear(This->WineD3DDevice, Count, (CONST WINED3DRECT*) pRects, Flags, Color, Z, Stencil); } static HRESULT WINAPI IDirect3DDevice8Impl_SetTransform(LPDIRECT3DDEVICE8 iface, D3DTRANSFORMSTATETYPE State, CONST D3DMATRIX* lpMatrix) { diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c index ff5eada..b450cbb 100644 --- a/dlls/d3d9/device.c +++ b/dlls/d3d9/device.c @@ -361,7 +361,9 @@ static HRESULT WINAPI IDirect3DDevice9 IDirect3DDevice9Impl *This = (IDirect3DDevice9Impl *)iface; IDirect3DSurface9Impl *surface = (IDirect3DSurface9Impl *)pSurface; TRACE("(%p) Relay\n" , This); - return IWineD3DDevice_ColorFill(This->WineD3DDevice, surface->wineD3DSurface, (CONST D3DRECT*)pRect, color); + + /* Note: D3DRECT is compatible with WINED3DRECT */ + return IWineD3DDevice_ColorFill(This->WineD3DDevice, surface->wineD3DSurface, (CONST WINED3DRECT*)pRect, color); } static HRESULT WINAPI IDirect3DDevice9Impl_CreateOffscreenPlainSurface(LPDIRECT3DDEVICE9 iface, UINT Width, UINT Height, D3DFORMAT Format, D3DPOOL Pool, IDirect3DSurface9 **ppSurface, HANDLE* pSharedHandle) { @@ -458,7 +460,9 @@ static HRESULT WINAPI IDirect3DDevice9 static HRESULT WINAPI IDirect3DDevice9Impl_Clear(LPDIRECT3DDEVICE9 iface, DWORD Count, CONST D3DRECT* pRects, DWORD Flags, D3DCOLOR Color, float Z, DWORD Stencil) { IDirect3DDevice9Impl *This = (IDirect3DDevice9Impl *)iface; TRACE("(%p) Relay\n" , This); - return IWineD3DDevice_Clear(This->WineD3DDevice, Count, pRects, Flags, Color, Z, Stencil); + + /* Note: D3DRECT is compatible with WINED3DRECT */ + return IWineD3DDevice_Clear(This->WineD3DDevice, Count, (CONST WINED3DRECT*) pRects, Flags, Color, Z, Stencil); } static HRESULT WINAPI IDirect3DDevice9Impl_SetTransform(LPDIRECT3DDEVICE9 iface, D3DTRANSFORMSTATETYPE State, CONST D3DMATRIX* lpMatrix) { diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c index 78ed293..b0eccc9 100644 --- a/dlls/ddraw/device.c +++ b/dlls/ddraw/device.c @@ -4031,7 +4031,8 @@ IDirect3DDeviceImpl_7_Clear(IDirect3DDev ICOM_THIS_FROM(IDirect3DDeviceImpl, IDirect3DDevice7, iface); TRACE("(%p)->(%08x,%p,%08x,%08x,%f,%08x): Relay\n", This, Count, Rects, Flags, (DWORD) Color, Z, Stencil); - return IWineD3DDevice_Clear(This->wineD3DDevice, Count, Rects, Flags, Color, Z, Stencil); + /* Note; D3DRECT is compatible with WINED3DRECT */ + return IWineD3DDevice_Clear(This->wineD3DDevice, Count, (WINED3DRECT*) Rects, Flags, Color, Z, Stencil); } /***************************************************************************** diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 6de22f7..4b72580 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -6021,7 +6021,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl return WINED3D_OK; } -static HRESULT WINAPI IWineD3DDeviceImpl_Clear(IWineD3DDevice *iface, DWORD Count, CONST D3DRECT* pRects, +static HRESULT WINAPI IWineD3DDeviceImpl_Clear(IWineD3DDevice *iface, DWORD Count, CONST WINED3DRECT* pRects, DWORD Flags, D3DCOLOR Color, float Z, DWORD Stencil) { IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface; @@ -6034,7 +6034,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl GLint old_stencil_clear_value; GLfloat old_color_clear_value[4]; unsigned int i; - CONST D3DRECT* curRect; + CONST WINED3DRECT* curRect; TRACE("(%p) Count (%d), pRects (%p), Flags (%x), Z (%f), Stencil (%d)\n", This, Count, pRects, Flags, Z, Stencil); @@ -6108,7 +6108,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl checkGLcall("glClear"); /* Step to the next rectangle */ - if (curRect) curRect = curRect + sizeof(D3DRECT); + if (curRect) curRect = curRect + sizeof(WINED3DRECT); } /* Restore the old values (why..?) */ @@ -6995,7 +6995,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl return WINED3D_OK; } -static HRESULT WINAPI IWineD3DDeviceImpl_ColorFill(IWineD3DDevice *iface, IWineD3DSurface *pSurface, CONST D3DRECT* pRect, D3DCOLOR color) { +static HRESULT WINAPI IWineD3DDeviceImpl_ColorFill(IWineD3DDevice *iface, IWineD3DSurface *pSurface, CONST WINED3DRECT* pRect, D3DCOLOR color) { IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *) iface; IWineD3DSurfaceImpl *surface = (IWineD3DSurfaceImpl *) pSurface; DDBLTFX BltFx; diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 0377ddd..1242bbc 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -2237,7 +2237,7 @@ static HRESULT WINAPI IWineD3DSurfaceImp /* Not called from the VTable */ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *DestRect, IWineD3DSurface *SrcSurface, RECT *SrcRect, DWORD Flags, DDBLTFX *DDBltFx) { - D3DRECT rect; + WINED3DRECT rect; IWineD3DDeviceImpl *myDevice = This->resource.wineD3DDevice; IWineD3DSwapChainImpl *swapchain = NULL; IWineD3DSurfaceImpl *Src = (IWineD3DSurfaceImpl *) SrcSurface; @@ -2580,7 +2580,7 @@ static HRESULT IWineD3DSurfaceImpl_BltOv if( ( (IWineD3DSurface *) This != swapchain->frontBuffer) && ( swapchain->backBuffer && (IWineD3DSurface *) This != swapchain->backBuffer[0]) ) { UINT row; - D3DRECT srect; + WINED3DRECT srect; float xrel, yrel; TRACE("Blt from rendertarget to texture\n"); diff --git a/include/wine/wined3d_interface.h b/include/wine/wined3d_interface.h index 01a9d74..b6a2650 100644 --- a/include/wine/wined3d_interface.h +++ b/include/wine/wined3d_interface.h @@ -447,7 +447,7 @@ DECLARE_INTERFACE_(IWineD3DDevice,IWineD STDMETHOD(BeginScene)(THIS) PURE; STDMETHOD(EndScene)(THIS) PURE; STDMETHOD(Present)(THIS_ CONST RECT * pSourceRect,CONST RECT * pDestRect,HWND hDestWindowOverride,CONST RGNDATA * pDirtyRegion) PURE; - STDMETHOD(Clear)(THIS_ DWORD Count,CONST D3DRECT * pRects,DWORD Flags,D3DCOLOR Color,float Z,DWORD Stencil) PURE; + STDMETHOD(Clear)(THIS_ DWORD Count, CONST WINED3DRECT * pRects, DWORD Flags, D3DCOLOR Color,float Z, DWORD Stencil) PURE; STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT StartVertex,UINT PrimitiveCount) PURE; STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE PrimitiveType,INT baseVIdx, UINT minIndex,UINT NumVertices,UINT startIndex,UINT primCount) PURE; STDMETHOD(DrawPrimitiveUP)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT PrimitiveCount,CONST void * pVertexStreamZeroData,UINT VertexStreamZeroStride) PURE; @@ -456,7 +456,7 @@ DECLARE_INTERFACE_(IWineD3DDevice,IWineD STDMETHOD(DrawRectPatch)(THIS_ UINT Handle, CONST float* pNumSegs, CONST WINED3DRECTPATCH_INFO* pRectPatchInfo) PURE; STDMETHOD(DrawTriPatch)(THIS_ UINT Handle, CONST float* pNumSegs, CONST WINED3DTRIPATCH_INFO* pTriPatchInfo) PURE; STDMETHOD(DeletePatch)(THIS_ UINT Handle) PURE; - STDMETHOD(ColorFill)(THIS_ struct IWineD3DSurface* pSurface, CONST D3DRECT* pRect, D3DCOLOR color) PURE; + STDMETHOD(ColorFill)(THIS_ struct IWineD3DSurface* pSurface, CONST WINED3DRECT* pRect, D3DCOLOR color) PURE; STDMETHOD(UpdateTexture)(THIS_ struct IWineD3DBaseTexture *pSourceTexture, struct IWineD3DBaseTexture *pDestinationTexture) PURE; STDMETHOD(UpdateSurface)(THIS_ struct IWineD3DSurface* pSourceSurface, CONST RECT* pSourceRect, struct IWineD3DSurface* pDestinationSurface, CONST POINT* pDestPoint) PURE; STDMETHOD(CopyRects)(THIS_ struct IWineD3DSurface* pSourceSurface, CONST RECT* pSourceRectsArray, UINT cRects, struct IWineD3DSurface* pDestinationSurface, CONST POINT* pDestPointsArray); diff --git a/include/wine/wined3d_types.h b/include/wine/wined3d_types.h index ccd588f..9eac171 100644 --- a/include/wine/wined3d_types.h +++ b/include/wine/wined3d_types.h @@ -64,6 +64,13 @@ typedef struct _WINED3DMATRIX { } DUMMYUNIONNAME; } WINED3DMATRIX; +typedef struct _WINED3DRECT { + LONG x1; + LONG y1; + LONG x2; + LONG y2; +} WINED3DRECT; + typedef struct _WINED3DLIGHT { WINED3DLIGHTTYPE Type; WINED3DCOLORVALUE Diffuse;
1
0
0
0
Ivan Gyurdiev : wined3d: Merge D3DMATRIX types into one type in WINED3D namespace.
by Alexandre Julliard
12 Oct '06
12 Oct '06
Module: wine Branch: master Commit: ac371631246fbaddd43be503c589d66e5c6056f6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ac371631246fbaddd43be503c…
Author: Ivan Gyurdiev <ivg231(a)gmail.com> Date: Thu Oct 12 02:21:39 2006 -0400 wined3d: Merge D3DMATRIX types into one type in WINED3D namespace. --- dlls/d3d8/device.c | 9 ++++++--- dlls/d3d9/device.c | 12 +++++++++--- dlls/ddraw/device.c | 9 ++++++--- dlls/ddraw/executebuffer.c | 8 +++++--- dlls/wined3d/device.c | 20 ++++++++++---------- dlls/wined3d/stateblock.c | 6 +++--- dlls/wined3d/utils.c | 4 ++-- dlls/wined3d/wined3d_private.h | 4 ++-- include/wine/wined3d_interface.h | 6 +++--- include/wine/wined3d_types.h | 12 ++++++++++++ 10 files changed, 58 insertions(+), 32 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=ac371631246fbaddd43be…
1
0
0
0
← Newer
1
...
53
54
55
56
57
58
59
...
104
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
Results per page:
10
25
50
100
200