mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-05 02:17:05 +00:00
TITANIC: Fix somer compiler warnings
This commit is contained in:
parent
f04174aa8a
commit
1ff861ed3f
@ -51,9 +51,9 @@ uint CWaveFile::getDurationTicks() const {
|
||||
// a desired size. Since I have no idea how the system API
|
||||
// method works, for now I'm using a simple ratio of a
|
||||
// sample output to input value
|
||||
uint size = _size - 0x46;
|
||||
double newSize = (double)size * (1475712.0 / 199836.0);
|
||||
return newSize * 1000.0 / _stream->getRate();
|
||||
uint dataSize = _size - 0x46;
|
||||
double newSize = (double)dataSize * (1475712.0 / 199836.0);
|
||||
return (uint)(newSize * 1000.0 / _stream->getRate());
|
||||
}
|
||||
|
||||
bool CWaveFile::loadSound(const CString &name) {
|
||||
|
@ -225,7 +225,7 @@ void CStarControlSub13::fn19(double *v1, double *v2, double *v3, double *v4) {
|
||||
}
|
||||
|
||||
void CStarControlSub13::reset() {
|
||||
const double FACTOR = 3.1415927 * 0.0055555557;
|
||||
//const double FACTOR = 3.1415927 * 0.0055555557;
|
||||
error("TODO: CStarControlSub13::reset");
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ CTransparencySurface::CTransparencySurface(const Graphics::Surface *surface,
|
||||
_flag1 = false;
|
||||
break;
|
||||
case TRANS_DEFAULT:
|
||||
if (*(byte *)surface->getPixels() < 0x80) {
|
||||
if (*(const byte *)surface->getPixels() < 0x80) {
|
||||
_flag1 = true;
|
||||
_flag2 = false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user