Commit 2eec4f03 authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

richedit: Fixed the selection bar width.

parent db95d69f
......@@ -1697,7 +1697,7 @@ ME_TextEditor *ME_MakeEditor(HWND hWnd) {
ME_CheckCharOffsets(ed);
if (GetWindowLongW(hWnd, GWL_STYLE) & ES_SELECTIONBAR)
ed->selofs = 16;
ed->selofs = SELECTIONBAR_WIDTH;
else
ed->selofs = 0;
ed->linesel = 0;
......@@ -2111,7 +2111,7 @@ static LRESULT RichEditWndProc_common(HWND hWnd, UINT msg, WPARAM wParam,
if (settings & ECO_AUTOWORDSELECTION)
FIXME("ECO_AUTOWORDSELECTION not implemented yet!\n");
if (settings & ECO_SELECTIONBAR)
editor->selofs = 16;
editor->selofs = SELECTIONBAR_WIDTH;
else
editor->selofs = 0;
ME_WrapMarkedParagraphs(editor);
......
......@@ -90,6 +90,8 @@ typedef enum {
diUndoPotentialEndTransaction, /* 19 - allows grouping typed chars for undo */
} ME_DIType;
#define SELECTIONBAR_WIDTH 9
/******************************** run flags *************************/
#define MERF_STYLEFLAGS 0x0FFF
/* run contains non-text content, which has its own rules for wrapping, sizing etc */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment