Module: wine
Branch: master
Commit: 024b5c2245c374bedc7685bd8539b7010bc38227
URL: http://source.winehq.org/git/wine.git/?a=commit;h=024b5c2245c374bedc7685bd8…
Author: Henri Verbeet <hverbeet(a)codeweavers.com>
Date: Sun Apr 3 23:35:30 2011 +0200
ddraw: Do not unset the index buffer on D3D device destruction.
---
dlls/ddraw/device.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c
index 54e549f..9f8a6dd 100644
--- a/dlls/ddraw/device.c
+++ b/dlls/ddraw/device.c
@@ -288,15 +288,13 @@ IDirect3DDeviceImpl_7_Release(IDirect3DDevice7 *iface)
DWORD i;
EnterCriticalSection(&ddraw_cs);
+
+ /* There is no need to unset any resources here, wined3d will take
+ * care of that on Uninit3D(). */
+
/* Free the index buffer. */
- IWineD3DDevice_SetIndexBuffer(This->wineD3DDevice, NULL, WINED3DFMT_UNKNOWN);
wined3d_buffer_decref(This->indexbuffer);
- /* There is no need to unset the vertex buffer here, IWineD3DDevice_Uninit3D will do that when
- * destroying the primary stateblock. If a vertex buffer is destroyed while it is bound
- * IDirect3DVertexBuffer::Release will unset it.
- */
-
/* Set the device up to render to the front buffer since the back
* buffer will vanish soon. */
IWineD3DDevice_SetRenderTarget(This->wineD3DDevice, 0,
Module: wine
Branch: master
Commit: 5a8be0bc203b77095205d8942e59189fd77dfc32
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5a8be0bc203b77095205d8942…
Author: Nikolay Sivov <nsivov(a)codeweavers.com>
Date: Sat Apr 2 11:43:59 2011 +0400
comctl32/monthcal: Week numbers use title colour.
---
dlls/comctl32/monthcal.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c
index bae19f8..fc0cf3f 100644
--- a/dlls/comctl32/monthcal.c
+++ b/dlls/comctl32/monthcal.c
@@ -6,7 +6,7 @@
* Copyright 1999 Chris Morgan <cmorgan(a)wpi.edu> and
* James Abbatiello <abbeyj(a)wpi.edu>
* Copyright 2000 Uwe Bonnes <bon(a)elektron.ikp.physik.tu-darmstadt.de>
- * Copyright 2009, 2010 Nikolay Sivov
+ * Copyright 2009-2011 Nikolay Sivov
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -855,6 +855,7 @@ static void MONTHCAL_PaintWeeknumbers(const MONTHCAL_INFO *infoPtr, HDC hdc, con
/* erase whole week numbers area */
FillRect(hdc, &r, infoPtr->brushes[MCSC_MONTHBK]);
+ SetTextColor(hdc, infoPtr->colors[MCSC_TITLEBK]);
/* reduce rectangle to one week number */
r.bottom = r.top + infoPtr->height_increment;