Module: wine
Branch: master
Commit: 0420f17b1f144539ad2ea05186dc936242944680
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0420f17b1f144539ad2ea0518…
Author: Henri Verbeet <hverbeet(a)codeweavers.com>
Date: Tue Oct 7 16:01:01 2008 +0200
wined3d: Remove a redundant initialization of cfgs in WineD3D_ChoosePixelFormat.
---
dlls/wined3d/context.c | 39 +++++++++++++++++++--------------------
1 files changed, 19 insertions(+), 20 deletions(-)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 2aeb5fa..ce432c9 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -470,7 +470,6 @@ static int WineD3D_ChoosePixelFormat(IWineD3DDeviceImpl *This, HDC hdc, WINED3DF
int i = 0;
int nCfgs = This->adapter->nCfgs;
- WineD3D_PixelFormat *cfgs = This->adapter->cfgs;
TRACE("ColorFormat=%s, DepthStencilFormat=%s, auxBuffers=%d, numSamples=%d, pbuffer=%d, findCompatible=%d\n",
debug_d3dformat(ColorFormat), debug_d3dformat(DepthStencilFormat), auxBuffers, numSamples, pbuffer, findCompatible);
@@ -503,64 +502,64 @@ static int WineD3D_ChoosePixelFormat(IWineD3DDeviceImpl *This, HDC hdc, WINED3DF
for(matchtry = 0; matchtry < (sizeof(matches) / sizeof(matches[0])) && !iPixelFormat; matchtry++) {
for(i=0; i<nCfgs; i++) {
BOOL exactDepthMatch = TRUE;
- cfgs = &This->adapter->cfgs[i];
+ WineD3D_PixelFormat *cfg = &This->adapter->cfgs[i];
/* For now only accept RGBA formats. Perhaps some day we will
* allow floating point formats for pbuffers. */
- if(cfgs->iPixelType != WGL_TYPE_RGBA_ARB)
+ if(cfg->iPixelType != WGL_TYPE_RGBA_ARB)
continue;
/* In window mode (!pbuffer) we need a window drawable format and double buffering. */
- if(!pbuffer && !(cfgs->windowDrawable && cfgs->doubleBuffer))
+ if(!pbuffer && !(cfg->windowDrawable && cfg->doubleBuffer))
continue;
/* We like to have aux buffers in backbuffer mode */
- if(auxBuffers && !cfgs->auxBuffers && matches[matchtry].require_aux)
+ if(auxBuffers && !cfg->auxBuffers && matches[matchtry].require_aux)
continue;
/* In pbuffer-mode we need a pbuffer-capable format but we don't want double buffering */
- if(pbuffer && (!cfgs->pbufferDrawable || cfgs->doubleBuffer))
+ if(pbuffer && (!cfg->pbufferDrawable || cfg->doubleBuffer))
continue;
if(matches[matchtry].exact_color) {
- if(cfgs->redSize != redBits)
+ if(cfg->redSize != redBits)
continue;
- if(cfgs->greenSize != greenBits)
+ if(cfg->greenSize != greenBits)
continue;
- if(cfgs->blueSize != blueBits)
+ if(cfg->blueSize != blueBits)
continue;
} else {
- if(cfgs->redSize < redBits)
+ if(cfg->redSize < redBits)
continue;
- if(cfgs->greenSize < greenBits)
+ if(cfg->greenSize < greenBits)
continue;
- if(cfgs->blueSize < blueBits)
+ if(cfg->blueSize < blueBits)
continue;
}
if(matches[matchtry].exact_alpha) {
- if(cfgs->alphaSize != alphaBits)
+ if(cfg->alphaSize != alphaBits)
continue;
} else {
- if(cfgs->alphaSize < alphaBits)
+ if(cfg->alphaSize < alphaBits)
continue;
}
/* We try to locate a format which matches our requirements exactly. In case of
* depth it is no problem to emulate 16-bit using e.g. 24-bit, so accept that. */
- if(cfgs->depthSize < depthBits)
+ if(cfg->depthSize < depthBits)
continue;
- else if(cfgs->depthSize > depthBits)
+ else if(cfg->depthSize > depthBits)
exactDepthMatch = FALSE;
/* In all cases make sure the number of stencil bits matches our requirements
* even when we don't need stencil because it could affect performance EXCEPT
* on cards which don't offer depth formats without stencil like the i915 drivers
* on Linux. */
- if(stencilBits != cfgs->stencilSize && !(This->adapter->brokenStencil && stencilBits <= cfgs->stencilSize))
+ if(stencilBits != cfg->stencilSize && !(This->adapter->brokenStencil && stencilBits <= cfg->stencilSize))
continue;
/* Check multisampling support */
- if(cfgs->numSamples != numSamples)
+ if(cfg->numSamples != numSamples)
continue;
/* When we have passed all the checks then we have found a format which matches our
@@ -571,13 +570,13 @@ static int WineD3D_ChoosePixelFormat(IWineD3DDeviceImpl *This, HDC hdc, WINED3DF
/* Exit the loop as we have found a format :) */
if(exactDepthMatch) {
- iPixelFormat = cfgs->iPixelFormat;
+ iPixelFormat = cfg->iPixelFormat;
break;
} else if(!iPixelFormat) {
/* In the end we might end up with a format which doesn't exactly match our depth
* requirements. Accept the first format we found because formats with higher iPixelFormat
* values tend to have more extended capabilities (e.g. multisampling) which we don't need. */
- iPixelFormat = cfgs->iPixelFormat;
+ iPixelFormat = cfg->iPixelFormat;
}
}
}
Module: wine
Branch: master
Commit: d8c40f76414929e7f87e737f7baed0751279bb4a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d8c40f76414929e7f87e737f7…
Author: Henri Verbeet <hverbeet(a)codeweavers.com>
Date: Tue Oct 7 16:01:01 2008 +0200
wined3d: Print an error when drawStridedSlow() is called with 0 idxSize and non-NULL idxData (CID 509).
---
dlls/wined3d/drawprim.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c
index 95af758..512d85c 100644
--- a/dlls/wined3d/drawprim.c
+++ b/dlls/wined3d/drawprim.c
@@ -318,6 +318,9 @@ static void drawStridedSlow(IWineD3DDevice *iface, WineDirect3DVertexStridedData
if (idxSize == 2) pIdxBufS = (const WORD *) idxData;
else pIdxBufL = (const DWORD *) idxData;
+ } else if (idxData) {
+ ERR("non-NULL idxData with 0 idxSize, this should never happen\n");
+ return;
}
/* Adding the stream offset once is cheaper than doing it every iteration. Do not modify the strided data, it is a pointer
Module: website
Branch: master
Commit: c645a9aecc85d864731d15d4f7c238305f005ae2
URL: http://source.winehq.org/git/website.git/?a=commit;h=c645a9aecc85d864731d15…
Author: Zachary Goldberg <zgs(a)bluesata.com>
Date: Tue Oct 7 10:09:48 2008 -0500
WWN Issue 353 -- WineConf edition
---
news/en/2008100601.xml | 8 --------
news/en/2008100701.xml | 18 ++++++++++++++++++
wwn/en/{wn20081006_353.xml => wn20081007_353.xml} | 4 ++--
3 files changed, 20 insertions(+), 10 deletions(-)
diff --git a/news/en/2008100601.xml b/news/en/2008100601.xml
deleted file mode 100644
index dbfb322..0000000
--- a/news/en/2008100601.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<news>
- <date>October 06, 2008</date>
- <title>Wine Weekly News Issue 353</title>
- <body>
- <a href="?issue=353">WWN Issue 353</a> was released today.
- <!--MAINLINKS--> <!--ENDMAINLINKS-->
- </body>
-</news>
diff --git a/news/en/2008100701.xml b/news/en/2008100701.xml
new file mode 100644
index 0000000..7ce8cd5
--- /dev/null
+++ b/news/en/2008100701.xml
@@ -0,0 +1,18 @@
+<news>
+ <date>October 07, 2008</date>
+ <title>World Wine News Issue 353</title>
+ <body>
+ <a href="?issue=353">WWN Issue 353</a> was released today.
+ <ul>
+ <li><a href="?issue=353#News: WineConf 2008" class="small">News: WineConf 2008</a></li>
+ <li><a href="?issue=353#WineConf 2008 Keynote" class="small">WineConf 2008 Keynote</a></li>
+ <li><a href="?issue=353#Focusing on the Users" class="small">Focusing on the Users</a></li>
+ <li><a href="?issue=353#Wine's Image: WineHQ.org" class="small">Wine's Image: WineHQ.org</a></li>
+ <li><a href="?issue=353#Wine on other platforms (Solaris, BSD, OS X)" class="small">Wine on other platforms (Solaris, BSD, OS X)</a></li>
+ <li><a href="?issue=353#Wine 1.2 Timeline" class="small">Wine 1.2 Timeline</a></li>
+ <li><a href="?issue=353#Updates on The Big Tickets: Quartz, WineD3D, iPod Support, DIB Engine" class="small">Updates on The Big Tickets: Quartz, WineD3D, iPod Support, DIB Engine</a></li>
+ <li><a href="?issue=353#Weekly AppDB/BugZilla Status Changes" class="small">Weekly AppDB/BugZilla Status Changes</a></li>
+ </ul>
+ <p><a href="?issue=back">More Issues...</a></p>
+ </body>
+</news>
diff --git a/wwn/en/wn20081006_353.xml b/wwn/en/wn20081007_353.xml
similarity index 99%
rename from wwn/en/wn20081006_353.xml
rename to wwn/en/wn20081007_353.xml
index 35e1829..90e84b6 100644
--- a/wwn/en/wn20081006_353.xml
+++ b/wwn/en/wn20081007_353.xml
@@ -4,8 +4,8 @@
<title>Wine Traffic</title>
<author contact="http://www.bluesata.com">Zachary Goldberg</author>
-<issue num="353" date="10/06/2008" />
-<intro> <p>This is the 353 issue of the Wine Weekly News publication.
+<issue num="353" date="10/07/2008" />
+<intro> <p>This is the 353 issue of the World Wine News publication.
Its main goal is to bring WineConf 2008 information to the masses. It also serves to inform you of what's going on around Wine. Wine is an open source implementation of the Windows API on top of X and Unix. Think of it as a Windows compatibility layer. Wine does not require Microsoft Windows, as it is a completely alternative implementation consisting of 100% Microsoft-free code, but it can optionally use native system DLLs if they are available. You can find more info at <a href="http://www.winehq.org">www.winehq.org</a></p> </intro>
<stats posts="106" size="145" contrib="38" multiples="20" lastweek="27">