Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType
Commits:
-
fb9bf2ef
by Alexei Podtelezhnikov at 2021-03-15T22:33:17-04:00
2 changed files:
Changes:
1 |
+2021-03-11 Alexei Podtelezhnikov <apodtele@gmail.com>
|
|
2 |
+ |
|
3 |
+ * src/smooth/ftgrays.c (gray_set_cell): Refactor to fix VC++ warning.
|
|
4 |
+ |
|
1 | 5 |
2021-03-13 Werner Lemberg <wl@gnu.org>
|
2 | 6 |
|
3 | 7 |
Handle various VC++ compiler warnings.
|
... | ... | @@ -540,15 +540,17 @@ typedef ptrdiff_t FT_PtrDist; |
540 | 540 |
ras.cell = NULL;
|
541 | 541 |
else
|
542 | 542 |
{
|
543 |
- PCell *pcell, cell;
|
|
543 |
+ PCell* pcell = ras.ycells + ey - ras.min_ey;
|
|
544 |
+ PCell cell;
|
|
544 | 545 |
|
545 | 546 |
|
546 | 547 |
ex = FT_MAX( ex, ras.min_ex - 1 );
|
547 | 548 |
|
548 |
- pcell = &ras.ycells[ey - ras.min_ey];
|
|
549 |
- while ( ( cell = *pcell ) )
|
|
549 |
+ while ( 1 )
|
|
550 | 550 |
{
|
551 |
- if ( cell->x > ex )
|
|
551 |
+ cell = *pcell;
|
|
552 |
+ |
|
553 |
+ if ( !cell || cell->x > ex )
|
|
552 | 554 |
break;
|
553 | 555 |
|
554 | 556 |
if ( cell->x == ex )
|