Module: wine
Branch: master
Commit: 8d0ad2cf36a1ca4eaa2b408d33c2eb7d54bacd68
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8d0ad2cf36a1ca4eaa2b408d3…
Author: Henri Verbeet <hverbeet(a)codeweavers.com>
Date: Mon Aug 17 09:39:08 2009 +0200
wined3d: Remove a redundant IWineD3DDeviceImpl_MarkStateDirty() call.
We should now correctly track the relevant state per-context. The
IWineD3DDeviceImpl_SetViewport() call isn't quite correct for d3d8 and d3d9,
Stefan still has a patch for that.
---
dlls/wined3d/device.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 6afd5da..5d77931 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -6567,10 +6567,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderTarget(IWineD3DDevice *iface,
viewport.MaxZ = 1.0f;
viewport.MinZ = 0.0f;
IWineD3DDeviceImpl_SetViewport(iface, &viewport);
- /* Make sure the viewport state is dirty, because the render_offscreen thing affects it.
- * SetViewport may catch NOP viewport changes, which would occur when switching between equally sized targets
- */
- IWineD3DDeviceImpl_MarkStateDirty(This, STATE_VIEWPORT);
}
return WINED3D_OK;
}
Module: wine
Branch: master
Commit: a8e58307f91aa4515cf0d4bebb2d875b95e22bc8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a8e58307f91aa4515cf0d4beb…
Author: Dylan Smith <dylan.ah.smith(a)gmail.com>
Date: Fri Aug 14 22:23:13 2009 -0400
richedit: Fixed check for nOffset at the end of the cursor's run.
For some reason the code previously mixed up a selection cursor with the
result cursor. The problem seemed to have corrected itself before as a
result of conversion between offsets and cursors, but my recent changes
made this bug more severe.
---
dlls/riched20/caret.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/riched20/caret.c b/dlls/riched20/caret.c
index 11c3f1f..096d0d5 100644
--- a/dlls/riched20/caret.c
+++ b/dlls/riched20/caret.c
@@ -890,9 +890,9 @@ static BOOL ME_ReturnFoundPos(ME_TextEditor *editor, ME_DisplayItem *found,
rx = 0;
result->pRun = found;
result->nOffset = ME_CharFromPointCursor(editor, rx, &found->member.run);
- if (editor->pCursors[0].nOffset == found->member.run.strText->nLen && rx)
+ if (result->nOffset == found->member.run.strText->nLen && rx)
{
- result->pRun = ME_FindItemFwd(editor->pCursors[0].pRun, diRun);
+ result->pRun = ME_FindItemFwd(result->pRun, diRun);
result->nOffset = 0;
}
result->pPara = ME_GetParagraph(result->pRun);