From 7b3fc665a6747b2e4630d5660c522a86b0247646 Mon Sep 17 00:00:00 2001 From: theoddone33 <> Date: Sat, 2 Mar 2002 20:56:57 +0000 Subject: [PATCH] Change "HOMEPAGE" button in about box to name of website, since Linux is bad with launching URLS. --- zsnes/src/gui/guimouse.inc | 2 ++ zsnes/src/gui/guiwindp.inc | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/zsnes/src/gui/guimouse.inc b/zsnes/src/gui/guimouse.inc index d3cc31b9..e28be2dc 100644 --- a/zsnes/src/gui/guimouse.inc +++ b/zsnes/src/gui/guimouse.inc @@ -713,9 +713,11 @@ ProcessMouseButtons: jne .nostatecancel mov byte[NetStateQuit],1 .nostatecancel +%ifndef __LINUX__ cmp byte[GUICBHold],65 jne .nohomepage call GotoHomepage +%endif .nohomepage mov byte[GUICBHold],0 ret diff --git a/zsnes/src/gui/guiwindp.inc b/zsnes/src/gui/guiwindp.inc index b603ac0a..21b464bc 100644 --- a/zsnes/src/gui/guiwindp.inc +++ b/zsnes/src/gui/guiwindp.inc @@ -5155,7 +5155,14 @@ DisplayGUIAbout: GUIOuttextwin2 11,5,65,GUIGUIAboutText5 ret %else +%ifndef __LINUX__ DrawGUIButton 11,5,125,74,136,GUIGUIAboutText8,65,0,0 +%else + sub byte[GUItextcolor],15 + GUIOuttextwin2 11,6,126,GUIGUIAboutText8 + add byte[GUItextcolor],15 + GUIOuttextwin2 11,5,125,GUIGUIAboutText8 +%endif sub byte[GUItextcolor],15 GUIOuttextwin2 11,6,16,GUIGUIAboutText1 GUIOuttextwin2 11,6,26,GUIGUIAboutText7 @@ -5207,7 +5214,11 @@ GUIGUIAboutText7 db 'WIN PORT V1.06',0 GUIGUIAboutText7 db 'LINUX PORT V0.37',0 %endif +%ifndef __LINUX__ GUIGUIAboutText8 db 'HOMEPAGE',0 +%else +GUIGUIAboutText8 db 'WWW.ZSNES.COM',0 +%endif DisplayGUIMovies: GUIDrawWindowBox 15,GUIMovieDisp