<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/box-drawing.c, branch 1.7.2</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.7.2</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.7.2'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2021-01-16T20:16:00Z</updated>
<entry>
<title>debug: rename assert() to xassert(), to avoid clashing with &lt;assert.h&gt;</title>
<updated>2021-01-16T20:16:00Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2021-01-16T20:16:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e56136ce1192d04a52b01ccb41284f0b7896430e'/>
<id>urn:sha1:e56136ce1192d04a52b01ccb41284f0b7896430e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>box-drawing: use enum constants in draw_sextant() instead of #define</title>
<updated>2021-01-15T16:07:51Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2021-01-15T16:07:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=dad0549f2e7387076a03f37f67ac31ef362837cb'/>
<id>urn:sha1:dad0549f2e7387076a03f37f67ac31ef362837cb</id>
<content type='text'>
Both are functionally equivalent here, but the former is also properly
scoped, can be naturally indented and has a less repetitive syntax.
</content>
</entry>
<entry>
<title>box-drawing: line thickness now depends on both DPI and cell size</title>
<updated>2021-01-12T16:31:55Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-08T09:28:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=14ce8fd8722dc382421a982139d63425db1c60b5'/>
<id>urn:sha1:14ce8fd8722dc382421a982139d63425db1c60b5</id>
<content type='text'>
Cell size is defined as the length of the diagonal of the cell.
</content>
</entry>
<entry>
<title>box-drawing: LIGHT ARC: ensure row+col are within range</title>
<updated>2021-01-12T16:31:55Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-08T09:27:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f1b4bf1275c653c5d091e64abe48d224e3b63a25'/>
<id>urn:sha1:f1b4bf1275c653c5d091e64abe48d224e3b63a25</id>
<content type='text'>
</content>
</entry>
<entry>
<title>box-drawing: {h,v}line() + rect(): ensure *end* row/col is &gt;= 0</title>
<updated>2021-01-12T16:31:47Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-08T09:26:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4bb056bb4b5ccacd5be2bb37691668776b867936'/>
<id>urn:sha1:4bb056bb4b5ccacd5be2bb37691668776b867936</id>
<content type='text'>
</content>
</entry>
<entry>
<title>box-drawing: x/y offsets: use pre-calculated offset values from term struct</title>
<updated>2021-01-11T08:31:09Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-07T16:19:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=25c2379d5f781ca05f784d9df25dd247d2193b71'/>
<id>urn:sha1:25c2379d5f781ca05f784d9df25dd247d2193b71</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: line-height, letter-spacing: values are in pt by default, but we allow px</title>
<updated>2021-01-11T08:31:08Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-07T16:00:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a6fc8b5da4a3bfc9b1d3994797826518103879ac'/>
<id>urn:sha1:a6fc8b5da4a3bfc9b1d3994797826518103879ac</id>
<content type='text'>
If the value is specified without a unit, then the value is assumed to
be in points, subject to DPI scaling.

The value can optionally have a ‘px’ suffix, in which case the value
is treated as a raw pixel count.
</content>
</entry>
<entry>
<title>box-drawing: compensate for non-zero {horizontal,vertical}-letter-offsets</title>
<updated>2021-01-11T08:31:06Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-07T10:18:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=389570b274df25c99ef9654036c2adb614db81fd'/>
<id>urn:sha1:389570b274df25c99ef9654036c2adb614db81fd</id>
<content type='text'>
Box drawing characters should always cover the entire cell. No more,
no less.
</content>
</entry>
<entry>
<title>Use wrappers from macros.h instead of bare GCC attributes/pragmas</title>
<updated>2021-01-03T08:56:47Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2021-01-03T08:56:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=39b2e46e72ad82ec2971b859eae75562751f8464'/>
<id>urn:sha1:39b2e46e72ad82ec2971b859eae75562751f8464</id>
<content type='text'>
</content>
</entry>
<entry>
<title>box-drawing: drop ‘pragma GCC optimize(“Os”)’</title>
<updated>2021-01-02T16:47:47Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-02T16:47:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0861e8d3778b2d1cc19e99c968abbc72778dcae1'/>
<id>urn:sha1:0861e8d3778b2d1cc19e99c968abbc72778dcae1</id>
<content type='text'>
  “The optimize attribute should be used for debugging purposes
  only. It is not suitable in production code.”

