Fixed compilation warnings/errors

This commit is contained in:
Sour 2019-02-24 19:57:34 -05:00
parent 002cda8cf6
commit 069c8dc42d
3 changed files with 5 additions and 3 deletions

View file

@ -85,6 +85,8 @@ void Console::Stop()
debugger->Run();
}
_debugger.reset();
_runLock.WaitForRelease();
_cpu.reset();
@ -122,7 +124,7 @@ void Console::LoadRom(VirtualFile romFile, VirtualFile patchFile)
_cart = cart;
_controlManager.reset(new ControlManager(shared_from_this()));
_memoryManager.reset(new MemoryManager());
_dmaController.reset(new DmaController(shared_from_this()));
_dmaController.reset(new DmaController(_memoryManager.get()));
_memoryManager->Initialize(shared_from_this());

View file

@ -94,7 +94,7 @@ void DefaultVideoFilter::ApplyFilter(uint16_t *ppuOutputBuffer)
{
uint32_t *out = GetOutputBuffer();
uint32_t pixelCount = GetFrameInfo().Width * GetFrameInfo().Height;
for(int i = 0; i < pixelCount; i++) {
for(uint32_t i = 0; i < pixelCount; i++) {
uint16_t rgb555 = ppuOutputBuffer[i];
uint8_t b = (rgb555 >> 10) * 256 / 32;
uint8_t g = ((rgb555 >> 5) & 0x1F) * 256 / 32;

View file

@ -304,7 +304,7 @@ void SNES_SPC::set_output( sample_t* out, int size )
assert( out <= out_end );
}
dsp.set_output( out, out_end - out );
dsp.set_output( out, (int)(out_end - out) );
}
else
{