Comment out asserts that can be triggered when launching MaterialUI

in fullscreen mode
This commit is contained in:
twinaphex 2019-04-08 22:25:35 +02:00
parent 3346cd23c0
commit b25c571b23

View File

@ -1876,6 +1876,7 @@ static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edg
y1 = e->ey;
}
#if 0
if (x0 == x)
assert(x1 <= x+1);
else if (x0 == x+1)
@ -1886,13 +1887,16 @@ static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edg
assert(x1 >= x+1);
else
assert(x1 >= x && x1 <= x+1);
#endif
if (x0 <= x && x1 <= x)
scanline[x] += e->direction * (y1-y0);
else if (x0 >= x+1 && x1 >= x+1)
;
else {
#if 0
assert(x0 >= x && x0 <= x+1 && x1 >= x && x1 <= x+1);
#endif
scanline[x] += e->direction * (y1-y0) * (1-((x0-x)+(x1-x))/2); /* coverage = 1 - average x position */
}
}