From 1c9111b3795a3b87254cbac172dcc565c7f76a57 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 10 Jan 2025 13:17:31 +0900 Subject: Drop code for obsolete FreeType 1 Signed-off-by: Michele Calgaro (cherry picked from commit ccd304b2a6415d8b747d04b3a47736d1e6f45717) --- src/opengl/qgl_x11.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/opengl/qgl_x11.cpp') 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); -- cgit v1.2.3