aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-09-10 19:36:02 +0200
committerdec05eba <dec05eba@protonmail.com>2025-09-10 19:36:02 +0200
commit7880b070d7237b1f33d3d17ca3247c54a8fabba7 (patch)
tree661bfb967669f3245c79770fa1063de34f816205
parentd3235a0be00b9a80077b862f96ee40f787980d46 (diff)
Plugin update macro
-rw-r--r--TODO7
-rw-r--r--plugin/plugin.h4
2 files changed, 9 insertions, 2 deletions
diff --git a/TODO b/TODO
index 6a6ec9b..c18f6aa 100644
--- a/TODO
+++ b/TODO
@@ -322,4 +322,9 @@ KDE Plasma Wayland seems to use overlay planes now in non-fullscreen mode(limite
If it is, then support it in kms capture.
Check if pipewire audio link-factory is available before attempting to use app audio or merging audio with pipewire.
- Also do the same in supports_app_audio check in gpu-screen-recorder --info output. \ No newline at end of file
+ Also do the same in supports_app_audio check in gpu-screen-recorder --info output.
+
+Move region capture to an option in the color conversion instead of having the region code in kms capture code. This would make it cleaner and make it work with all capture methods.
+ -w region would just be an option for selecting the monitor and -region would work with all capture methods (-w).
+
+Set top level window argument for portal capture. Same for gpu-screen-recorder-gtk global shortcuts.
diff --git a/plugin/plugin.h b/plugin/plugin.h
index c5a5e89..902d1d7 100644
--- a/plugin/plugin.h
+++ b/plugin/plugin.h
@@ -7,7 +7,9 @@ extern "C" {
#define GSR_PLUGIN_INTERFACE_MAJOR_VERSION 0
#define GSR_PLUGIN_INTERFACE_MINOR_VERSION 1
-#define GSR_PLUGIN_INTERFACE_VERSION ((GSR_PLUGIN_INTERFACE_MAJOR_VERSION << 16) | GSR_PLUGIN_INTERFACE_MINOR_VERSION)
+
+#define GSR_PLUGIN_INTERFACE_MAKE_VERSION(major, minor) (((major) << 16) | (minor))
+#define GSR_PLUGIN_INTERFACE_VERSION GSR_PLUGIN_INTERFACE_MAKE_VERSION(GSR_PLUGIN_INTERFACE_MAJOR_VERSION, GSR_PLUGIN_INTERFACE_MINOR_VERSION)
#include <stdbool.h>