Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
b62e621e
Commit
b62e621e
authored
Mar 03, 2004
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* utils/bezier.cpp: use lrint() to avoid rounding issues
* theme/skin.dtd: "" instead of "\0" for default values
parent
c0ede6a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
18 deletions
+16
-18
modules/gui/skins2/theme/skin.dtd
modules/gui/skins2/theme/skin.dtd
+13
-13
modules/gui/skins2/utils/bezier.cpp
modules/gui/skins2/utils/bezier.cpp
+3
-5
No files found.
modules/gui/skins2/theme/skin.dtd
View file @
b62e621e
...
...
@@ -82,7 +82,7 @@
rightbottom CDATA "lefttop"
image CDATA #REQUIRED
onclick CDATA "none"
help CDATA "
\0
"
help CDATA ""
>
<!ELEMENT Button EMPTY>
<!ATTLIST Button
...
...
@@ -95,8 +95,8 @@
down CDATA "none"
over CDATA "none"
action CDATA "none"
tooltiptext CDATA "
\0
"
help CDATA "
\0
"
tooltiptext CDATA ""
help CDATA ""
>
<!ELEMENT CheckBox EMPTY>
<!ATTLIST CheckBox
...
...
@@ -114,9 +114,9 @@
state CDATA #REQUIRED
action1 CDATA "none"
action2 CDATA "none"
tooltiptext1 CDATA "
\0
"
tooltiptext2 CDATA "
\0
"
help CDATA "
\0
"
tooltiptext1 CDATA ""
tooltiptext2 CDATA ""
help CDATA ""
>
<!ELEMENT Slider EMPTY>
<!ATTLIST Slider
...
...
@@ -132,8 +132,8 @@
points CDATA #REQUIRED
thickness CDATA "10"
value CDATA "none"
tooltiptext CDATA "
\0
"
help CDATA "
\0
"
tooltiptext CDATA ""
help CDATA ""
>
<!ELEMENT RadialSlider EMPTY>
<!ATTLIST RadialSlider
...
...
@@ -148,8 +148,8 @@
minangle CDATA "0"
maxangle CDATA "360"
value CDATA "none"
tooltiptext CDATA "
\0
"
help CDATA "
\0
"
tooltiptext CDATA ""
help CDATA ""
>
<!ELEMENT Text EMPTY>
<!ATTLIST Text
...
...
@@ -157,11 +157,11 @@
visible CDATA "true"
x CDATA "0"
y CDATA "0"
text CDATA "
\0
"
text CDATA ""
font CDATA #REQUIRED
color CDATA "#000000"
width CDATA "0"
help CDATA "
\0
"
help CDATA ""
>
<!ELEMENT Playlist (Slider)>
<!ATTLIST Playlist
...
...
@@ -180,5 +180,5 @@
bgcolor1 CDATA "#FFFFFF"
bgcolor2 CDATA "#FFFFFF"
selcolor CDATA "#0000FF"
help CDATA "
\0
"
help CDATA ""
>
modules/gui/skins2/utils/bezier.cpp
View file @
b62e621e
...
...
@@ -2,7 +2,7 @@
* bezier.cpp
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: bezier.cpp,v 1.
4 2004/03/02 21:45:15 ipkiss
Exp $
* $Id: bezier.cpp,v 1.
5 2004/03/03 22:57:15 asmax
Exp $
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
* Olivier Teulire <ipkiss@via.ecp.fr>
...
...
@@ -189,10 +189,8 @@ void Bezier::computePoint( float t, int &x, int &y ) const
yPos
+=
m_pty
[
i
]
*
coeff
;
}
// Float cast to avoid strange truncatures
// XXX: not very nice...
x
=
(
int
)(
float
)
xPos
;
y
=
(
int
)(
float
)
yPos
;
x
=
lrintf
(
xPos
);
y
=
lrintf
(
yPos
);
}
...
...
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