Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType Demo Programs
Commits:
-
a0c50341
by Alexei Podtelezhnikov at 2023-04-23T09:12:13-04:00
1 changed file:
Changes:
... | ... | @@ -244,7 +244,8 @@ |
244 | 244 | grFillRect( display->bitmap, x, y - width, width, width,
|
245 | 245 | status.green );
|
246 | 246 | |
247 | - if ( slot->bitmap_left < -width >> 2 )
|
|
247 | + /* advance pen immediately if the glyph is behind the origin */
|
|
248 | + if ( slot->bitmap_left + (int)slot->bitmap.width <= 0 )
|
|
248 | 249 | {
|
249 | 250 | x += width;
|
250 | 251 | width = 0;
|
... | ... | @@ -394,7 +395,8 @@ |
394 | 395 | grFillRect( display->bitmap, x, y - width, width, width,
|
395 | 396 | status.green );
|
396 | 397 | |
397 | - if ( slot->bitmap_left < -width >> 2 )
|
|
398 | + /* advance pen immediately if the glyph is behind the origin */
|
|
399 | + if ( slot->bitmap_left + (int)slot->bitmap.width <= 0 )
|
|
398 | 400 | {
|
399 | 401 | x += width;
|
400 | 402 | width = 0;
|
... | ... | @@ -589,7 +591,8 @@ |
589 | 591 | grFillRect( display->bitmap, x, y - width, width, width,
|
590 | 592 | status.green );
|
591 | 593 | |
592 | - if ( slot->bitmap_left < -width >> 2 )
|
|
594 | + /* advance pen immediately if the glyph is behind the origin */
|
|
595 | + if ( slot->bitmap_left + (int)slot->bitmap.width <= 0 )
|
|
593 | 596 | {
|
594 | 597 | x += width;
|
595 | 598 | width = 0;
|