<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/render.c, branch 1.0.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.0.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.0.0'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2019-12-03T20:03:52Z</updated>
<entry>
<title>fcft: update to 0.3.0</title>
<updated>2019-12-03T20:03:52Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-03T20:00:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0f15f0ba43dc60d98dc17b77492ccf1089186abb'/>
<id>urn:sha1:0f15f0ba43dc60d98dc17b77492ccf1089186abb</id>
<content type='text'>
fcft now calculates the underline and strikeout integer positions,
making our rendering code much simpler.
</content>
</entry>
<entry>
<title>render: limit size of search surface to parent window</title>
<updated>2019-12-03T19:19:50Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-03T19:19:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b0d555255cc7ba44241a064e5595f1e935d16e4d'/>
<id>urn:sha1:b0d555255cc7ba44241a064e5595f1e935d16e4d</id>
<content type='text'>
This shouldn't be necessary, but Sway acts up when the subsurface
exceeds the parent surface (window, in this case) size, and extends
the window size (if floating), leaving it with no content
</content>
</entry>
<entry>
<title>render: don't allow negative coordinates of the search surface</title>
<updated>2019-12-03T18:58:33Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-03T18:58:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3c713899932f10a61fa9584c498396a2aaad0d4d'/>
<id>urn:sha1:3c713899932f10a61fa9584c498396a2aaad0d4d</id>
<content type='text'>
While the protocol allows this, it appears Sway offsets (moves) the
parent surface when this happens, resulting in a window half without
content.
</content>
</entry>
<entry>
<title>fcft: include &lt;fcft/fcft.h&gt;, and use fcft/stride.h instead of local copy</title>
<updated>2019-12-01T13:03:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-01T13:03:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=30335ef32ac8d04b4221b5a0988835767f9ea944'/>
<id>urn:sha1:30335ef32ac8d04b4221b5a0988835767f9ea944</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fcft: use fcft instead of local copy of font.c/font.h</title>
<updated>2019-12-01T12:43:51Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-01T12:43:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fd9c28464db8e3f334819ec9d773bf31ed37c088'/>
<id>urn:sha1:fd9c28464db8e3f334819ec9d773bf31ed37c088</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: fix underline/strikeout positioning</title>
<updated>2019-11-30T13:53:22Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-30T13:53:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=90bfcc1fbd8bb53508dc93405add1d8aacb4e7ed'/>
<id>urn:sha1:90bfcc1fbd8bb53508dc93405add1d8aacb4e7ed</id>
<content type='text'>
There were two errors:

* We subtracted half the line width instead of adding it to the
  baseline

* We rounded the line positioning and thickness before the positioning
  calculation. In particular, rounding the thickness before using it
  to adjust the position was wrong. Now we round just before the
  pixman call.
</content>
</entry>
<entry>
<title>render: font_baseline(): simply use the primary font's ascent</title>
<updated>2019-11-30T13:51:44Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-30T13:51:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7be98291e161d1c6a0d878285abae4c909e48e0f'/>
<id>urn:sha1:7be98291e161d1c6a0d878285abae4c909e48e0f</id>
<content type='text'>
This is what we used as baseline for regular glyphs anyway. Thus, we
can update that code to call font_baseline() now. This makes it easier
to change how we define the baseline in the future.
</content>
</entry>
<entry>
<title>render: fix rendering of cursor when cell is reversed</title>
<updated>2019-11-28T18:22:21Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-28T18:22:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b96fb2ddab64970783313850ed80dfd311c16158'/>
<id>urn:sha1:b96fb2ddab64970783313850ed80dfd311c16158</id>
<content type='text'>
When the user had configured the cursor color, we failed to
invert (reverse) the foreground and background color when the cursor
was on a cell with the 'reverse' attribute set.
</content>
</entry>
<entry>
<title>font: move metrics from terminal struct to font struct</title>
<updated>2019-11-26T18:02:35Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-26T17:54:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=bc86cd61c75f984633eb226692a30832c58efb17'/>
<id>urn:sha1:bc86cd61c75f984633eb226692a30832c58efb17</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: add struct cursor</title>
<updated>2019-11-17T08:44:31Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-17T08:44:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d637b8c9ba8faa68e90c531131fa29b0abd9aaab'/>
<id>urn:sha1:d637b8c9ba8faa68e90c531131fa29b0abd9aaab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: configure default tab stops when resizing the terminal</title>
<updated>2019-11-16T09:54:56Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-16T09:54:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=37139fc4faea37833e0b9d5be7c55f1c5db410cf'/>
<id>urn:sha1:37139fc4faea37833e0b9d5be7c55f1c5db410cf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revert "render: last_buf may point to a free:d buffer"</title>
<updated>2019-11-02T00:28:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-02T00:28:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=bf9aff056a653bfbad6617a4939fc267139c9043'/>
<id>urn:sha1:bf9aff056a653bfbad6617a4939fc267139c9043</id>
<content type='text'>
This reverts commit 4d3251a93b4ba309d573aca6ff397df44c4ff760.
</content>
</entry>
<entry>
<title>render: last_buf may point to a free:d buffer</title>
<updated>2019-11-01T23:48:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-01T23:48:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4d3251a93b4ba309d573aca6ff397df44c4ff760'/>
<id>urn:sha1:4d3251a93b4ba309d573aca6ff397df44c4ff760</id>
<content type='text'>
So, store last buf's width/height separately
</content>
</entry>
<entry>
<title>shm: associate a 'cookie' with each buffer</title>
<updated>2019-11-01T23:33:37Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-01T23:33:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=00b46455a065d33cb01dc6345637b38c3309596d'/>
<id>urn:sha1:00b46455a065d33cb01dc6345637b38c3309596d</id>
<content type='text'>
When re-using a buffer from cache, only re-use ones with a matching
cookie.

