OW/Borland/MinGW warnings. Missing headers.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35001 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -44,6 +44,8 @@
|
|||||||
#include "wx/log.h" //wxLogDebug
|
#include "wx/log.h" //wxLogDebug
|
||||||
#include "wx/math.h" //log10 & pow
|
#include "wx/math.h" //log10 & pow
|
||||||
#include "wx/msw/private.h" //user info and wndproc setting/getting
|
#include "wx/msw/private.h" //user info and wndproc setting/getting
|
||||||
|
#include "wx/dcclient.h"
|
||||||
|
#include "wx/timer.h"
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Externals (somewhere in src/msw/app.cpp and src/msw/window.cpp)
|
// Externals (somewhere in src/msw/app.cpp and src/msw/window.cpp)
|
||||||
@@ -1884,6 +1886,10 @@ public:
|
|||||||
virtual bool Pause();
|
virtual bool Pause();
|
||||||
virtual bool Stop();
|
virtual bool Stop();
|
||||||
|
|
||||||
|
virtual bool Load(const wxURI& location,
|
||||||
|
const wxURI& proxy)
|
||||||
|
{ return wxMediaBackend::Load(location, proxy); }
|
||||||
|
|
||||||
virtual bool Load(const wxString& fileName);
|
virtual bool Load(const wxString& fileName);
|
||||||
virtual bool Load(const wxURI& location);
|
virtual bool Load(const wxURI& location);
|
||||||
|
|
||||||
@@ -2243,6 +2249,10 @@ public:
|
|||||||
virtual bool Pause();
|
virtual bool Pause();
|
||||||
virtual bool Stop();
|
virtual bool Stop();
|
||||||
|
|
||||||
|
virtual bool Load(const wxURI& location,
|
||||||
|
const wxURI& proxy)
|
||||||
|
{ return wxMediaBackend::Load(location, proxy); }
|
||||||
|
|
||||||
virtual bool Load(const wxString& fileName);
|
virtual bool Load(const wxString& fileName);
|
||||||
virtual bool Load(const wxURI& location);
|
virtual bool Load(const wxURI& location);
|
||||||
|
|
||||||
@@ -2990,7 +3000,7 @@ double wxAMMediaBackend::GetVolume()
|
|||||||
bool wxAMMediaBackend::SetVolume(double dVolume)
|
bool wxAMMediaBackend::SetVolume(double dVolume)
|
||||||
{
|
{
|
||||||
//pow(10.0, -80.0) to correct 0 == -INF
|
//pow(10.0, -80.0) to correct 0 == -INF
|
||||||
long lVolume = (2000.0 * log10(pow(10.0, -80.0)+dVolume));
|
long lVolume = (long)(2000.0 * log10(pow(10.0, -80.0)+dVolume));
|
||||||
HRESULT hr = m_pAM->put_Volume( lVolume );
|
HRESULT hr = m_pAM->put_Volume( lVolume );
|
||||||
if(FAILED(hr))
|
if(FAILED(hr))
|
||||||
{
|
{
|
||||||
@@ -4001,7 +4011,9 @@ bool wxQTMediaBackend::Load(const wxString& fileName)
|
|||||||
// Note that in 99% of the cases this does nothing...
|
// Note that in 99% of the cases this does nothing...
|
||||||
// Anyway we set up the loading timer here to tell us when the movie is done
|
// Anyway we set up the loading timer here to tell us when the movie is done
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
void wxQTMediaBackend::PPRMProc (Movie theMovie, OSErr theErr, void* theRefCon)
|
void wxQTMediaBackend::PPRMProc (Movie theMovie,
|
||||||
|
OSErr WXUNUSED_UNLESS_DEBUG(theErr),
|
||||||
|
void* theRefCon)
|
||||||
{
|
{
|
||||||
wxASSERT( theMovie );
|
wxASSERT( theMovie );
|
||||||
wxASSERT( theRefCon );
|
wxASSERT( theRefCon );
|
||||||
@@ -4393,10 +4405,10 @@ bool wxQTMediaBackend::ShowPlayerControls(wxMediaCtrlPlayerControls flags)
|
|||||||
if(wxrect.width < 320)
|
if(wxrect.width < 320)
|
||||||
wxrect.width = 320;
|
wxrect.width = 320;
|
||||||
|
|
||||||
rect.top = wxrect.y;
|
rect.top = (short)wxrect.y;
|
||||||
rect.left = wxrect.x;
|
rect.left = (short)wxrect.x;
|
||||||
rect.right = rect.left + wxrect.width;
|
rect.right = (short)(rect.left + wxrect.width);
|
||||||
rect.bottom = rect.top + wxrect.height;
|
rect.bottom = (short)(rect.top + wxrect.height);
|
||||||
|
|
||||||
if(!m_pMC)
|
if(!m_pMC)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user