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 autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 4628 invoked from network); 6 Oct 2021 10:00:22 -0000 Received: from 4ess.inri.net (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 6 Oct 2021 10:00:22 -0000 Received: from out0.migadu.com ([94.23.1.103]) by 4ess; Wed Oct 6 05:29:35 -0400 2021 Message-ID: <1dc852446d8cbfbbed587804c5b3f401f2146813.camel@biobuf.link> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=biobuf.link; s=key1; t=1633512447; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=n4OEQlJD3TtWjVW1g1l007MoWOmb/gGHF6kikBqOMiw=; b=oKbJhwLoeLtw5NoP1L0k8OYnFI/pub5cswFkTt7PAW6BhGiQFIlo1B8mj/0UA90CRYqSeC ADLUJottX+Prdp3zcQNlmiW65HElpAaIsX2DlF3KOHa+xmWSfWXQim6QppGxURA0KlmLCL gelRgojMQcWFHaBJbJe36JEELGAIsIk= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: james palmer To: 9front@9front.org Date: Wed, 06 Oct 2021 10:27:19 +0100 Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: james@biobuf.link List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: self-healing virtualized interface hardware table Subject: [9front] [PATCH] acme: don't let tag button draw over tag border. Reply-To: 9front@9front.org Precedence: bulk this fixes the apperance of a 2px wide gap between the edge of the tag button and the start of the bottom border by making the tag button 2px less wide rather than shrinking it's rectange after creating the image. from this plan9port pull request: https://github.com/9fans/plan9port/pull/490 - james From: james palmer Date: Wed, 06 Oct 2021 09:19:58 +0000 Subject: [PATCH] acme: don't let tag button draw over tag border. --- diff 6ebb8b9e357944cc29ae3fafc0900ee3e325ed39 2134a2c638e2668f45a92ec814326689cc8089c3 --- a/sys/src/cmd/acme/acme.c Sun Oct 3 16:58:58 2021 +++ b/sys/src/cmd/acme/acme.c Wed Oct 6 10:19:58 2021 @@ -895,16 +895,14 @@ freeimage(colbutton); } - r = Rect(0, 0, Scrollwid+2, font->height+1); + r = Rect(0, 0, Scrollwid, font->height+1); button = allocimage(display, r, screen->chan, 0, DNofill); draw(button, r, tagcols[BACK], nil, r.min); - r.max.x -= 2; border(button, r, 2, tagcols[BORD], ZP); r = button->r; modbutton = allocimage(display, r, screen->chan, 0, DNofill); draw(modbutton, r, tagcols[BACK], nil, r.min); - r.max.x -= 2; border(modbutton, r, 2, tagcols[BORD], ZP); r = insetrect(r, 2); tmp = allocimage(display, Rect(0,0,1,1), screen->chan, 1, DMedblue);