Merge pull request #6230 from leoetlino/warning-fixes
Small warning fixes
This commit is contained in:
commit
4c48cc6757
|
@ -1441,6 +1441,8 @@ void EncodeEfbCopy(u8* dst, const EFBCopyParams& params, u32 native_width, u32 b
|
||||||
case PEControl::Z24:
|
case PEControl::Z24:
|
||||||
EncodeZ24halfscale(dst, src, params.copy_format);
|
EncodeZ24halfscale(dst, src, params.copy_format);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -1459,6 +1461,8 @@ void EncodeEfbCopy(u8* dst, const EFBCopyParams& params, u32 native_width, u32 b
|
||||||
case PEControl::Z24:
|
case PEControl::Z24:
|
||||||
EncodeZ24(dst, src, params.copy_format);
|
EncodeZ24(dst, src, params.copy_format);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1017,7 +1017,7 @@ void GetBPRegInfo(const u8* data, std::string* name, std::string* desc)
|
||||||
(copy.clamp0 && copy.clamp1) ? "Top and Bottom" : (copy.clamp0) ?
|
(copy.clamp0 && copy.clamp1) ? "Top and Bottom" : (copy.clamp0) ?
|
||||||
"Top only" :
|
"Top only" :
|
||||||
(copy.clamp1) ? "Bottom only" : "None",
|
(copy.clamp1) ? "Bottom only" : "None",
|
||||||
no_yes[copy.yuv], copy.tp_realFormat(),
|
no_yes[copy.yuv], static_cast<int>(copy.tp_realFormat()),
|
||||||
(copy.gamma == 0) ? "1.0" : (copy.gamma == 1) ?
|
(copy.gamma == 0) ? "1.0" : (copy.gamma == 1) ?
|
||||||
"1.7" :
|
"1.7" :
|
||||||
(copy.gamma == 2) ? "2.2" : "Invalid value 0x3?",
|
(copy.gamma == 2) ? "2.2" : "Invalid value 0x3?",
|
||||||
|
|
|
@ -284,7 +284,7 @@ std::string HiresTexture::GenBaseName(const u8* texture, size_t texture_size, co
|
||||||
std::string basename = s_format_prefix + StringFromFormat("%dx%d%s_%016" PRIx64, width, height,
|
std::string basename = s_format_prefix + StringFromFormat("%dx%d%s_%016" PRIx64, width, height,
|
||||||
has_mipmaps ? "_m" : "", tex_hash);
|
has_mipmaps ? "_m" : "", tex_hash);
|
||||||
std::string tlutname = tlut_size ? StringFromFormat("_%016" PRIx64, tlut_hash) : "";
|
std::string tlutname = tlut_size ? StringFromFormat("_%016" PRIx64, tlut_hash) : "";
|
||||||
std::string formatname = StringFromFormat("_%d", format);
|
std::string formatname = StringFromFormat("_%d", static_cast<int>(format));
|
||||||
std::string fullname = basename + tlutname + formatname;
|
std::string fullname = basename + tlutname + formatname;
|
||||||
|
|
||||||
for (int level = 0; level < 10 && convert; level++)
|
for (int level = 0; level < 10 && convert; level++)
|
||||||
|
|
Loading…
Reference in New Issue