Author: akhaldi
Date: Sat Mar 5 09:57:50 2016
New Revision: 70923
URL:
http://svn.reactos.org/svn/reactos?rev=70923&view=rev
Log:
[RICHED20] Sync with Wine Staging 1.9.4. CORE-10912
Modified:
trunk/reactos/dll/win32/riched20/editor.c
trunk/reactos/dll/win32/riched20/run.c
trunk/reactos/dll/win32/riched20/wrap.c
trunk/reactos/media/doc/README.WINE
Modified: trunk/reactos/dll/win32/riched20/editor.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/riched20/editor.…
==============================================================================
--- trunk/reactos/dll/win32/riched20/editor.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/riched20/editor.c [iso-8859-1] Sat Mar 5 09:57:50 2016
@@ -544,7 +544,8 @@
PARAFORMAT2 fmt;
fmt.cbSize = sizeof(fmt);
fmt.dwMask = 0;
-
+ fmt.wEffects = 0;
+
switch(info->rtfMinor)
{
case rtfParDef: /* restores default paragraph attributes */
@@ -939,7 +940,7 @@
ME_DisplayItem *para = info->editor->pCursors[0].pPara;
PARAFORMAT2 *pFmt = para->member.para.pFmt;
pFmt->rgxTabs[cellNum] &= ~0x00FFFFFF;
- pFmt->rgxTabs[cellNum] = 0x00FFFFFF & info->rtfParam;
+ pFmt->rgxTabs[cellNum] |= 0x00FFFFFF & info->rtfParam;
}
info->tableDef->numCellsDefined++;
break;
Modified: trunk/reactos/dll/win32/riched20/run.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/riched20/run.c?r…
==============================================================================
--- trunk/reactos/dll/win32/riched20/run.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/riched20/run.c [iso-8859-1] Sat Mar 5 09:57:50 2016
@@ -102,6 +102,8 @@
{
ME_DisplayItem *p = editor->pBuffer->pFirst;
int ofs = 0, ofsp = 0;
+
+ TRACE_(richedit_check)("Checking begin\n");
if(TRACE_ON(richedit_lists))
{
TRACE_(richedit_lists)("---\n");
@@ -113,6 +115,7 @@
case diTextEnd:
TRACE_(richedit_check)("tend, real ofsp = %d, counted = %d\n",
p->member.para.nCharOfs, ofsp+ofs);
assert(ofsp+ofs == p->member.para.nCharOfs);
+ TRACE_(richedit_check)("Checking finished\n");
return;
case diParagraph:
TRACE_(richedit_check)("para, real ofsp = %d, counted = %d\n",
p->member.para.nCharOfs, ofsp+ofs);
@@ -137,6 +140,7 @@
assert(0);
}
} while(1);
+ TRACE_(richedit_check)("Checking finished\n");
}
/******************************************************************************
@@ -239,12 +243,8 @@
ME_Remove(pNext);
ME_DestroyDisplayItem(pNext);
ME_UpdateRunFlags(editor, &p->member.run);
- if(TRACE_ON(richedit))
- {
- TRACE("Before check after join\n");
+ if(TRACE_ON(richedit_check))
ME_CheckCharOffsets(editor);
- TRACE("After check after join\n");
- }
}
/******************************************************************************
Modified: trunk/reactos/dll/win32/riched20/wrap.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/riched20/wrap.c?…
==============================================================================
--- trunk/reactos/dll/win32/riched20/wrap.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/riched20/wrap.c [iso-8859-1] Sat Mar 5 09:57:50 2016
@@ -23,6 +23,7 @@
#include "editor.h"
WINE_DEFAULT_DEBUG_CHANNEL(richedit);
+WINE_DECLARE_DEBUG_CHANNEL(richedit_check);
/*
* Unsolved problems:
@@ -123,12 +124,8 @@
ME_Cursor cursor = {wc->pPara, item, nVChar};
assert(item->member.run.nCharOfs != -1);
- if(TRACE_ON(richedit))
- {
- TRACE("Before check before split\n");
+ if(TRACE_ON(richedit_check))
ME_CheckCharOffsets(editor);
- TRACE("After check before split\n");
- }
run = &item->member.run;
@@ -147,15 +144,12 @@
run2->pt.x = run->pt.x+run->nWidth;
run2->pt.y = run->pt.y;
- if(TRACE_ON(richedit))
- {
- TRACE("Before check after split\n");
+ if(TRACE_ON(richedit_check))
ME_CheckCharOffsets(editor);
- TRACE("After check after split\n");
- TRACE("After split: %s(%d, %d), %s(%d, %d)\n",
- debugstr_run( run ), run->pt.x, run->pt.y,
- debugstr_run( run2 ), run2->pt.x, run2->pt.y);
- }
+
+ TRACE("After split: %s(%d, %d), %s(%d, %d)\n",
+ debugstr_run( run ), run->pt.x, run->pt.y,
+ debugstr_run( run2 ), run2->pt.x, run2->pt.y);
return cursor.pRun;
}
Modified: trunk/reactos/media/doc/README.WINE
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/media/doc/README.WINE?rev=…
==============================================================================
--- trunk/reactos/media/doc/README.WINE [iso-8859-1] (original)
+++ trunk/reactos/media/doc/README.WINE [iso-8859-1] Sat Mar 5 09:57:50 2016
@@ -161,7 +161,7 @@
reactos/dll/win32/query # Synced to WineStaging-1.7.55
reactos/dll/win32/rasapi32 # Synced to WineStaging-1.9.4
reactos/dll/win32/resutils # Synced to WineStaging-1.7.55
-reactos/dll/win32/riched20 # Synced to WineStaging-1.7.55
+reactos/dll/win32/riched20 # Synced to WineStaging-1.9.4
reactos/dll/win32/riched32 # Synced to WineStaging-1.7.55
reactos/dll/win32/rpcrt4 # Synced to WineStaging-1.7.55
reactos/dll/win32/rsabase # Synced to WineStaging-1.7.55