video/tea1002.cpp: fix misspelled amplitude variable

This commit is contained in:
angelosa 2025-03-19 14:08:45 +01:00
parent 9c1b56c112
commit b51f4b947b
2 changed files with 6 additions and 6 deletions

View File

@ -247,7 +247,7 @@ void virge_pci_device::map_extra(uint64_t memory_window_start, uint64_t memory_w
{
io_space->install_device(0x03b0, 0x03df, *this, &virge_pci_device::legacy_io_map);
//
// Available at MMFF20 only if true
if (m_vga->read_pd26_strapping() == false)
{
const u16 port_offset = m_vga->read_pd25_strapping() ? 0xe2 : 0xe8;

View File

@ -18,7 +18,7 @@
const float tea1002_device::m_luminance[] =
{
0, 22.5, 44, 66.5, 8.5, 31, 52.5, 100, // INV = 0
0, 22.5, 44, 66.5, 8.5, 31, 52.5, 100, // INV = 0
75, 52.5, 31, 8.5, 66.5, 44, 22.5, 0 // INV = 1
};
@ -28,7 +28,7 @@ const int tea1002_device::m_phase[] =
0, 283, 61, 347, 167, 241, 103, 0 // INV = 1
};
const int tea1002_device::m_amplitute[] =
const int tea1002_device::m_amplitude[] =
{
0, 48, 44, 33, 33, 44, 48, 0, // INV = 0
0, 24, 22, 17, 17, 22, 24, 0 // INV = 1
@ -47,7 +47,7 @@ DEFINE_DEVICE_TYPE(TEA1002, tea1002_device, "tea1002", "Mullard TEA1002 PAL colo
//**************************************************************************
//-------------------------------------------------
// paula_device - constructor
// tea1002_device - constructor
//-------------------------------------------------
tea1002_device::tea1002_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
@ -74,8 +74,8 @@ rgb_t tea1002_device::color(int index)
{
// calculate yuv
double y = m_luminance[index] / 100;
double u = cos((m_phase[index] + m_tint) * M_PI / 180) * m_amplitute[index] / 100;
double v = sin((m_phase[index] + m_tint) * M_PI / 180) * m_amplitute[index] / 100;
double u = cos((m_phase[index] + m_tint) * M_PI / 180) * m_amplitude[index] / 100;
double v = sin((m_phase[index] + m_tint) * M_PI / 180) * m_amplitude[index] / 100;
// and convert to rgb
double r = y + v * 1.14;