Commit da5da65
patch 9.0.1987: win32: font-size calculation can be improved
Problem: win32: font-size calculation can be improved
Solution: calculate font size before the window size
Support calculating the new size even if a bitmap font is used.
Calculate the new font size before actually change the Window size.
closes: #13280
related: #11812, #13252
Signed-off-by: Christian Brabandt <[email protected]>
Co-authored-by: Ken Takata <[email protected]>1 parent c661e11 commit da5da65
2 files changed
Lines changed: 40 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1588 | 1588 | | |
1589 | 1589 | | |
1590 | 1590 | | |
1591 | | - | |
| 1591 | + | |
1592 | 1592 | | |
1593 | 1593 | | |
1594 | 1594 | | |
| |||
1599 | 1599 | | |
1600 | 1600 | | |
1601 | 1601 | | |
1602 | | - | |
1603 | | - | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
1604 | 1606 | | |
1605 | 1607 | | |
1606 | 1608 | | |
1607 | 1609 | | |
1608 | 1610 | | |
1609 | 1611 | | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
1610 | 1621 | | |
1611 | 1622 | | |
1612 | 1623 | | |
1613 | 1624 | | |
1614 | 1625 | | |
1615 | 1626 | | |
1616 | | - | |
| 1627 | + | |
1617 | 1628 | | |
1618 | 1629 | | |
1619 | 1630 | | |
| |||
3517 | 3528 | | |
3518 | 3529 | | |
3519 | 3530 | | |
3520 | | - | |
| 3531 | + | |
3521 | 3532 | | |
3522 | 3533 | | |
3523 | 3534 | | |
| |||
4742 | 4753 | | |
4743 | 4754 | | |
4744 | 4755 | | |
| 4756 | + | |
| 4757 | + | |
| 4758 | + | |
| 4759 | + | |
| 4760 | + | |
4745 | 4761 | | |
4746 | 4762 | | |
4747 | 4763 | | |
4748 | | - | |
4749 | | - | |
4750 | | - | |
4751 | | - | |
| 4764 | + | |
| 4765 | + | |
| 4766 | + | |
| 4767 | + | |
| 4768 | + | |
| 4769 | + | |
| 4770 | + | |
| 4771 | + | |
| 4772 | + | |
| 4773 | + | |
| 4774 | + | |
| 4775 | + | |
| 4776 | + | |
| 4777 | + | |
| 4778 | + | |
| 4779 | + | |
4752 | 4780 | | |
4753 | 4781 | | |
4754 | | - | |
| 4782 | + | |
4755 | 4783 | | |
4756 | 4784 | | |
4757 | 4785 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
704 | 704 | | |
705 | 705 | | |
706 | 706 | | |
| 707 | + | |
| 708 | + | |
707 | 709 | | |
708 | 710 | | |
709 | 711 | | |
| |||
0 commit comments