Implement rendering of emoji for CSD

This commit is contained in:
Kovid Goyal
2021-03-31 15:23:05 +05:30
parent ada3f9e547
commit dd2b6119b3
4 changed files with 107 additions and 69 deletions

View File

@@ -501,8 +501,7 @@ detect_right_edge(ProcessedBitmap *ans) {
}
static inline bool
render_color_bitmap(Face *self, int glyph_id, ProcessedBitmap *ans, unsigned int cell_width, unsigned int cell_height, unsigned int num_cells, unsigned int baseline) {
(void)baseline;
render_color_bitmap(Face *self, int glyph_id, ProcessedBitmap *ans, unsigned int cell_width, unsigned int cell_height, unsigned int num_cells, unsigned int baseline UNUSED) {
unsigned short best = 0, diff = USHRT_MAX;
const short limit = self->face->num_fixed_sizes;
for (short i = 0; i < limit; i++) {