From 21f51069555f1283e0cfca90e4f2b0f644081d32 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Thu, 23 Jan 2025 05:00:31 +1100 Subject: ui/widgets.cpp: Use a smooter, symmetrical highlight texture (MT09095). --- src/frontend/mame/ui/widgets.cpp | 6 +++--- src/mame/dynax/ddenlovr.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/frontend/mame/ui/widgets.cpp b/src/frontend/mame/ui/widgets.cpp index 59fda0f203c..372a4df7331 100644 --- a/src/frontend/mame/ui/widgets.cpp +++ b/src/frontend/mame/ui/widgets.cpp @@ -24,7 +24,7 @@ namespace ui { //------------------------------------------------- widgets_manager::widgets_manager(running_machine &machine) - : m_hilight_bitmap(std::make_unique(256, 1)) + : m_hilight_bitmap(std::make_unique(512, 1)) , m_hilight_texture(nullptr, machine.render()) , m_hilight_main_bitmap(std::make_unique(1, 128)) , m_hilight_main_texture(nullptr, machine.render()) @@ -33,9 +33,9 @@ widgets_manager::widgets_manager(running_machine &machine) render_manager &render(machine.render()); // create a texture for hilighting items - for (unsigned x = 0; x < 256; ++x) + for (unsigned x = 0; x < 512; ++x) { - unsigned const alpha((x < 25) ? (0xff * x / 25) : (x >(256 - 25)) ? (0xff * (255 - x) / 25) : 0xff); + unsigned const alpha((x < 50) ? ((x + 1) * 5) : (x > (511 - 50)) ? ((512 - x) * 5) : 0xff); m_hilight_bitmap->pix(0, x) = rgb_t(alpha, 0xff, 0xff, 0xff); } m_hilight_texture.reset(render.texture_alloc()); diff --git a/src/mame/dynax/ddenlovr.cpp b/src/mame/dynax/ddenlovr.cpp index 771246ca1c3..2a162cbcfd7 100644 --- a/src/mame/dynax/ddenlovr.cpp +++ b/src/mame/dynax/ddenlovr.cpp @@ -7267,7 +7267,7 @@ static INPUT_PORTS_START( hginga ) PORT_DIPNAME( 0x20, 0x20, "Hanaroku Hopper" ) PORT_DIPLOCATION("SW3:6") // 花六ホッパー PORT_DIPSETTING( 0x20, "Manual" ) // 手動 PORT_DIPSETTING( 0x00, "Automatic" ) // 自動 - PORT_DIPNAME( 0xc0, 0xc0, "Gokou/Shikou Generation Interval" ) PORT_DIPLOCATION("SW3:7,8") // 五光、四光発生間隙 + PORT_DIPNAME( 0xc0, 0xc0, "Gokou/Shikou Generation Interval" ) PORT_DIPLOCATION("SW3:7,8") // 五光、四光発生間隔 PORT_DIPSETTING( 0xc0, "Short" ) // せまい PORT_DIPSETTING( 0x80, "A Little Short" ) // ややせまい PORT_DIPSETTING( 0x40, "A Little Long" ) // ややひろい -- cgit v1.2.3