summaryrefslogtreecommitdiffstats
path: root/src/opengl/tqgl_x11.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-01-10 13:17:31 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-01-10 13:17:31 +0900
commitccd304b2a6415d8b747d04b3a47736d1e6f45717 (patch)
treeb527d8b4ad438ebb1a96699d409e1cd5b9b368ea /src/opengl/tqgl_x11.cpp
parent2b0ea37581b2fa4eba2b353d45dc134fbafe0b0f (diff)
downloadtqt-ccd304b2a6415d8b747d04b3a47736d1e6f45717.tar.gz
tqt-ccd304b2a6415d8b747d04b3a47736d1e6f45717.zip
Drop code for obsolete FreeType 1
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/opengl/tqgl_x11.cpp')
-rw-r--r--src/opengl/tqgl_x11.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/opengl/tqgl_x11.cpp b/src/opengl/tqgl_x11.cpp
index 72870e83d..95a92e566 100644
--- a/src/opengl/tqgl_x11.cpp
+++ b/src/opengl/tqgl_x11.cpp
@@ -867,11 +867,7 @@ void qgl_use_font(TQFontEngineXft *engine, int first, int count, int listBase)
#if 0 // disable antialias support for now
XftPatternGetBool(engine->pattern(), XFT_ANTIALIAS, 0, &antialiased);
#endif
-#ifdef QT_XFT2
FT_Face face = XftLockFace(engine->font());
-#else
- FT_Face face = engine->face();
-#endif
// start generating font glyphs
for (int i = first; i < count; ++i) {
int list = listBase + i;
@@ -934,9 +930,7 @@ void qgl_use_font(TQFontEngineXft *engine, int first, int count, int listBase)
antialiased ? delete[] aa_glyph : delete[] ua_glyph;
}
-#ifdef QT_XFT2
XftUnlockFace(engine->font());
-#endif
// restore pixel unpack settings
glPixelStorei(GL_UNPACK_SWAP_BYTES, gl_swapbytes);