Skip to content

Commit 70f0c27

Browse files
committed
Drop linux_ prefix from linux_use_subpixel_rendering option
1 parent a21cda4 commit 70f0c27

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

kitty/config_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ def macos_option_as_alt(x):
956956
invisible on dual GPU machines.'''))
957957
# }}}
958958

959-
o('linux_use_subpixel_rendering', False, long_text=_('''
959+
o('use_subpixel_rendering', False, long_text=_('''
960960
Use subpixel rendering instead of grayscale in freetype. Impacts performance,
961961
but may look better on low DPI screens.
962962
'''))

kitty/freetype.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ populate_processed_bitmap(FT_GlyphSlotRec *slot, FT_Bitmap *bitmap, ProcessedBit
357357
static inline bool
358358
render_bitmap(Face *self, int glyph_id, ProcessedBitmap *ans, unsigned int cell_width, unsigned int cell_height, unsigned int num_cells, bool bold, bool italic, bool rescale, FONTS_DATA_HANDLE fg) {
359359
int flags = FT_LOAD_RENDER;
360-
if (OPT(linux_use_subpixel_rendering))
360+
if (OPT(use_subpixel_rendering))
361361
flags |= FT_LOAD_TARGET_LCD;
362362
if (!load_glyph(self, glyph_id, flags)) return false;
363363
unsigned int max_width = cell_width * num_cells;
@@ -623,7 +623,7 @@ render_simple_text_impl(PyObject *s, const char *text, unsigned int baseline) {
623623
int error = FT_Load_Glyph(self->face, glyph_index, FT_LOAD_DEFAULT);
624624
if (error) continue;
625625
int flags = 0;
626-
if (OPT(linux_use_subpixel_rendering))
626+
if (OPT(use_subpixel_rendering))
627627
flags |= FT_RENDER_MODE_LCD;
628628
else
629629
flags |= FT_RENDER_MODE_NORMAL;

kitty/glfw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ create_os_window(PyObject UNUSED *self, PyObject *args) {
514514
// blank the window once so that there is no initial flash of color
515515
// changing, in case the background color is not black
516516
blank_canvas(is_semi_transparent ? OPT(background_opacity) : 1.0f);
517-
bool is_subpixel_enabled = OPT(linux_use_subpixel_rendering);
517+
bool is_subpixel_enabled = OPT(use_subpixel_rendering);
518518
#ifndef __APPLE__
519519
if (is_first_window) glfwSwapInterval(OPT(sync_to_monitor) && !global_state.is_wayland ? 1 : 0);
520520
#endif

kitty/state.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ PYWRAP1(set_options) {
408408
S(macos_window_resizable, PyObject_IsTrue);
409409
S(macos_hide_from_tasks, PyObject_IsTrue);
410410
S(macos_thicken_font, PyFloat_AsDouble);
411-
S(linux_use_subpixel_rendering, PyObject_IsTrue);
411+
S(use_subpixel_rendering, PyObject_IsTrue);
412412
S(tab_bar_min_tabs, PyLong_AsUnsignedLong);
413413
S(disable_ligatures, PyLong_AsLong);
414414
S(resize_draw_strategy, PyLong_AsLong);

kitty/state.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ typedef struct {
2626
double repaint_delay, input_delay;
2727
bool focus_follows_mouse, hide_window_decorations;
2828
bool macos_hide_from_tasks, macos_quit_when_last_window_closed, macos_window_resizable, macos_traditional_fullscreen, macos_show_window_title_in_menubar;
29-
bool linux_use_subpixel_rendering;
29+
bool use_subpixel_rendering;
3030
unsigned int macos_option_as_alt;
3131
float macos_thicken_font;
3232
int adjust_line_height_px, adjust_column_width_px;

0 commit comments

Comments
 (0)