Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
260e120d
Commit
260e120d
authored
Oct 08, 2003
by
zorglub
Browse files
* Fixed slider values (boundaries were wrong, some values were unreachable)
parent
e8fbf16e
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/gui/wxwindows/interface.cpp
View file @
260e120d
...
...
@@ -2,7 +2,7 @@
* interface.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: interface.cpp,v 1.6
3
2003/10/08 1
0:07:22
zorglub Exp $
* $Id: interface.cpp,v 1.6
4
2003/10/08 1
2:18:50
zorglub Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -605,10 +605,10 @@ void Interface::CreateOurExtraPanel()
float
f_value
;
f_value
=
config_GetFloat
(
p_intf
,
"saturation"
);
if
(
f_value
>
0
&&
f_value
<
3
)
if
(
f_value
>
0
&&
f_value
<
5
)
saturation_slider
->
SetValue
(
(
int
)(
100
*
f_value
)
);
f_value
=
config_GetFloat
(
p_intf
,
"contrast"
);
if
(
f_value
>
0
&&
f_value
<
2
)
if
(
f_value
>
0
&&
f_value
<
4
)
contrast_slider
->
SetValue
(
(
int
)(
100
*
f_value
)
);
f_value
=
config_GetFloat
(
p_intf
,
"brightness"
);
if
(
f_value
>
0
&&
f_value
<
2
)
...
...
@@ -944,17 +944,17 @@ void Interface::OnHueUpdate( wxScrollEvent& event)
void
Interface
::
OnSaturationUpdate
(
wxScrollEvent
&
event
)
{
config_PutFloat
(
p_intf
,
"saturation"
,
(
float
)
event
.
GetPosition
()
/
3
00
);
config_PutFloat
(
p_intf
,
"saturation"
,
(
float
)
event
.
GetPosition
()
/
1
00
);
}
void
Interface
::
OnBrightnessUpdate
(
wxScrollEvent
&
event
)
{
config_PutFloat
(
p_intf
,
"brightness"
,
(
float
)
event
.
GetPosition
()
/
2
00
);
config_PutFloat
(
p_intf
,
"brightness"
,
(
float
)
event
.
GetPosition
()
/
1
00
);
}
void
Interface
::
OnContrastUpdate
(
wxScrollEvent
&
event
)
{
config_PutFloat
(
p_intf
,
"contrast"
,
(
float
)
event
.
GetPosition
()
/
2
00
);
config_PutFloat
(
p_intf
,
"contrast"
,
(
float
)
event
.
GetPosition
()
/
1
00
);
}
...
...
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