Add comment about `gl-no-fractional`

pull/7233/head
Morgan 2025-04-30 23:48:15 +09:00
parent 5291292047
commit 6f4fe56b93
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -159,6 +159,7 @@ pub fn init(core_app: *CoreApp, opts: Options) !App {
opengl: bool = false,
/// disable GLES, Ghostty can't use GLES
@"gl-disable-gles": bool = false,
// GTK's new renderer can cause blurry font when using fractional scaling.
@"gl-no-fractional": bool = false,
/// Disabling Vulkan can improve startup times by hundreds of
/// milliseconds on some systems. We don't use Vulkan so we can just
@ -203,6 +204,7 @@ pub fn init(core_app: *CoreApp, opts: Options) !App {
gdk_debug.@"vulkan-disable" = true;
if (gtk_version.runtimeUntil(4, 17, 5)) {
// Removed at GTK v4.17.5
gdk_debug.@"gl-no-fractional" = true;
}
break :environment;