diff options
author | pommicket <pommicket@gmail.com> | 2023-07-31 23:51:02 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-08-01 12:54:24 -0400 |
commit | 7c5ca21fdd5fb3448376e9491528487ddb5db076 (patch) | |
tree | 4ff33aa87182f48a0e001bf1532799191b518d53 /text.h | |
parent | f8b5606c42ba3ae35baf823c12865cc7aa68d260 (diff) |
fix inconsistencies btwn xoff_to_index & rendering
Diffstat (limited to 'text.h')
-rw-r--r-- | text.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -44,6 +44,12 @@ typedef struct { /// index of previous glyph rendered, or 0 if this is the first int prev_glyph; + /// added to x for rendering + /// this exists for complicated reasons + /// basically we want a way of consistently getting the size + /// of text without error from floating point imprecision + float x_render_offset; + /// used for forwards-compatibility char _reserved[64]; } TextRenderState; |