Files
deb-lite-xl/src/rencache.h
T
Francesco Abbate 3426bc5d73 Introduce subpixel text positioning within rencache
In order to fix the issue with cursor positioning a subpixel-aware draw
text operation within rencache was required.

With this modification the cursor positioning problem is completely
resolved.

A new function renderer.draw_text_subpixel is introduced to perform
consecutive, inline, text drawings with subpixel accuracy.
2021-03-06 18:12:02 +01:00

17 lines
472 B
C

#ifndef RENCACHE_H
#define RENCACHE_H
#include <stdbool.h>
#include "renderer.h"
void rencache_show_debug(bool enable);
void rencache_free_font(RenFont *font);
void rencache_set_clip_rect(RenRect rect);
void rencache_draw_rect(RenRect rect, RenColor color);
int rencache_draw_text(RenFont *font, const char *text, int x, int y, RenColor color, bool draw_subpixel);
void rencache_invalidate(void);
void rencache_begin_frame(void);
void rencache_end_frame(void);
#endif