mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-09 15:19:11 +02:00
Functionality: * Add configuration to anchor position of messages (#60, 71 in Bugs.md). * Add output priorisation (#38, 68 in Bugs.md). * Print whether output is active in dump. Bug Fixes: * Fix gamma control (72 in Bugs.md). * Add missing commands to example config. * Add message_config to dump output. Example Scripts: * Add screenshot script. * Make example scripts standalone. Documentation: * Escape html tags in config man page. (#68, 69 in Bugs.md) * Improve README.md (#62, 70 in Bugs.md). * Improve SECURITY.md. * Add CONTRIBUTING.md (#62, 70 in Bugs.md). * FAQ: Add Firefox screenshare instructions for wayland. * FAQ: Add wlroots downgrading instructions for workaround in case of temporary wlroots incompatibility. * Update copyright notices to 2024. Development Tooling: * Add new gpg keys (signed by the old ones). * Add PR template. * Add dev-FAQ. * Remove now-unnecessary fanalyzer pragmas.
23 lines
444 B
C
23 lines
444 B
C
// Copyright 2020 - 2024, project-repo and the cagebreak contributors
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
#ifndef CG_UTIL_H
|
|
#define CG_UTIL_H
|
|
|
|
#include <stdio.h>
|
|
|
|
struct wlr_box;
|
|
|
|
/** Apply scale to a width or height. */
|
|
int
|
|
scale_length(int length, int offset, double scale);
|
|
|
|
void
|
|
scale_box(struct wlr_box *box, double scale);
|
|
|
|
char *
|
|
malloc_vsprintf(const char *fmt, ...);
|
|
char *
|
|
malloc_vsprintf_va_list(const char *fmt, va_list list);
|
|
|
|
#endif
|