From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 9730 invoked from network); 2 Apr 2021 20:26:04 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 2 Apr 2021 20:26:04 -0000 Received: from mail-40141.protonmail.ch ([185.70.40.141]) by 1ess; Fri Apr 2 16:07:15 -0400 2021 Date: Fri, 02 Apr 2021 20:07:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1617394028; bh=woK9mRc384RPmrNqk/OoFSvHlpynE3TpUNZAQiQogqk=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:From; b=Letg/i+IbuhXLadiwlWPpNGFtWJbgE2UsD0ffEjbKOyTQybtsGOSUNO26Mo+9E/Fb cZ+ygv8b9wLWRaBxPTaEn4A5DmQxjtnl8y/Z/Sz3b266AyLh/DfmHKWT5QbhnRSLY1 XxRN6ftq39bIBEDZiYdgqlGyTwKci6W0IwvJhgPc= To: "9front@9front.org" <9front@9front.org> From: kemal Message-ID: In-Reply-To: <4AY5zfEjvhiftcJsWYHnbtlhg0hzU0PQidztuOr4-Dyk7DmW4eq1V4GEUsiLppbkQ4odq3Bcaulcu-ZbvPyT_4k8jOCtwnUQQ1HUJ0lwuRA=@protonmail.com> References: <4AY5zfEjvhiftcJsWYHnbtlhg0hzU0PQidztuOr4-Dyk7DmW4eq1V4GEUsiLppbkQ4odq3Bcaulcu-ZbvPyT_4k8jOCtwnUQQ1HUJ0lwuRA=@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: decentralized virtual CMS CSS-aware control Subject: [9front] Re: games/glendy: don't use lucida sans in menus by default Reply-To: 9front@9front.org Precedence: bulk (so sorry for disturbing the ml with **5** mails) ok this one seems to fix the bug. diff -r cc26fdf57bb2 sys/man/1/games --- a/sys/man/1/games=09Sat Mar 13 14:57:53 2021 +0100 +++ b/sys/man/1/games=09Fri Apr 02 23:05:01 2021 +0300 @@ -200,7 +200,9 @@ add gibberish diagrams, equations and tables. .TP .B glendy -Don't let the rabbit escape. +Don't let the rabbit escape. Button 2 presents a menu that you +can set the difficulty level from. Button 3 presents a menu +that you can either play a new game, reset the game or exit. .TP .B juggle Display the juggling diff -r cc26fdf57bb2 sys/src/games/glendy.c --- a/sys/src/games/glendy.c=09Sat Mar 13 14:57:53 2021 +0100 +++ b/sys/src/games/glendy.c=09Fri Apr 02 23:05:01 2021 +0300 @@ -45,17 +45,17 @@ char *mbuttons[] =3D { -=09"easy", -=09"medium", -=09"hard", +=09"Easy", +=09"Medium", +=09"Hard", =090 }; char *rbuttons[] =3D { -=09"new", -=09"reset", -=09"exit", +=09"New", +=09"Reset", +=09"Exit", =090 }; @@ -386,11 +386,10 @@ =09=09=09nextdir =3D (nrand(++count) =3D=3D 0)?dir:nextdir; =09=09} =09} -=09if(min < 100) +=09if(min < 100 || min =3D=3D 999) =09=09domove(nextdir, p.x, p.y); =09else =09=09finished =3D Won; - =09if(eqpt(findglenda(), Pt(-1, -1))) =09=09finished =3D Lost; } @@ -473,11 +472,7 @@ =09allocimages(); =09initlevel();=09/* must happen before "eresized" */ -=09eresized(0); - -=09fontname =3D "/lib/font/bit/lucidasans/unicode.8.font"; -=09if((font =3D openfont(display, fontname)) =3D=3D nil) -=09=09sysfatal("font '%s' not found", fontname); +=09eresized(0); =09for(;;) { =09=09e =3D event(&ev);