diff options
| author | Konstantin Ritt <ritt.ks@gmail.com> | 2015-02-15 02:45:46 +0400 |
|---|---|---|
| committer | Konstantin Ritt <ritt.ks@gmail.com> | 2015-03-20 13:43:26 +0000 |
| commit | 840a26a9b9e2fa9513fad759903c388e10900830 (patch) | |
| tree | 7d698e498d0082404baabd4c8a0125f821eb5958 /src/sql/drivers/mysql/qsql_mysql.cpp | |
| parent | 202a3deec74a6e730824b1a95b7f9fa2e1909a0a (diff) | |
Do not re-create font if it is not of TMPF_TRUETYPE
For !ttf and stretch==100 case, it was:
hfont = CreateFontIndirect(&lf);
TEXTMETRIC tm = ..;
if (!ttf) {
DeleteObject(hfont);
lf.lfWidth = tm.tmAveCharWidth;
hfont = CreateFontIndirect(&lf);
}
Unless there is some special behavior for non-TrueType fonts I don't
know about, it looks to me like a 100% waste.
Change-Id: I864340e50591ba1d8006d1a80f36f6f06f2734b6
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/sql/drivers/mysql/qsql_mysql.cpp')
0 files changed, 0 insertions, 0 deletions
