mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
...
This commit is contained in:
5
glfw/wl_client_side_decorations.c
vendored
5
glfw/wl_client_side_decorations.c
vendored
@@ -202,9 +202,8 @@ render_title_bar(_GLFWwindow *window, bool to_front_buffer) {
|
|||||||
if (window->wl.title && window->wl.title[0] && _glfw.callbacks.draw_text) {
|
if (window->wl.title && window->wl.title[0] && _glfw.callbacks.draw_text) {
|
||||||
if (_glfw.callbacks.draw_text((GLFWwindow*)window, window->wl.title, fg_color, bg_color, output, decs.top.buffer.width, decs.top.buffer.height - margin, 0, 0, 0)) return;
|
if (_glfw.callbacks.draw_text((GLFWwindow*)window, window->wl.title, fg_color, bg_color, output, decs.top.buffer.width, decs.top.buffer.height - margin, 0, 0, 0)) return;
|
||||||
}
|
}
|
||||||
for (uint32_t *px = (uint32_t*)output, *end = (uint32_t*)(output + decs.top.buffer.size_in_bytes); px < end; px++) {
|
// rendering of text failed, blank the buffer
|
||||||
*px = bg_color;
|
for (uint32_t *px = (uint32_t*)output, *end = (uint32_t*)(output + decs.top.buffer.size_in_bytes); px < end; px++) *px = bg_color;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user