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
ab6a48f9
Commit
ab6a48f9
authored
Jul 18, 2005
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- all: compilation fixes with vc7.1
parent
28c54f7f
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
36 additions
and
21 deletions
+36
-21
modules/gui/skins2/controls/ctrl_radialslider.cpp
modules/gui/skins2/controls/ctrl_radialslider.cpp
+1
-1
modules/gui/skins2/src/dialogs.cpp
modules/gui/skins2/src/dialogs.cpp
+1
-1
modules/gui/skins2/src/theme_loader.cpp
modules/gui/skins2/src/theme_loader.cpp
+3
-3
modules/gui/skins2/src/theme_repository.cpp
modules/gui/skins2/src/theme_repository.cpp
+2
-2
modules/gui/skins2/src/vlcproc.cpp
modules/gui/skins2/src/vlcproc.cpp
+3
-3
modules/gui/skins2/src/vlcproc.hpp
modules/gui/skins2/src/vlcproc.hpp
+1
-1
modules/gui/skins2/utils/bezier.cpp
modules/gui/skins2/utils/bezier.cpp
+13
-3
modules/gui/skins2/utils/var_percent.cpp
modules/gui/skins2/utils/var_percent.cpp
+0
-5
modules/gui/skins2/utils/var_percent.hpp
modules/gui/skins2/utils/var_percent.hpp
+3
-1
modules/gui/skins2/vars/playlist.cpp
modules/gui/skins2/vars/playlist.cpp
+3
-0
modules/gui/skins2/win32/win32_graphics.cpp
modules/gui/skins2/win32/win32_graphics.cpp
+1
-1
modules/gui/skins2/win32/win32_window.cpp
modules/gui/skins2/win32/win32_window.cpp
+5
-0
No files found.
modules/gui/skins2/controls/ctrl_radialslider.cpp
View file @
ab6a48f9
...
@@ -151,7 +151,7 @@ void CtrlRadialSlider::setCursor( int posX, int posY, bool blocking )
...
@@ -151,7 +151,7 @@ void CtrlRadialSlider::setCursor( int posX, int posY, bool blocking )
int
y
=
posY
-
pPos
->
getTop
()
-
m_width
/
2
;
int
y
=
posY
-
pPos
->
getTop
()
-
m_width
/
2
;
// Compute the polar coordinates. angle is -(-j,OM)
// Compute the polar coordinates. angle is -(-j,OM)
float
r
=
sqrt
(
x
*
x
+
y
*
y
);
float
r
=
sqrt
(
(
float
)(
x
*
x
+
y
*
y
)
);
if
(
r
==
0
)
if
(
r
==
0
)
{
{
return
;
return
;
...
...
modules/gui/skins2/src/dialogs.cpp
View file @
ab6a48f9
...
@@ -99,7 +99,7 @@ static int PopupMenuCB( vlc_object_t *p_this, const char *psz_variable,
...
@@ -99,7 +99,7 @@ static int PopupMenuCB( vlc_object_t *p_this, const char *psz_variable,
vlc_value_t
old_val
,
vlc_value_t
new_val
,
void
*
param
)
vlc_value_t
old_val
,
vlc_value_t
new_val
,
void
*
param
)
{
{
Dialogs
*
p_dialogs
=
(
Dialogs
*
)
param
;
Dialogs
*
p_dialogs
=
(
Dialogs
*
)
param
;
p_dialogs
->
showPopupMenu
(
new_val
.
b_bool
);
p_dialogs
->
showPopupMenu
(
new_val
.
b_bool
!=
0
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
...
modules/gui/skins2/src/theme_loader.cpp
View file @
ab6a48f9
...
@@ -224,7 +224,7 @@ bool ThemeLoader::findThemeFile( const string &rootDir, string &themeFilePath )
...
@@ -224,7 +224,7 @@ bool ThemeLoader::findThemeFile( const string &rootDir, string &themeFilePath )
}
}
// Get the first directory entry
// Get the first directory entry
pDirContent
=
readdir
(
pCurrDir
);
pDirContent
=
(
dirent
*
)
readdir
(
pCurrDir
);
// While we still have entries in the directory
// While we still have entries in the directory
while
(
pDirContent
!=
NULL
)
while
(
pDirContent
!=
NULL
)
...
@@ -265,7 +265,7 @@ bool ThemeLoader::findThemeFile( const string &rootDir, string &themeFilePath )
...
@@ -265,7 +265,7 @@ bool ThemeLoader::findThemeFile( const string &rootDir, string &themeFilePath )
}
}
}
}
pDirContent
=
readdir
(
pCurrDir
);
pDirContent
=
(
dirent
*
)
readdir
(
pCurrDir
);
}
}
closedir
(
pCurrDir
);
closedir
(
pCurrDir
);
...
@@ -535,7 +535,7 @@ int gzopen_frontend( char *pathname, int oflags, int mode )
...
@@ -535,7 +535,7 @@ int gzopen_frontend( char *pathname, int oflags, int mode )
char
*
gzflags
;
char
*
gzflags
;
gzFile
gzf
;
gzFile
gzf
;
switch
(
oflags
&
O_ACCMODE
)
switch
(
oflags
)
{
{
case
O_WRONLY
:
case
O_WRONLY
:
gzflags
=
"wb"
;
gzflags
=
"wb"
;
...
...
modules/gui/skins2/src/theme_repository.cpp
View file @
ab6a48f9
...
@@ -114,7 +114,7 @@ void ThemeRepository::parseDirectory( const string &rDir )
...
@@ -114,7 +114,7 @@ void ThemeRepository::parseDirectory( const string &rDir )
}
}
// Get the first directory entry
// Get the first directory entry
pDirContent
=
readdir
(
pDir
);
pDirContent
=
(
dirent
*
)
readdir
(
pDir
);
// While we still have entries in the directory
// While we still have entries in the directory
while
(
pDirContent
!=
NULL
)
while
(
pDirContent
!=
NULL
)
...
@@ -132,7 +132,7 @@ void ThemeRepository::parseDirectory( const string &rDir )
...
@@ -132,7 +132,7 @@ void ThemeRepository::parseDirectory( const string &rDir )
&
text
);
&
text
);
}
}
pDirContent
=
readdir
(
pDir
);
pDirContent
=
(
dirent
*
)
readdir
(
pDir
);
}
}
closedir
(
pDir
);
closedir
(
pDir
);
...
...
modules/gui/skins2/src/vlcproc.cpp
View file @
ab6a48f9
...
@@ -260,15 +260,15 @@ void VlcProc::manage()
...
@@ -260,15 +260,15 @@ void VlcProc::manage()
// Refresh the random variable
// Refresh the random variable
vlc_value_t
val
;
vlc_value_t
val
;
var_Get
(
getIntf
()
->
p_sys
->
p_playlist
,
"random"
,
&
val
);
var_Get
(
getIntf
()
->
p_sys
->
p_playlist
,
"random"
,
&
val
);
pVarRandom
->
set
(
val
.
b_bool
);
pVarRandom
->
set
(
val
.
b_bool
!=
0
);
// Refresh the loop variable
// Refresh the loop variable
var_Get
(
getIntf
()
->
p_sys
->
p_playlist
,
"loop"
,
&
val
);
var_Get
(
getIntf
()
->
p_sys
->
p_playlist
,
"loop"
,
&
val
);
pVarLoop
->
set
(
val
.
b_bool
);
pVarLoop
->
set
(
val
.
b_bool
!=
0
);
// Refresh the repeat variable
// Refresh the repeat variable
var_Get
(
getIntf
()
->
p_sys
->
p_playlist
,
"repeat"
,
&
val
);
var_Get
(
getIntf
()
->
p_sys
->
p_playlist
,
"repeat"
,
&
val
);
pVarRepeat
->
set
(
val
.
b_bool
);
pVarRepeat
->
set
(
val
.
b_bool
!=
0
);
}
}
...
...
modules/gui/skins2/src/vlcproc.hpp
View file @
ab6a48f9
...
@@ -71,7 +71,7 @@ class VlcProc: public SkinObject
...
@@ -71,7 +71,7 @@ class VlcProc: public SkinObject
void
unregisterVoutWindow
(
void
*
pVoutWindow
);
void
unregisterVoutWindow
(
void
*
pVoutWindow
);
/// Indicate whether the embedded video output is currently used
/// Indicate whether the embedded video output is currently used
bool
isVoutUsed
()
const
{
return
m_pVout
;
}
bool
isVoutUsed
()
const
{
return
m_pVout
!=
NULL
;
}
/// If an embedded video output is used, drop it (i.e. tell it to stop
/// If an embedded video output is used, drop it (i.e. tell it to stop
/// using our window handle)
/// using our window handle)
...
...
modules/gui/skins2/utils/bezier.cpp
View file @
ab6a48f9
...
@@ -26,8 +26,18 @@
...
@@ -26,8 +26,18 @@
#include "bezier.hpp"
#include "bezier.hpp"
#include <math.h>
#include <math.h>
// XXX should be in VLC core
#ifndef HAVE_LRINTF
#ifndef HAVE_LRINTF
# define lrintf(a) (int)rint(a)
# ifdef HAVE_LRINT
# define lrintf( x ) (int)rint( x )
# elif defined WIN32
__inline
long
int
lrintf
(
float
x
)
{
int
i
;
_asm
fld
x
__asm
fistp
i
return
i
;
}
# endif
#endif
#endif
Bezier
::
Bezier
(
intf_thread_t
*
p_intf
,
const
vector
<
float
>
&
rAbscissas
,
Bezier
::
Bezier
(
intf_thread_t
*
p_intf
,
const
vector
<
float
>
&
rAbscissas
,
...
@@ -100,8 +110,8 @@ float Bezier::getNearestPercent( int x, int y ) const
...
@@ -100,8 +110,8 @@ float Bezier::getNearestPercent( int x, int y ) const
float
Bezier
::
getMinDist
(
int
x
,
int
y
)
const
float
Bezier
::
getMinDist
(
int
x
,
int
y
)
const
{
{
int
nearest
=
findNearestPoint
(
x
,
y
);
int
nearest
=
findNearestPoint
(
x
,
y
);
return
sqrt
(
(
m_leftVect
[
nearest
]
-
x
)
*
(
m_leftVect
[
nearest
]
-
x
)
+
return
sqrt
(
(
double
)((
m_leftVect
[
nearest
]
-
x
)
*
(
m_leftVect
[
nearest
]
-
x
)
+
(
m_topVect
[
nearest
]
-
y
)
*
(
m_topVect
[
nearest
]
-
y
)
);
(
m_topVect
[
nearest
]
-
y
)
*
(
m_topVect
[
nearest
]
-
y
)
)
);
}
}
...
...
modules/gui/skins2/utils/var_percent.cpp
View file @
ab6a48f9
...
@@ -28,11 +28,6 @@
...
@@ -28,11 +28,6 @@
const
string
VarPercent
::
m_type
=
"percent"
;
const
string
VarPercent
::
m_type
=
"percent"
;
VarPercent
::
VarPercent
(
intf_thread_t
*
pIntf
)
:
Variable
(
pIntf
),
m_value
(
0
)
{
}
void
VarPercent
::
set
(
float
percentage
)
void
VarPercent
::
set
(
float
percentage
)
{
{
if
(
percentage
<
0
)
if
(
percentage
<
0
)
...
...
modules/gui/skins2/utils/var_percent.hpp
View file @
ab6a48f9
...
@@ -28,12 +28,14 @@
...
@@ -28,12 +28,14 @@
#include "variable.hpp"
#include "variable.hpp"
#include "observer.hpp"
#include "observer.hpp"
class
VarPercent
;
/// Percentage variable
/// Percentage variable
class
VarPercent
:
public
Variable
,
public
Subject
<
VarPercent
>
class
VarPercent
:
public
Variable
,
public
Subject
<
VarPercent
>
{
{
public:
public:
VarPercent
(
intf_thread_t
*
pIntf
)
;
VarPercent
(
intf_thread_t
*
pIntf
)
:
Variable
(
pIntf
),
m_value
(
0
)
{}
virtual
~
VarPercent
()
{}
virtual
~
VarPercent
()
{}
/// Get the variable type
/// Get the variable type
...
...
modules/gui/skins2/vars/playlist.cpp
View file @
ab6a48f9
...
@@ -38,7 +38,10 @@ Playlist::Playlist( intf_thread_t *pIntf ): VarList( pIntf )
...
@@ -38,7 +38,10 @@ Playlist::Playlist( intf_thread_t *pIntf ): VarList( pIntf )
vlc_current_charset
(
&
pCharset
);
vlc_current_charset
(
&
pCharset
);
iconvHandle
=
vlc_iconv_open
(
"UTF-8"
,
pCharset
);
iconvHandle
=
vlc_iconv_open
(
"UTF-8"
,
pCharset
);
msg_Dbg
(
pIntf
,
"Using character encoding: %s"
,
pCharset
);
msg_Dbg
(
pIntf
,
"Using character encoding: %s"
,
pCharset
);
#ifndef WIN32
// vlc_current_charset returns a pointer on a satic char[] on win32
free
(
pCharset
);
free
(
pCharset
);
#endif
if
(
iconvHandle
==
(
vlc_iconv_t
)
-
1
)
if
(
iconvHandle
==
(
vlc_iconv_t
)
-
1
)
{
{
...
...
modules/gui/skins2/win32/win32_graphics.cpp
View file @
ab6a48f9
...
@@ -331,7 +331,7 @@ void Win32Graphics::copyToWindow( OSWindow &rWindow, int xSrc, int ySrc,
...
@@ -331,7 +331,7 @@ void Win32Graphics::copyToWindow( OSWindow &rWindow, int xSrc, int ySrc,
bool
Win32Graphics
::
hit
(
int
x
,
int
y
)
const
bool
Win32Graphics
::
hit
(
int
x
,
int
y
)
const
{
{
return
PtInRegion
(
m_mask
,
x
,
y
);
return
PtInRegion
(
m_mask
,
x
,
y
)
!=
0
;
}
}
...
...
modules/gui/skins2/win32/win32_window.cpp
View file @
ab6a48f9
...
@@ -38,6 +38,11 @@
...
@@ -38,6 +38,11 @@
#endif
#endif
// XXX layered windows are supposed to work only with at least win2k
#ifndef WS_EX_LAYERED
# define WS_EX_LAYERED 0x00080000
#endif
Win32Window
::
Win32Window
(
intf_thread_t
*
pIntf
,
GenericWindow
&
rWindow
,
Win32Window
::
Win32Window
(
intf_thread_t
*
pIntf
,
GenericWindow
&
rWindow
,
HINSTANCE
hInst
,
HWND
hParentWindow
,
HINSTANCE
hInst
,
HWND
hParentWindow
,
bool
dragDrop
,
bool
playOnDrop
,
bool
dragDrop
,
bool
playOnDrop
,
...
...
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