Skip to content
Myr

Merge branch 'master' of https://github.com/Sergobot/stb into working

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Barrett · committed by Sean Barrett · parents 7b24469, f24f92b · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:stb_truetype.h+2 added-2 removed
1743 unmodified lines
1744}17451746static void stbtt__rasterize_sorted_edges(stbtt__bitmap *result, stbtt__edge *e, int n, int vsubsample, int off_x, int off_y, void *userdata)1747{1748 stbtt__hheap hh = { 0 };1748 stbtt__hheap hh = { 0, 0, 0 };1749 stbtt__active_edge *active = NULL;1750 int y,j=0;1751 int max_weight = (255 / vsubsample); // weight per vertical scanline1752 int s; // vertical subsample index
293 unmodified lines
20462047// directly AA rasterize edges w/o supersampling2048static void stbtt__rasterize_sorted_edges(stbtt__bitmap *result, stbtt__edge *e, int n, int vsubsample, int off_x, int off_y, void *userdata)2049{2050 stbtt__hheap hh = { 0 };2050 stbtt__hheap hh = { 0, 0, 0 };2051 stbtt__active_edge *active = NULL;2052 int y,j=0, i;2053 float scanline_data[129], *scanline, *scanline2;2054
1166 unmodified lines