Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
e59bf8c5
Commit
e59bf8c5
authored
Jan 14, 2008
by
Christopher Berner
Committed by
Alexandre Julliard
Jan 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fixed off by one scroll bar pixels.
parent
538071ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
scroll.c
dlls/user32/scroll.c
+2
-8
No files found.
dlls/user32/scroll.c
View file @
e59bf8c5
...
...
@@ -210,10 +210,7 @@ static BOOL SCROLL_GetScrollBarRect( HWND hwnd, INT nBar, RECT *lprect,
lprect
->
top
=
wndPtr
->
rectClient
.
bottom
-
wndPtr
->
rectWindow
.
top
;
lprect
->
right
=
wndPtr
->
rectClient
.
right
-
wndPtr
->
rectWindow
.
left
;
lprect
->
bottom
=
lprect
->
top
+
GetSystemMetrics
(
SM_CYHSCROLL
);
if
(
wndPtr
->
dwStyle
&
WS_BORDER
)
{
lprect
->
left
--
;
lprect
->
right
++
;
}
else
if
(
wndPtr
->
dwStyle
&
WS_VSCROLL
)
if
(
wndPtr
->
dwStyle
&
WS_VSCROLL
)
lprect
->
right
++
;
vertical
=
FALSE
;
break
;
...
...
@@ -226,10 +223,7 @@ static BOOL SCROLL_GetScrollBarRect( HWND hwnd, INT nBar, RECT *lprect,
lprect
->
top
=
wndPtr
->
rectClient
.
top
-
wndPtr
->
rectWindow
.
top
;
lprect
->
right
=
lprect
->
left
+
GetSystemMetrics
(
SM_CXVSCROLL
);
lprect
->
bottom
=
wndPtr
->
rectClient
.
bottom
-
wndPtr
->
rectWindow
.
top
;
if
(
wndPtr
->
dwStyle
&
WS_BORDER
)
{
lprect
->
top
--
;
lprect
->
bottom
++
;
}
else
if
(
wndPtr
->
dwStyle
&
WS_HSCROLL
)
if
(
wndPtr
->
dwStyle
&
WS_HSCROLL
)
lprect
->
bottom
++
;
vertical
=
TRUE
;
break
;
...
...
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