mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Fix a lot of warnings
This commit is contained in:
parent
617b9f8fc2
commit
14385461fa
@ -389,7 +389,7 @@ void WindowProc2 (const SDL_Event &event)
|
|||||||
|
|
||||||
// Erreur dans DoInit.
|
// Erreur dans DoInit.
|
||||||
|
|
||||||
bool InitFail(char *msg, bool bDirectX)
|
static bool InitFail(const char *msg, bool bDirectX)
|
||||||
{
|
{
|
||||||
char buffer[100];
|
char buffer[100];
|
||||||
|
|
||||||
|
@ -3982,7 +3982,7 @@ bool CEvent::BuildUp(POINT pos)
|
|||||||
|
|
||||||
// Démarre un film non interractif.
|
// Démarre un film non interractif.
|
||||||
|
|
||||||
bool CEvent::StartMovie(char *pFilename)
|
bool CEvent::StartMovie(const char *pFilename)
|
||||||
{
|
{
|
||||||
RECT rect;
|
RECT rect;
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@ public:
|
|||||||
|
|
||||||
void DecorAutoShift(POINT pos);
|
void DecorAutoShift(POINT pos);
|
||||||
|
|
||||||
bool StartMovie(char *pFilename);
|
bool StartMovie(const char *pFilename);
|
||||||
void StopMovie();
|
void StopMovie();
|
||||||
bool IsMovie();
|
bool IsMovie();
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ extern int g_mouseType;
|
|||||||
|
|
||||||
// Affiche un message de debug.
|
// Affiche un message de debug.
|
||||||
|
|
||||||
void OutputDebug(char *pMessage)
|
void OutputDebug(const char *pMessage)
|
||||||
{
|
{
|
||||||
SDL_LogDebug (SDL_LOG_CATEGORY_APPLICATION, "%s", pMessage);
|
SDL_LogDebug (SDL_LOG_CATEGORY_APPLICATION, "%s", pMessage);
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include "blupi.h"
|
#include "blupi.h"
|
||||||
|
|
||||||
extern void OutputDebug(char *pMessage);
|
extern void OutputDebug(const char *pMessage);
|
||||||
|
|
||||||
extern POINT ConvLongToPos(LPARAM lParam);
|
extern POINT ConvLongToPos(LPARAM lParam);
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ void CMovie::fileCloseMovie()
|
|||||||
// the movie paused when opened.
|
// the movie paused when opened.
|
||||||
// Sets <m_fMovieOpen> on success.
|
// Sets <m_fMovieOpen> on success.
|
||||||
|
|
||||||
bool CMovie::fileOpenMovie(RECT rect, char *pFilename)
|
bool CMovie::fileOpenMovie(RECT rect, const char *pFilename)
|
||||||
{
|
{
|
||||||
std::string path = GetBaseDir ();
|
std::string path = GetBaseDir ();
|
||||||
path += pFilename;
|
path += pFilename;
|
||||||
@ -193,7 +193,7 @@ bool CMovie::GetEnable()
|
|||||||
|
|
||||||
// Indique si un film existe.
|
// Indique si un film existe.
|
||||||
|
|
||||||
bool CMovie::IsExist(char *pFilename)
|
bool CMovie::IsExist(const char *pFilename)
|
||||||
{
|
{
|
||||||
std::string path = GetBaseDir ();
|
std::string path = GetBaseDir ();
|
||||||
FILE* file;
|
FILE* file;
|
||||||
@ -209,7 +209,7 @@ bool CMovie::IsExist(char *pFilename)
|
|||||||
|
|
||||||
// Montre un film avi.
|
// Montre un film avi.
|
||||||
|
|
||||||
bool CMovie::Play(RECT rect, char *pFilename)
|
bool CMovie::Play(RECT rect, const char *pFilename)
|
||||||
{
|
{
|
||||||
if ( !m_bEnable ) return false;
|
if ( !m_bEnable ) return false;
|
||||||
if ( !fileOpenMovie(rect, pFilename) ) return false;
|
if ( !fileOpenMovie(rect, pFilename) ) return false;
|
||||||
|
@ -18,8 +18,8 @@ public:
|
|||||||
|
|
||||||
bool Create();
|
bool Create();
|
||||||
bool GetEnable();
|
bool GetEnable();
|
||||||
bool IsExist(char *pFilename);
|
bool IsExist(const char *pFilename);
|
||||||
bool Play(RECT rect, char *pFilename);
|
bool Play(RECT rect, const char *pFilename);
|
||||||
void Stop();
|
void Stop();
|
||||||
void Pause ();
|
void Pause ();
|
||||||
void Resume ();
|
void Resume ();
|
||||||
@ -27,7 +27,7 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
void playMovie();
|
void playMovie();
|
||||||
bool fileOpenMovie(RECT rect, char *pFilename);
|
bool fileOpenMovie(RECT rect, const char *pFilename);
|
||||||
void fileCloseMovie();
|
void fileCloseMovie();
|
||||||
void termAVI();
|
void termAVI();
|
||||||
bool initAVI();
|
bool initAVI();
|
||||||
|
@ -187,7 +187,7 @@ int CPixmap::BltFast(SDL_Texture *lpSDL, int channel, POINT dst, RECT rcRect)
|
|||||||
|
|
||||||
// Cache une image contenant des ic<69>nes.
|
// Cache une image contenant des ic<69>nes.
|
||||||
|
|
||||||
bool CPixmap::Cache(int channel, char *pFilename, POINT totalDim, POINT iconDim)
|
bool CPixmap::Cache(int channel, const char *pFilename, POINT totalDim, POINT iconDim)
|
||||||
{
|
{
|
||||||
if ( channel < 0 || channel >= MAXIMAGE ) return false;
|
if ( channel < 0 || channel >= MAXIMAGE ) return false;
|
||||||
|
|
||||||
@ -244,7 +244,7 @@ bool CPixmap::Cache(int channel, char *pFilename, POINT totalDim, POINT iconDim)
|
|||||||
|
|
||||||
// Cache une image globale.
|
// Cache une image globale.
|
||||||
|
|
||||||
bool CPixmap::Cache(int channel, char *pFilename, POINT totalDim)
|
bool CPixmap::Cache(int channel, const char *pFilename, POINT totalDim)
|
||||||
{
|
{
|
||||||
POINT iconDim;
|
POINT iconDim;
|
||||||
|
|
||||||
|
@ -19,8 +19,8 @@ public:
|
|||||||
bool Flush();
|
bool Flush();
|
||||||
void Fill(RECT rect, COLORREF color);
|
void Fill(RECT rect, COLORREF color);
|
||||||
|
|
||||||
bool Cache(int channel, char *pFilename, POINT totalDim, POINT iconDim);
|
bool Cache(int channel, const char *pFilename, POINT totalDim, POINT iconDim);
|
||||||
bool Cache(int channel, char *pFilename, POINT totalDim);
|
bool Cache(int channel, const char *pFilename, POINT totalDim);
|
||||||
bool Cache(int channel, SDL_Surface *surface, POINT totalDim);
|
bool Cache(int channel, SDL_Surface *surface, POINT totalDim);
|
||||||
void SetClipping(RECT clip);
|
void SetClipping(RECT clip);
|
||||||
RECT GetClipping();
|
RECT GetClipping();
|
||||||
|
@ -143,7 +143,7 @@ void CSound::CacheAll()
|
|||||||
|
|
||||||
// Charge un fichier son (.wav).
|
// Charge un fichier son (.wav).
|
||||||
|
|
||||||
bool CSound::Cache(int channel, char *pFilename)
|
bool CSound::Cache(int channel, const char *pFilename)
|
||||||
{
|
{
|
||||||
if ( !m_bEnable ) return false;
|
if ( !m_bEnable ) return false;
|
||||||
if ( channel < 0 || channel >= MAXSOUND ) return false;
|
if ( channel < 0 || channel >= MAXSOUND ) return false;
|
||||||
|
@ -29,7 +29,7 @@ public:
|
|||||||
int GetMidiVolume();
|
int GetMidiVolume();
|
||||||
|
|
||||||
void CacheAll();
|
void CacheAll();
|
||||||
bool Cache(int channel, char *pFilename);
|
bool Cache(int channel, const char *pFilename);
|
||||||
void Flush(int channel);
|
void Flush(int channel);
|
||||||
|
|
||||||
bool Play(int channel, int volume=0, Uint8 panLeft = 255, Uint8 panRight = 255);
|
bool Play(int channel, int volume=0, Uint8 panLeft = 255, Uint8 panRight = 255);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user