Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
ee68542e
Commit
ee68542e
authored
May 25, 2003
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modules/gui/beos/MediaControlView.cpp: fixed a strange crash that happens
since the gettext behaviour changed
parent
f4fabf98
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/gui/beos/MediaControlView.cpp
modules/gui/beos/MediaControlView.cpp
+5
-5
No files found.
modules/gui/beos/MediaControlView.cpp
View file @
ee68542e
...
...
@@ -2,7 +2,7 @@
* MediaControlView.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: MediaControlView.cpp,v 1.1
6 2003/04/22 16:36:16
titer Exp $
* $Id: MediaControlView.cpp,v 1.1
7 2003/05/25 23:08:44
titer Exp $
*
* Authors: Tony Castley <tony@castley.net>
* Stephan Aßmus <stippi@yellowbites.com>
...
...
@@ -61,7 +61,7 @@ const rgb_color kSeekRed = (rgb_color){ 255, 0, 0, 255 };
const
rgb_color
kSeekRedLight
=
(
rgb_color
){
255
,
152
,
152
,
255
};
const
rgb_color
kSeekRedShadow
=
(
rgb_color
){
178
,
0
,
0
,
255
};
const
char
*
kDisabledSeekMessage
=
_
(
"Drop files to play"
);
#define DISABLED_SEEK_MESSAGE _("Drop files to play")
enum
{
...
...
@@ -695,7 +695,7 @@ SeekSlider::Draw(BRect updateRect)
SetHighColor
(
darkShadow
);
SetLowColor
(
shadow
);
// stripes
float
width
=
floorf
(
StringWidth
(
kDisabledSeekMessage
));
float
width
=
floorf
(
StringWidth
(
DISABLED_SEEK_MESSAGE
));
float
textPos
=
r
.
left
+
r
.
Width
()
/
2.0
-
width
/
2.0
;
pattern
stripes
=
{{
0xc7
,
0x8f
,
0x1f
,
0x3e
,
0x7c
,
0xf8
,
0xf1
,
0xe3
}};
BRect
stripesRect
(
r
);
...
...
@@ -712,7 +712,7 @@ SeekSlider::Draw(BRect updateRect)
SetLowColor
(
darkShadow
);
font_height
fh
;
GetFontHeight
(
&
fh
);
DrawString
(
kDisabledSeekMessage
,
BPoint
(
textPos
,
r
.
top
+
ceilf
(
fh
.
ascent
)
-
1.0
));
DrawString
(
DISABLED_SEEK_MESSAGE
,
BPoint
(
textPos
,
r
.
top
+
ceilf
(
fh
.
ascent
)
-
1.0
));
}
}
...
...
@@ -763,7 +763,7 @@ SeekSlider::MouseUp(BPoint where)
void
SeekSlider
::
ResizeToPreferred
()
{
float
width
=
15.0
+
StringWidth
(
kDisabledSeekMessage
)
+
15.0
;
float
width
=
15.0
+
StringWidth
(
DISABLED_SEEK_MESSAGE
)
+
15.0
;
ResizeTo
(
width
,
17.0
);
}
...
...
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