aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-07-18 06:00:36 +0200
committerdec05eba <dec05eba@protonmail.com>2023-07-18 06:00:36 +0200
commita3beaeb0cc501f654b0b31a52cdc3d9009235aaa (patch)
treeddd3e023fada1e6dfb7e00894d16aefe5fef465b /src/utils.c
parentd879ccf0fee2ffee3f5f4330a6852dcc2c3bd4fe (diff)
Fix green screen sometimes when capturing amd/intel window
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c
index 722fe06..27cca42 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -271,3 +271,7 @@ bool gsr_get_valid_card_path(char *output) {
}
return false;
}
+
+int even_number_ceil(int value) {
+ return value + (value & 1);
+}