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
956c296a
Commit
956c296a
authored
Mar 05, 2009
by
Jeremy White
Committed by
Alexandre Julliard
Mar 06, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sane.ds: Fix a subtle bug that prevented the float scrollbar from incrementing by one.
parent
1bdac9cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
ui.c
dlls/sane.ds/ui.c
+6
-2
No files found.
dlls/sane.ds/ui.c
View file @
956c296a
...
...
@@ -853,10 +853,14 @@ static INT_PTR InitializeDialog(HWND hwnd)
dd
=
SANE_UNFIX
(
*
sf
);
HeapFree
(
GetProcessHeap
(),
0
,
sf
);
/* Note that conversion of float -> SANE_Fixed is lossy;
* and when you truncate it into an integer, you can get
* unfortunate results. This calculation attempts
* to mitigate that harm */
if
(
s_quant
)
pos
=
(
dd
/
s_quant
);
pos
=
(
(
dd
+
(
s_quant
/
2
.
0
))
/
s_quant
);
else
pos
=
dd
/
0
.
01
;
pos
=
(
dd
+
0
.
005
)
/
0
.
01
;
SendMessageW
(
control
,
SBM_SETPOS
,
pos
,
TRUE
);
...
...
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