summaryrefslogtreecommitdiffstats
path: root/src/opengl
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-12 11:39:54 +0900
commit1c9111b3795a3b87254cbac172dcc565c7f76a57 (patch)
tree4989457372b878ec193198dc9c0501baef7f930f /src/opengl
parentc147c9001b60295bdd731f95d805460c8973621b (diff)
downloadtqt3-1c9111b3795a3b87254cbac172dcc565c7f76a57.tar.gz
tqt3-1c9111b3795a3b87254cbac172dcc565c7f76a57.zip
Drop code for obsolete FreeType 1
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit ccd304b2a6415d8b747d04b3a47736d1e6f45717)
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/qgl_x11.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/opengl/qgl_x11.cpp b/src/opengl/qgl_x11.cpp
index 51daa176b..724e999e4 100644
--- a/src/opengl/qgl_x11.cpp
+++ b/src/opengl/qgl_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);