diff --git a/stepmania/src/RageBitmapTexture.cpp b/stepmania/src/RageBitmapTexture.cpp index 26be4e2d62..583d54059c 100644 --- a/stepmania/src/RageBitmapTexture.cpp +++ b/stepmania/src/RageBitmapTexture.cpp @@ -35,8 +35,8 @@ RageBitmapTexture::RageBitmapTexture( RageDisplay* pScreen, const CString &sFilePath, - DWORD dwMaxSize, - DWORD dwTextureColorDepth, + int dwMaxSize, + int dwTextureColorDepth, int iMipMaps, int iAlphaBits, bool bDither, @@ -62,8 +62,8 @@ RageBitmapTexture::~RageBitmapTexture() } void RageBitmapTexture::Reload( - DWORD dwMaxSize, - DWORD dwTextureColorDepth, + int dwMaxSize, + int dwTextureColorDepth, int iMipMaps, int iAlphaBits, bool bDither, @@ -86,8 +86,8 @@ LPDIRECT3DTEXTURE8 RageBitmapTexture::GetD3DTexture() void RageBitmapTexture::Create( - DWORD dwMaxSize, - DWORD dwTextureColorDepth, + int dwMaxSize, + int dwTextureColorDepth, int iMipMaps, int iAlphaBits, bool bDither, @@ -155,9 +155,9 @@ void RageBitmapTexture::Create( // find out what the min texture size is - dwMaxSize = min( dwMaxSize, DISPLAY->GetDeviceCaps().MaxTextureWidth ); + dwMaxSize = min( dwMaxSize, int(DISPLAY->GetDeviceCaps().MaxTextureWidth) ); - bStretch |= ddii.Width > dwMaxSize || ddii.Height > dwMaxSize; + bStretch |= int(ddii.Width) > dwMaxSize || int(ddii.Height) > dwMaxSize; // HACK: On a Voodoo3 and Win98, D3DXCreateTextureFromFileEx fail randomly on rare occasions. // So, we'll try the call 2x in a row in case the first one fails. diff --git a/stepmania/src/RageBitmapTexture.h b/stepmania/src/RageBitmapTexture.h index db2a29198a..aecf531de9 100644 --- a/stepmania/src/RageBitmapTexture.h +++ b/stepmania/src/RageBitmapTexture.h @@ -25,8 +25,8 @@ public: RageBitmapTexture( RageDisplay* pScreen, const CString &sFilePath, - DWORD dwMaxSize = 2048, - DWORD dwTextureColorDepth = 16, + int dwMaxSize = 2048, + int dwTextureColorDepth = 16, int iMipMaps = 4, int iAlphaBits = 4, bool bDither = false, @@ -35,8 +35,8 @@ public: virtual ~RageBitmapTexture(); virtual void Reload( - DWORD dwMaxSize, - DWORD dwTextureColorDepth, + int dwMaxSize, + int dwTextureColorDepth, int iMipMaps = 4, int iAlphaBits = 4, bool bDither = false, @@ -47,8 +47,8 @@ public: protected: virtual void Create( - DWORD dwMaxSize, - DWORD dwTextureColorDepth, + int dwMaxSize, + int dwTextureColorDepth, int iMipMaps, int iAlphaBits, bool bDither, diff --git a/stepmania/src/RageMovieTexture.cpp b/stepmania/src/RageMovieTexture.cpp index 2436c16634..5d45fe70d6 100644 --- a/stepmania/src/RageMovieTexture.cpp +++ b/stepmania/src/RageMovieTexture.cpp @@ -294,8 +294,8 @@ HRESULT CTextureRenderer::DoRenderSample( IMediaSample * pSample ) RageMovieTexture::RageMovieTexture( RageDisplay* pScreen, const CString &sFilePath, - DWORD dwMaxSize, - DWORD dwTextureColorDepth, + int dwMaxSize, + int dwTextureColorDepth, int iMipMaps, int iAlphaBits, bool bDither, @@ -337,8 +337,8 @@ RageMovieTexture::~RageMovieTexture() } void RageMovieTexture::Reload( - DWORD dwMaxSize, - DWORD dwTextureColorDepth, + int dwMaxSize, + int dwTextureColorDepth, int iMipMaps, int iAlphaBits, bool bDither, diff --git a/stepmania/src/RageMovieTexture.h b/stepmania/src/RageMovieTexture.h index e7c63acc41..a861d5dc28 100644 --- a/stepmania/src/RageMovieTexture.h +++ b/stepmania/src/RageMovieTexture.h @@ -27,8 +27,8 @@ public: RageMovieTexture( RageDisplay* pScreen, const CString &sFilePath, - DWORD dwMaxSize = 2048, - DWORD dwTextureColorDepth = 16, + int dwMaxSize = 2048, + int dwTextureColorDepth = 16, int iMipMaps = 4, int iAlphaBits = 4, bool bDither = false, @@ -37,8 +37,8 @@ public: virtual ~RageMovieTexture(); virtual void Reload( - DWORD dwMaxSize, - DWORD dwTextureColorDepth, + int dwMaxSize, + int dwTextureColorDepth, int iMipMaps = 4, int iAlphaBits = 4, bool bDither = false, diff --git a/stepmania/src/RageTexture.cpp b/stepmania/src/RageTexture.cpp index 788c401128..15070881d8 100644 --- a/stepmania/src/RageTexture.cpp +++ b/stepmania/src/RageTexture.cpp @@ -24,8 +24,8 @@ RageTexture::RageTexture( RageDisplay* pScreen, const CString &sFilePath, - DWORD dwMaxSize, - DWORD dwTextureColorDepth, + int dwMaxSize, + int dwTextureColorDepth, int iMipMaps, int iAlphaBits, bool bDither, diff --git a/stepmania/src/RageTexture.h b/stepmania/src/RageTexture.h index 248a61a669..f4ebf66946 100644 --- a/stepmania/src/RageTexture.h +++ b/stepmania/src/RageTexture.h @@ -40,8 +40,8 @@ public: RageTexture( RageDisplay* pScreen, const CString &sFilePath, - DWORD dwMaxSize = 2048, - DWORD dwTextureColorDepth = 16, + int dwMaxSize = 2048, + int dwTextureColorDepth = 16, int iMipMaps = 4, int iAlphaBits = 4, bool bDither = false, @@ -50,8 +50,8 @@ public: virtual ~RageTexture() = 0; virtual void Reload( - DWORD dwMaxSize = 2048, - DWORD dwTextureColorDepth = 16, + int dwMaxSize = 2048, + int dwTextureColorDepth = 16, int iMipMaps = 4, int iAlphaBits = 4, bool bDither = false,