mirror of
https://github.com/kolunmi/dwlb.git
synced 2025-10-26 17:54:31 +00:00
Merge 35bec848ad486c0cf7d65bda18e71bb2cd7f7891 into 48dbe00bdb98a1ae6a0e60558ce14503616aa759
This commit is contained in:
commit
b1f703c3d0
@ -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
2
dwlb.c
@ -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)))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user