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
100d24f1
Commit
100d24f1
authored
Jun 17, 2008
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix calculation of toolbar width.
parent
b7c2ed30
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
projects/mozilla/vlcplugin.cpp
projects/mozilla/vlcplugin.cpp
+8
-8
No files found.
projects/mozilla/vlcplugin.cpp
View file @
100d24f1
...
@@ -427,56 +427,56 @@ void VlcPlugin::showToolbar()
...
@@ -427,56 +427,56 @@ void VlcPlugin::showToolbar()
if
(
p_btnPlay
)
if
(
p_btnPlay
)
{
{
i_height
=
__MAX
(
i_height
,
p_btnPlay
->
height
);
i_height
=
__MAX
(
i_height
,
p_btnPlay
->
height
);
i_width
=
__MAX
(
i_width
,
p_btnPlay
->
width
)
;
i_width
+=
p_btnPlay
->
width
;
}
}
XpmReadFileToImage
(
p_display
,
DATA_PATH
"/mozilla/pause.xpm"
,
XpmReadFileToImage
(
p_display
,
DATA_PATH
"/mozilla/pause.xpm"
,
&
p_btnPause
,
NULL
,
NULL
);
&
p_btnPause
,
NULL
,
NULL
);
if
(
p_btnPause
)
if
(
p_btnPause
)
{
{
i_height
=
__MAX
(
i_height
,
p_btnPause
->
height
);
i_height
=
__MAX
(
i_height
,
p_btnPause
->
height
);
i_width
=
__MAX
(
i_width
,
p_btnPause
->
width
)
;
i_width
+=
p_btnPause
->
width
;
}
}
XpmReadFileToImage
(
p_display
,
DATA_PATH
"/mozilla/stop.xpm"
,
XpmReadFileToImage
(
p_display
,
DATA_PATH
"/mozilla/stop.xpm"
,
&
p_btnStop
,
NULL
,
NULL
);
&
p_btnStop
,
NULL
,
NULL
);
if
(
p_btnStop
)
if
(
p_btnStop
)
{
{
i_height
=
__MAX
(
i_height
,
p_btnStop
->
height
);
i_height
=
__MAX
(
i_height
,
p_btnStop
->
height
);
i_width
=
__MAX
(
i_width
,
p_btnStop
->
width
)
;
i_width
+=
p_btnStop
->
width
;
}
}
XpmReadFileToImage
(
p_display
,
DATA_PATH
"/mozilla/time_line.xpm"
,
XpmReadFileToImage
(
p_display
,
DATA_PATH
"/mozilla/time_line.xpm"
,
&
p_timeline
,
NULL
,
NULL
);
&
p_timeline
,
NULL
,
NULL
);
if
(
p_timeline
)
if
(
p_timeline
)
{
{
i_height
=
__MAX
(
i_height
,
p_timeline
->
height
);
i_height
=
__MAX
(
i_height
,
p_timeline
->
height
);
i_width
=
__MAX
(
i_width
,
p_timeline
->
width
)
;
i_width
+=
p_timeline
->
width
;
}
}
XpmReadFileToImage
(
p_display
,
DATA_PATH
"/mozilla/time_icon.xpm"
,
XpmReadFileToImage
(
p_display
,
DATA_PATH
"/mozilla/time_icon.xpm"
,
&
p_btnTime
,
NULL
,
NULL
);
&
p_btnTime
,
NULL
,
NULL
);
if
(
p_btnTime
)
if
(
p_btnTime
)
{
{
i_height
=
__MAX
(
i_height
,
p_btnTime
->
height
);
i_height
=
__MAX
(
i_height
,
p_btnTime
->
height
);
i_width
=
__MAX
(
i_width
,
p_btnTime
->
width
)
;
i_width
+=
p_btnTime
->
width
;
}
}
XpmReadFileToImage
(
p_display
,
DATA_PATH
"/mozilla/fullscreen.xpm"
,
XpmReadFileToImage
(
p_display
,
DATA_PATH
"/mozilla/fullscreen.xpm"
,
&
p_btnFullscreen
,
NULL
,
NULL
);
&
p_btnFullscreen
,
NULL
,
NULL
);
if
(
p_btnFullscreen
)
if
(
p_btnFullscreen
)
{
{
i_height
=
__MAX
(
i_height
,
p_btnFullscreen
->
height
);
i_height
=
__MAX
(
i_height
,
p_btnFullscreen
->
height
);
i_width
=
__MAX
(
i_width
,
p_btnFullscreen
->
width
)
;
i_width
+=
p_btnFullscreen
->
width
;
}
}
XpmReadFileToImage
(
p_display
,
DATA_PATH
"/mozilla/volume_max.xpm"
,
XpmReadFileToImage
(
p_display
,
DATA_PATH
"/mozilla/volume_max.xpm"
,
&
p_btnMute
,
NULL
,
NULL
);
&
p_btnMute
,
NULL
,
NULL
);
if
(
p_btnMute
)
if
(
p_btnMute
)
{
{
i_height
=
__MAX
(
i_height
,
p_btnMute
->
height
);
i_height
=
__MAX
(
i_height
,
p_btnMute
->
height
);
i_width
=
__MAX
(
i_width
,
p_btnMute
->
width
)
;
i_width
+=
p_btnMute
->
width
;
}
}
XpmReadFileToImage
(
p_display
,
DATA_PATH
"/mozilla/volume_mute.xpm"
,
XpmReadFileToImage
(
p_display
,
DATA_PATH
"/mozilla/volume_mute.xpm"
,
&
p_btnUnmute
,
NULL
,
NULL
);
&
p_btnUnmute
,
NULL
,
NULL
);
if
(
p_btnUnmute
)
if
(
p_btnUnmute
)
{
{
i_height
=
__MAX
(
i_height
,
p_btnUnmute
->
height
);
i_height
=
__MAX
(
i_height
,
p_btnUnmute
->
height
);
i_width
=
__MAX
(
i_width
,
p_btnUnmute
->
width
)
;
i_width
+=
p_btnUnmute
->
width
;
}
}
setToolbarSize
(
i_width
,
i_height
);
setToolbarSize
(
i_width
,
i_height
);
...
...
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