mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
msvc: resolve all warnings in VideoBackends/Software.
This commit is contained in:
parent
4bf031c064
commit
fd16065979
@ -151,10 +151,10 @@ void SWBPWritten(int address, int newvalue)
|
||||
{
|
||||
int regNum = (address >> 1 ) & 0x3;
|
||||
TevReg& reg = bpmem.tevregs[regNum];
|
||||
bool konst = reg.type_ra;
|
||||
bool is_konst = reg.type_ra != 0;
|
||||
|
||||
Rasterizer::SetTevReg(regNum, Tev::ALP_C, konst, reg.alpha);
|
||||
Rasterizer::SetTevReg(regNum, Tev::RED_C, konst, reg.red);
|
||||
Rasterizer::SetTevReg(regNum, Tev::ALP_C, is_konst, static_cast<s16>(reg.alpha));
|
||||
Rasterizer::SetTevReg(regNum, Tev::RED_C, is_konst, static_cast<s16>(reg.red));
|
||||
|
||||
break;
|
||||
}
|
||||
@ -166,10 +166,10 @@ void SWBPWritten(int address, int newvalue)
|
||||
{
|
||||
int regNum = (address >> 1 ) & 0x3;
|
||||
TevReg& reg = bpmem.tevregs[regNum];
|
||||
bool konst = reg.type_bg;
|
||||
bool is_konst = reg.type_bg != 0;
|
||||
|
||||
Rasterizer::SetTevReg(regNum, Tev::GRN_C, konst, reg.green);
|
||||
Rasterizer::SetTevReg(regNum, Tev::BLU_C, konst, reg.blue);
|
||||
Rasterizer::SetTevReg(regNum, Tev::GRN_C, is_konst, static_cast<s16>(reg.green));
|
||||
Rasterizer::SetTevReg(regNum, Tev::BLU_C, is_konst, static_cast<s16>(reg.blue));
|
||||
|
||||
break;
|
||||
}
|
||||
|
@ -143,7 +143,7 @@ void RunGpu()
|
||||
void RegisterMMIO(MMIO::Mapping* mmio, u32 base)
|
||||
{
|
||||
// Directly map reads and writes to the cpreg structure.
|
||||
for (size_t i = 0; i < sizeof (cpreg) / sizeof (u16); ++i)
|
||||
for (u32 i = 0; i < sizeof (cpreg) / sizeof (u16); ++i)
|
||||
{
|
||||
u16* ptr = ((u16*)&cpreg) + i;
|
||||
mmio->Register(base | (i * 2),
|
||||
@ -154,7 +154,7 @@ void RegisterMMIO(MMIO::Mapping* mmio, u32 base)
|
||||
|
||||
// Bleh. Apparently SWCommandProcessor does not know about regs 0x40 to
|
||||
// 0x64...
|
||||
for (size_t i = 0x40; i < 0x64; ++i)
|
||||
for (u32 i = 0x40; i < 0x64; ++i)
|
||||
{
|
||||
mmio->Register(base | i,
|
||||
MMIO::Constant<u16>(0),
|
||||
|
Loading…
Reference in New Issue
Block a user