Initialize brightness on wayland too

This commit is contained in:
Linus Dierheimer
2023-01-07 22:37:01 +01:00
parent e7af38aa11
commit 137039f868
2 changed files with 4 additions and 2 deletions
@@ -66,6 +66,7 @@ static void waylandOutputModeListener(void* data, struct wl_output* output, uint
result->width = (uint32_t) width;
result->height = (uint32_t) height;
result->refreshRate = ffdsParseRefreshRate(refreshRate / 1000);
result->brightness = -1;
}
static void waylandGlobalAddListener(void* data, struct wl_registry* registry, uint32_t name, const char* interface, uint32_t version)
+3 -2
View File
@@ -176,10 +176,11 @@ static inline void printCommandHelp(const char* command)
}
else if(strcasecmp(command, "resolution-format") == 0)
{
constructAndPrintCommandHelpFormat("resolution", "{}x{} @ {}Hz", 3,
constructAndPrintCommandHelpFormat("resolution", "{}x{} @ {}Hz", 4,
"Screen width",
"Screen height",
"Screen refresh rate"
"Screen refresh rate",
"Screen brightness"
);
}
else if(strcasecmp(command, "de-format") == 0)