From 20bca9cce438bfc4727de140d641b6894b8f1061 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Tue, 18 Jan 2022 18:32:42 -0500 Subject: [PATCH] AY8930 code attribution --- src/gui/gui.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 64eb0f70..1e41e313 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -1663,7 +1663,7 @@ void FurnaceGUI::drawPattern() { ImGui::End(); } -const char* aboutLine[55]={ +const char* aboutLine[56]={ "tildearrow", "is proud to present", "", @@ -1686,6 +1686,7 @@ const char* aboutLine[55]={ "ymfm by Aaron Giles", "MAME SN76496 by Nicola Salmoria", "MAME AY-3-8910 by Couriersud", + "with AY8930 fixes by Eulous", "MAME SAA1099 by Juergen Buchmueller and Manuel Abadia", "SameBoy by Lior Halphon", "Mednafen PCE", @@ -1770,7 +1771,7 @@ void FurnaceGUI::drawAbout() { } } - for (int i=0; i<55; i++) { + for (int i=0; i<56; i++) { double posX=(scrW*dpiScale/2.0)+(sin(double(i)*0.5+double(aboutScroll)/90.0)*120*dpiScale)-(ImGui::CalcTextSize(aboutLine[i]).x*0.5); double posY=(scrH-aboutScroll+42*i)*dpiScale; if (posY<-80*dpiScale || posY>scrH*dpiScale) continue; @@ -1793,7 +1794,7 @@ void FurnaceGUI::drawAbout() { ImGui::PopFont(); aboutScroll+=2; if (++aboutSin>=2400) aboutSin=0; - if (aboutScroll>(42*55+scrH)) aboutScroll=-20; + if (aboutScroll>(42*56+scrH)) aboutScroll=-20; } ImGui::End(); }