Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
1c8f01d5
Commit
1c8f01d5
authored
Aug 31, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Negative values was rounded erroneously in option menues
parent
c0b4e549
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
xtt/lib/ge/src/ge_dyn.cpp
xtt/lib/ge/src/ge_dyn.cpp
+4
-1
No files found.
xtt/lib/ge/src/ge_dyn.cpp
View file @
1c8f01d5
...
...
@@ -11386,7 +11386,10 @@ int GeOptionMenu::scan( grow_tObject object)
unsigned
int
enum_value
;
switch
(
type_id
)
{
case
pwr_eType_Float32
:
enum_value
=
(
unsigned
int
)
(
*
(
pwr_tFloat32
*
)
p
+
0.5
);
break
;
case
pwr_eType_Float32
:
enum_value
=
(
unsigned
int
)
(
*
(
pwr_tFloat32
*
)
p
>
0
?
*
(
pwr_tFloat32
*
)
p
+
0.5
:
*
(
pwr_tFloat32
*
)
p
-
0.5
);
break
;
case
pwr_eType_Int32
:
enum_value
=
(
unsigned
int
)
*
(
pwr_tInt32
*
)
p
;
break
;
case
pwr_eType_UInt32
:
enum_value
=
(
unsigned
int
)
*
(
pwr_tUInt32
*
)
p
;
break
;
case
pwr_eType_Int16
:
enum_value
=
(
unsigned
int
)
*
(
pwr_tInt16
*
)
p
;
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