Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
163e9d1d
Commit
163e9d1d
authored
Jun 24, 2008
by
Alex Villacís Lasso
Committed by
Alexandre Julliard
Jun 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
richedit: Revert patch that introduced a test that fails on all platforms.
parent
ea20d6b7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
16 deletions
+1
-16
paint.c
dlls/riched20/paint.c
+1
-6
editor.c
dlls/riched20/tests/editor.c
+0
-10
No files found.
dlls/riched20/paint.c
View file @
163e9d1d
...
@@ -674,14 +674,9 @@ void ME_Scroll(ME_TextEditor *editor, int value, int type)
...
@@ -674,14 +674,9 @@ void ME_Scroll(ME_TextEditor *editor, int value, int type)
si
.
fMask
|=
SIF_DISABLENOSCROLL
;
si
.
fMask
|=
SIF_DISABLENOSCROLL
;
si
.
nMin
=
0
;
si
.
nMin
=
0
;
if
(
ME_GetTextLength
(
editor
)
>
0
)
{
si
.
nMax
=
editor
->
nTotalLength
;
si
.
nMax
=
editor
->
nTotalLength
;
si
.
nPage
=
editor
->
sizeWindow
.
cy
;
si
.
nPage
=
editor
->
sizeWindow
.
cy
;
}
else
{
si
.
nMax
=
si
.
nPage
=
0
;
}
TRACE
(
"min=%d max=%d page=%d
\n
"
,
si
.
nMin
,
si
.
nMax
,
si
.
nPage
);
TRACE
(
"min=%d max=%d page=%d
\n
"
,
si
.
nMin
,
si
.
nMax
,
si
.
nPage
);
SetScrollInfo
(
hWnd
,
SB_VERT
,
&
si
,
TRUE
);
SetScrollInfo
(
hWnd
,
SB_VERT
,
&
si
,
TRUE
);
...
...
dlls/riched20/tests/editor.c
View file @
163e9d1d
...
@@ -2038,16 +2038,6 @@ static void test_EM_SCROLL(void)
...
@@ -2038,16 +2038,6 @@ static void test_EM_SCROLL(void)
int
expr
;
/* expected return value */
int
expr
;
/* expected return value */
HWND
hwndRichEdit
=
new_richedit
(
NULL
);
HWND
hwndRichEdit
=
new_richedit
(
NULL
);
int
y_before
,
y_after
;
/* units of lines of text */
int
y_before
,
y_after
;
/* units of lines of text */
SCROLLINFO
si
;
/* Empty richedit should have scroll range of 0 */
si
.
cbSize
=
sizeof
(
si
);
si
.
fMask
=
SIF_RANGE
|
SIF_PAGE
|
SIF_POS
;
GetScrollInfo
(
hwndRichEdit
,
SB_VERT
,
&
si
);
ok
(
si
.
nMin
==
0
,
"si.nMin == %d, expected 0
\n
"
,
si
.
nMin
);
ok
(
si
.
nMax
==
0
,
"si.nMax == %d, expected 0
\n
"
,
si
.
nMax
);
ok
(
si
.
nPos
==
0
,
"si.nPos == %d, expected 0
\n
"
,
si
.
nPos
);
ok
(
si
.
nPage
==
0
,
"si.nPage == %d, expected 0
\n
"
,
si
.
nPage
);
/* test a richedit box containing a single line of text */
/* test a richedit box containing a single line of text */
SendMessage
(
hwndRichEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
"a"
);
/* one line of text */
SendMessage
(
hwndRichEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
"a"
);
/* one line of text */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment