зеркало из https://github.com/stride3d/freetype.git
[raster] Add undocumented drop-out rule to the other bbox side also.
* src/raster/ftraster.c (Vertical_Sweep_Drop, Horizontal_Sweep_Drop): Implement it.
This commit is contained in:
Родитель
c02485cb72
Коммит
0039d0120e
|
@ -1,3 +1,10 @@
|
|||
2011-01-13 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
[raster] Add undocumented drop-out rule to the other bbox side also.
|
||||
|
||||
* src/raster/ftraster.c (Vertical_Sweep_Drop,
|
||||
Horizontal_Sweep_Drop): Implement it.
|
||||
|
||||
2011-01-13 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
[raster] Reduce jitter value.
|
||||
|
|
|
@ -2426,9 +2426,12 @@
|
|||
}
|
||||
|
||||
/* undocumented but confirmed: If the drop-out would result in a */
|
||||
/* pixel outside of the bounding box, use the right pixel instead */
|
||||
/* pixel outside of the bounding box, use the pixel inside of the */
|
||||
/* bounding box instead */
|
||||
if ( pxl < 0 )
|
||||
pxl = e1;
|
||||
else if ( TRUNC( pxl ) >= ras.bWidth )
|
||||
pxl = e2;
|
||||
|
||||
/* check that the other pixel isn't set */
|
||||
e1 = pxl == e1 ? e2 : e1;
|
||||
|
@ -2606,10 +2609,13 @@
|
|||
return; /* no drop-out control */
|
||||
}
|
||||
|
||||
/* undocumented but confirmed: If the drop-out would result in a */
|
||||
/* pixel outside of the bounding box, use the top pixel instead */
|
||||
/* undocumented but confirmed: If the drop-out would result in a */
|
||||
/* pixel outside of the bounding box, use the pixel inside of the */
|
||||
/* bounding box instead */
|
||||
if ( pxl < 0 )
|
||||
pxl = e1;
|
||||
else if ( TRUNC( pxl ) >= ras.target.rows )
|
||||
pxl = e2;
|
||||
|
||||
/* check that the other pixel isn't set */
|
||||
e1 = pxl == e1 ? e2 : e1;
|
||||
|
|
Загрузка…
Ссылка в новой задаче