Wayland GNOME: Fix the font size in the OS Window title bar changing with the size of the text in the window
This commit is contained in:
parent
35d23e817c
commit
62bd6c88e9
2 changed files with 3 additions and 2 deletions
|
|
@ -130,6 +130,8 @@ Detailed list of changes
|
|||
|
||||
- diff kitten: Add bindings to jump to next and previous file (:pull:`7683`)
|
||||
|
||||
- Wayland GNOME: Fix the font size in the OS Window title bar changing with the size of the text in the window (:disc:`7677`)
|
||||
|
||||
|
||||
0.35.2 [2024-06-22]
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
|
|
@ -642,8 +642,7 @@ draw_text_callback(GLFWwindow *window, const char *text, uint32_t fg, uint32_t b
|
|||
if (!ensure_csd_title_render_ctx()) return false;
|
||||
double xdpi, ydpi;
|
||||
get_window_dpi(window, &xdpi, &ydpi);
|
||||
unsigned px_sz = (unsigned)(global_state.callback_os_window->fonts_data->font_sz_in_pts * ydpi / 72.);
|
||||
px_sz = MIN(px_sz, 3 * height / 4);
|
||||
unsigned px_sz = 2 * height / 3;
|
||||
static char title[2048];
|
||||
if (!is_single_glyph) {
|
||||
snprintf(title, sizeof(title), " ❭ %s", text);
|
||||
|
|
|
|||
Loading…
Reference in a new issue