Merge 35bec848ad486c0cf7d65bda18e71bb2cd7f7891 into 48dbe00bdb98a1ae6a0e60558ce14503616aa759

This commit is contained in:
Kana 2025-10-22 16:15:38 -03:00 committed by GitHub
commit b1f703c3d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,8 @@ static bool custom_title = false;
static bool active_color_title = true;
// scale
static uint32_t buffer_scale = 1;
// set dpi
static uint32_t dpi_set = 96;
// font
static char *fontstr = "monospace:size=16";
// tag names

2
dwlb.c
View File

@ -1899,7 +1899,7 @@ main(int argc, char **argv)
fcft_init(FCFT_LOG_COLORIZE_AUTO, 0, FCFT_LOG_CLASS_ERROR);
fcft_set_scaling_filter(FCFT_SCALING_FILTER_LANCZOS3);
unsigned int dpi = 96 * buffer_scale;
unsigned int dpi = dpi_set * buffer_scale;
char buf[10];
snprintf(buf, sizeof buf, "dpi=%u", dpi);
if (!(font = fcft_from_name(1, (const char *[]) {fontstr}, buf)))