Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc-gpu
Commits
b68c1a2b
Commit
b68c1a2b
authored
Mar 14, 2005
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* macosx: simplify volume update method for scrollfield usage.
parent
dfab7288
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
modules/gui/macosx/controls.m
modules/gui/macosx/controls.m
+4
-10
No files found.
modules/gui/macosx/controls.m
View file @
b68c1a2b
...
...
@@ -254,20 +254,14 @@
-
(
void
)
updateVolumeSlider
{
NSString
*
o_text
;
char
*
psz_text
;
intf_thread_t
*
p_intf
=
VLCIntf
;
audio_volume_t
i_volume
;
aout_VolumeGet
(
p_intf
,
&
i_volume
);
psz_text
=
malloc
(
32
*
sizeof
(
char
)
);
/*FIXME: do we really need to work with a char * before NSString ? */
if
(
psz_text
)
{
sprintf
(
psz_text
,
"Volume: %d"
,
i_volume
*
200
/
AOUT_VOLUME_MAX
);
o_text
=
[[
NSString
alloc
]
initWithCString
:
psz_text
];
o_text
=
[
NSString
stringWithFormat
:
@"Volume: %d"
,
i_volume
*
200
/
AOUT_VOLUME_MAX
];
[
o_main
setScrollField
:
o_text
stopAfter
:
1000000
];
free
(
psz_text
);
}
[
o_volumeslider
setFloatValue
:
(
float
)(
i_volume
/
AOUT_VOLUME_STEP
)];
}
...
...
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