summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorTarja Sundqvist <tarja.sundqvist@qt.io>2023-10-11 16:01:26 +0300
committerTarja Sundqvist <tarja.sundqvist@qt.io>2023-10-11 16:01:26 +0300
commit03294b37d76750b6100618ba4c172a688e826d46 (patch)
tree2e085e207907bba2dc83f44ccf3b2dfd0e2379eb /src/opengl
parentda6e958319e95fe564d3b30c931492dd666bfaff (diff)
parent1bf394a4c98c529844c896f8666412e5fcac8a7a (diff)
Merge remote-tracking branch 'origin/tqtc/lts-5.15.12' into tqtc/lts-5.15-opensource
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp b/src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp
index d5ce4efd1a..dc9623097c 100644
--- a/src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp
+++ b/src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp
@@ -374,7 +374,10 @@ void QGLTextureGlyphCache::fillTexture(const Coord &c, glyph_t glyph, QFixed sub
int QGLTextureGlyphCache::glyphPadding() const
{
- return 1;
+ if (m_format == QFontEngine::Format_Mono)
+ return 8;
+ else
+ return 1;
}
int QGLTextureGlyphCache::maxTextureWidth() const