Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType Demo Programs
Commits:
-
765ba6b6
by Alexei Podtelezhnikov at 2022-11-14T15:41:15+00:00
1 changed file:
Changes:
... | ... | @@ -533,14 +533,11 @@ |
533 | 533 | void* user_data )
|
534 | 534 | {
|
535 | 535 | FT_BBox bbox;
|
536 | - FT_Matrix rot30 = { 0xDDB4, -0x8000, 0x8000, 0xDDB4 };
|
|
537 | 536 | |
538 | 537 | int i, done = 0;
|
539 | 538 | |
540 | 539 | FT_UNUSED( user_data );
|
541 | 540 | |
542 | - /* rotate outlines by 30 degrees so that CBox and BBox are different */
|
|
543 | - FT_Set_Transform( face, &rot30, NULL );
|
|
544 | 541 | |
545 | 542 | FOREACH( i )
|
546 | 543 | {
|
... | ... | @@ -1477,7 +1474,15 @@ |
1477 | 1474 | case FT_BENCH_GET_BBOX:
|
1478 | 1475 | test.title = "Get_BBox";
|
1479 | 1476 | test.bench = test_get_bbox;
|
1480 | - benchmark( face, &test, max_iter, max_time );
|
|
1477 | + {
|
|
1478 | + FT_Matrix rot30 = { 0xDDB4, -0x8000, 0x8000, 0xDDB4 };
|
|
1479 | + |
|
1480 | + |
|
1481 | + /* rotate outlines by 30 degrees so that CBox and BBox are different */
|
|
1482 | + FT_Set_Transform( face, &rot30, NULL );
|
|
1483 | + benchmark( face, &test, max_iter, max_time );
|
|
1484 | + FT_Set_Transform( face, NULL, NULL );
|
|
1485 | + }
|
|
1481 | 1486 | break;
|
1482 | 1487 | |
1483 | 1488 | case FT_BENCH_CMAP:
|