This prevents contention between multiple terminal windows.
</content>
</entry>
<entry>
<title>shm: get_buffer(): remove 'copies' argument; it's not used</title>
<updated>2019-11-01T23:23:51Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-01T23:23:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8df82938b0549d0c5820ce258f0097a0370e75ea'/>
<id>urn:sha1:8df82938b0549d0c5820ce258f0097a0370e75ea</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: limit length of title in call to xdg_toplevel_set_title()</title>
<updated>2019-11-01T19:25:44Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-01T19:25:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=dac1ba18c8e97e2a726a83e1cddc1c8f2a40468d'/>
<id>urn:sha1:dac1ba18c8e97e2a726a83e1cddc1c8f2a40468d</id>
<content type='text'>
Trying to pass a too long title (not sure what "too long" is
though...) will trigger a call to abort() inside the wayland-client
library.
</content>
</entry>
<entry>
<title>render: call wl_display_flush() after rendering</title>
<updated>2019-11-01T19:01:36Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-01T19:01:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=291a928a49fbf1da3553aec0730ddd987a3f969a'/>
<id>urn:sha1:291a928a49fbf1da3553aec0730ddd987a3f969a</id>
<content type='text'>
This allows us to remove that call from the main event loop.
</content>
</entry>
<entry>
<title>Merge branch 'fdm'</title>
<updated>2019-10-30T16:31:44Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-10-30T16:31:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ad0f8a02d56709bd59211ff6a5d485a380d708f0'/>
<id>urn:sha1:ad0f8a02d56709bd59211ff6a5d485a380d708f0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>scrollback: regression: fix rendering of scrollback diffs less than a screen</title>
<updated>2019-10-29T20:09:37Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-10-29T20:09:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a42df2434b796f19ff729e194dd6a22f5128b89a'/>
<id>urn:sha1:a42df2434b796f19ff729e194dd6a22f5128b89a</id>
<content type='text'>
When doing "small" scrolls (typically done via mouse wheel or
similar), we render the scrolling by emitting a "scroll damage".

A recent commit changed how scroll damage is rendered; only when the
view is at the bottom ("following" the screen output) do we render the
damage.

To fix this, add a new type of scroll damage,
SCROLL_DAMAGE_IN_VIEW and SCROLL_DAMAGE_REVERSE_IN_VIEW.

These signal to the renderer that it should always render the damage.
</content>
</entry>
<entry>
<title>render worker context: allocate, and let worker threads free</title>
<updated>2019-10-28T17:51:04Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-10-28T17:48:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8e6f87eb17b562fd3d1def7a65b5dc8346642f8e'/>
<id>urn:sha1:8e6f87eb17b562fd3d1def7a65b5dc8346642f8e</id>
<content type='text'>
Since we now initialize the worker threads from term_init(), which
returns before the threads terminate, we can no longer use
stack-allocated worker contexts.

We _could_ put them in the terminal struct. But a simpler solution is
to allocate them in term_init(), and let the threads free them when
they don't need them anymore.
</content>
</entry>
</feed>
