Skip to content

Commit c18a969

Browse files
committed
Drop linux_ prefix from linux_use_subpixel_rendering option
1 parent ba6af6e commit c18a969

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
@@ -941,7 +941,7 @@ def macos_option_as_alt(x):
941941
invisible on dual GPU machines.'''))
942942
# }}}
943943

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

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
@@ -567,7 +567,7 @@ create_os_window(PyObject UNUSED *self, PyObject *args) {
567567
// blank the window once so that there is no initial flash of color
568568
// changing, in case the background color is not black
569569
blank_canvas(is_semi_transparent ? OPT(background_opacity) : 1.0f);
570-
bool is_subpixel_enabled = OPT(linux_use_subpixel_rendering);
570+
bool is_subpixel_enabled = OPT(use_subpixel_rendering);
571571
#ifndef __APPLE__
572572
if (is_first_window) glfwSwapInterval(OPT(sync_to_monitor) && !global_state.is_wayland ? 1 : 0);
573573
#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

kitty/state.h

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

0 commit comments

Comments
 (0)