summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-11-25 11:43:13 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-11-25 11:43:13 -0500
commitb58e9a3faa4e35ff6e872e28c7051fa19e2b11ad (patch)
treeba0ab494e36a98cbaa92b99ad1949256e4a98279 /buffer.c
parentc2f91a659c126d1fd5ee951bdf58540d9d39fd47 (diff)
icon
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/buffer.c b/buffer.c
index 8641eb1..a1c0516 100644
--- a/buffer.c
+++ b/buffer.c
@@ -125,8 +125,8 @@ void text_buffer_render(TextBuffer *buffer, Font *font, float box_x, float box_y
text_chars_begin(font);
TextRenderState text_state = {
.x = box_x, .y = box_y,
- .edge_right = box_x+box_w,
- .edge_bottom = box_y+box_h
+ .min_x = box_x, .min_y = box_y,
+ .max_x = box_x+box_w, .max_y = box_y+box_h
};
for (uint block_idx = 0; block_idx < nblocks; ++block_idx) {