aboutsummaryrefslogtreecommitdiff
path: root/src/frame.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-02-18 19:48:22 +0100
committerThomas White <taw@physics.org>2018-02-19 20:19:04 +0100
commit889bff2106db15c5bb7100e7fdd6f14ad6ae2bd5 (patch)
tree1edfd15832470fb43376376dca1933c5d06827a0 /src/frame.h
parent66d7abfe17971edc86ac3b06b272d9234f0b4cfe (diff)
Remove text run SCBlock offset
The \newpara change (commit 7f2d0abd) removed the only situation when the start of a run might not coincide with the start of an SCBlock, or vice-versa (although not all SCBlocks correspond to text runs, obviously). Therefore, the offset is always zero and can be removed, simplifying the code.
Diffstat (limited to 'src/frame.h')
-rw-r--r--src/frame.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frame.h b/src/frame.h
index b60afa1..6145666 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -137,7 +137,7 @@ extern void show_edit_pos(struct edit_pos a);
extern void add_run(Paragraph *para, SCBlock *scblock,
SCBlock *macro_real, SCBlock *contents_top,
- size_t offs_bytes, size_t len_bytes,
+ size_t len_bytes,
PangoFontDescription *fdesc, double col[4],
int macro_editable);
@@ -208,6 +208,6 @@ extern SCBlock *para_scblock(Paragraph *para);
extern int para_debug_num_runs(Paragraph *para);
extern int para_debug_run_info(Paragraph *para, int i, size_t *len, SCBlock **scblock,
- size_t *scblock_offs, size_t *para_offs);
+ size_t *para_offs);
#endif /* FRAME_H */