Luckily, it seems it really isn’t needed anymore; with all the other
size optimizations that has been done since this was introduced, there
is no longer any difference with or without this pragma.
</content>
</entry>
<entry>
<title>box-drawing: codespell: assymetrical -&gt; asymmetrical</title>
<updated>2021-01-02T11:35:53Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-02T11:35:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c7a611fdf3f0ecf2ebaa2d186d821658c820aabd'/>
<id>urn:sha1:c7a611fdf3f0ecf2ebaa2d186d821658c820aabd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>box-drawing: add macros for {h,v}line_middle_mixed()</title>
<updated>2021-01-02T11:28:03Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-02T11:28:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e353edaf41f1cd7746f41646dd43654aa291bf9d'/>
<id>urn:sha1:e353edaf41f1cd7746f41646dd43654aa291bf9d</id>
<content type='text'>
Mixed here refers to mixed thickness - the lines thickness doesn’t
match the thickness of an abstract, orthogonal line going through the
middle of the cell.
</content>
</entry>
<entry>
<title>box-drawing: LIGHT ARC: simpler way to adjust for asymmetrical arc when mirroring</title>
<updated>2021-01-02T11:09:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-02T11:09:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5a5134e9bd6ec4d32d55616dffad424626fa3384'/>
<id>urn:sha1:5a5134e9bd6ec4d32d55616dffad424626fa3384</id>
<content type='text'>
When mirroring an arc, we need to adjust the mirrored position if the
arc’s position in the cell is asymmetrical. This happens when *either*
the line is odd sized, *or* the cell is. But not when both are.

Thus, we can simply do a ‘thickness % 2 ^ width % 2’ when adjusting
the position.

Describe this in a comment.
</content>
</entry>
<entry>
<title>box-drawing: LIGHT ARC: use min/max instead of checking range inside loop</title>
<updated>2021-01-02T11:08:32Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-02T11:08:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=66497cfd4d9e6c28d0d5678da51812e76b482da7'/>
<id>urn:sha1:66497cfd4d9e6c28d0d5678da51812e76b482da7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>box-drawing: LIGHT ARC: fix alignment of arcs when thickness is &gt; 1px</title>
<updated>2021-01-02T01:26:12Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-02T01:26:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d8e40cf5d4d090955a6fe1e624a9b43e0f65bcdf'/>
<id>urn:sha1:d8e40cf5d4d090955a6fe1e624a9b43e0f65bcdf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>box-drawing: LIGHT ARC: test using a circle equation instead of a bezier curve</title>
<updated>2021-01-01T23:52:02Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-01T23:52:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=87dcdc2b3b8d4586a5b6ef6f4b5804561b07cc50'/>
<id>urn:sha1:87dcdc2b3b8d4586a5b6ef6f4b5804561b07cc50</id>
<content type='text'>
</content>
</entry>
<entry>
<title>box-drawing: guard GCC pragma with #if defined(__GNUC__)</title>
<updated>2021-01-01T22:35:55Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-01T22:35:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=128883fa05336fa16d5918d9308fdc45616d7daf'/>
<id>urn:sha1:128883fa05336fa16d5918d9308fdc45616d7daf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>box-drawing: do not inline any of the utility functions</title>
<updated>2021-01-01T21:29:26Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-01T21:29:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a20c6bd66724b413ef0bc1fa539753af99c5b01e'/>
<id>urn:sha1:a20c6bd66724b413ef0bc1fa539753af99c5b01e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>box-drawing: dedicated functions to draw a full horizontal/vertical line</title>
<updated>2021-01-01T21:24:52Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-01T21:24:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fc79dbb5a3b98d9946db5882668c57dda97c4d1d'/>
<id>urn:sha1:fc79dbb5a3b98d9946db5882668c57dda97c4d1d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>box-drawing: convert {h,v}line_middle_{left,right,up,down}() macros to functions</title>
<updated>2021-01-01T21:12:40Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-01T21:12:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=068f93d22648c1e344b0e53c7ceaff0f31d3f6b4'/>
<id>urn:sha1:068f93d22648c1e344b0e53c7ceaff0f31d3f6b4</id>
<content type='text'>
This greatly reduces the size of the foot binary
</content>
</entry>
</feed>
