implement bright window dimming

This commit is contained in:
Rytis Karpuska
2019-11-06 01:34:57 +02:00
parent 310b66d519
commit e510814b7c
4 changed files with 245 additions and 0 deletions

View File

@@ -261,4 +261,12 @@ allocchk_(const char *func_name, const char *file, unsigned int line, void *ptr)
void name##_ref(type *a); \
void name##_unref(type **a);
///
/// Calculates next closest power of two of 32bit integer n
/// ref: https://graphics.stanford.edu/~seander/bithacks.html#RoundUpPowerOf2
///
int next_power_of_two(int n);
// vim: set noet sw=8 ts=8 :