mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-09 15:15:38 +00:00
Fix some compiler warnings on MSVC
This commit is contained in:
parent
6249a4a077
commit
3734d643a6
|
@ -1016,7 +1016,7 @@ double BC7CompressionMode::CompressCluster(
|
||||||
a2 = std::min(255.0f, std::max(0.0f, a2));
|
a2 = std::min(255.0f, std::max(0.0f, a2));
|
||||||
|
|
||||||
// Quantize
|
// Quantize
|
||||||
const int8 maskSeed = 0x80;
|
const int8 maskSeed = -0x7F;
|
||||||
const uint8 a1b = ::QuantizeChannel(
|
const uint8 a1b = ::QuantizeChannel(
|
||||||
uint8(a1), (maskSeed >> (GetAlphaChannelPrecision() - 1)));
|
uint8(a1), (maskSeed >> (GetAlphaChannelPrecision() - 1)));
|
||||||
const uint8 a2b = ::QuantizeChannel(
|
const uint8 a2b = ::QuantizeChannel(
|
||||||
|
|
5
IO/third_party/tga/targa.c
vendored
5
IO/third_party/tga/targa.c
vendored
|
@ -33,6 +33,11 @@
|
||||||
|
|
||||||
// preprocessor directives
|
// preprocessor directives
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
# define WIN32_LEAN_AND_MEAN
|
||||||
|
# define _CRT_SECURE_NO_WARNINGS
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
Loading…
Reference in a new issue