From b51f4b947bd07e46cb04b302259124c802c5651a Mon Sep 17 00:00:00 2001 From: angelosa Date: Wed, 19 Mar 2025 14:08:45 +0100 Subject: [PATCH] video/tea1002.cpp: fix misspelled amplitude variable --- src/devices/bus/pci/virge_pci.cpp | 2 +- src/devices/video/tea1002.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/devices/bus/pci/virge_pci.cpp b/src/devices/bus/pci/virge_pci.cpp index a3b73f7f6b2..2e746a25ac4 100644 --- a/src/devices/bus/pci/virge_pci.cpp +++ b/src/devices/bus/pci/virge_pci.cpp @@ -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; diff --git a/src/devices/video/tea1002.cpp b/src/devices/video/tea1002.cpp index af80f9908a3..2dbff0e0f78 100644 --- a/src/devices/video/tea1002.cpp +++ b/src/devices/video/tea1002.cpp @@ -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;