Skip to content

Commit

Permalink
Fix minor warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Jan 3, 2024
1 parent 49b71d2 commit e1de875
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
10 changes: 5 additions & 5 deletions platforms/desktop-shared/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,21 +267,21 @@ static void sdl_events_emu(const SDL_Event* event)
// SAC
case (1):
{
emu_spinner1(-relx);
emu_spinner1((int)-relx);
break;
}
// Wheel
case (2):
{
emu_spinner1(relx);
emu_spinner1((int)relx);
break;
}
// Roller
case (3):
{
float rely = (float)(event->motion.yrel) * senf;
emu_spinner1(relx);
emu_spinner2(rely);
emu_spinner1((int)relx);
emu_spinner2((int)rely);
break;
}
default:
Expand All @@ -303,7 +303,7 @@ static void sdl_events_emu(const SDL_Event* event)
float senf = (float)(sen / 2.0f) + 1.0f;
float rely = (float)(event->wheel.y) * senf;

emu_spinner2(rely);
emu_spinner2((int)rely);
}
}
break;
Expand Down
8 changes: 4 additions & 4 deletions platforms/libretro/libretro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,21 +421,21 @@ static void update_input(void)
// SAC
case (1):
{
core->Spinner1(-relx);
core->Spinner1((int)-relx);
break;
}
// Wheel
case (2):
{
core->Spinner1(relx);
core->Spinner1((int)relx);
break;
}
// Roller
case (3):
{
float rely = (float)(mouse_y) * senf;
core->Spinner1(relx);
core->Spinner2(rely);
core->Spinner1((int)relx);
core->Spinner2((int)rely);
break;
}
default:
Expand Down
3 changes: 2 additions & 1 deletion src/Memory_inline.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ inline void Memory::Write(u16 address, u8 value)
m_RomBank = (address >> 4) & (m_pCartridge->GetROMBankCount() - 1);
m_RomBankAddress = m_RomBank << 14;
}

#ifdef DEBUG_GEARCOLECO
if (address == 0xFFC0)
Log("--> ** EEPROM write SCL=0: %X %X", address, value);
if (address == 0xFFD0)
Expand All @@ -162,6 +162,7 @@ inline void Memory::Write(u16 address, u8 value)
Log("--> ** EEPROM write SDA=0: %X %X", address, value);
if (address == 0xFFF0)
Log("--> ** EEPROM write SDA=1: %X %X", address, value);
#endif
}
else
{
Expand Down

0 comments on commit e1de875

Please sign in to comment.