aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-03 23:09:26 -0400
committerGitHub <noreply@github.com>2018-04-03 23:09:26 -0400
commit94d76ee4856fd8e65d8e11f86053e388adc7c152 (patch)
tree0dba0d42d45b10c16d4668dfee88f4d883fd44b6 /include/wlr
parent60519951e02eb0b15cbee4936a7f4bcadaee1ff4 (diff)
parent9b440edaf4882815447c705ef94838c3afc9c300 (diff)
Merge pull request #817 from emersion/document-output-custom-mode
output: document wlr_output_set_custom_mode
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_output.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h
index b838a737..cc03452d 100644
--- a/include/wlr/types/wlr_output.h
+++ b/include/wlr/types/wlr_output.h
@@ -112,8 +112,15 @@ struct wlr_surface;
void wlr_output_enable(struct wlr_output *output, bool enable);
void wlr_output_create_global(struct wlr_output *output);
void wlr_output_destroy_global(struct wlr_output *output);
+/**
+ * Sets the output mode.
+ */
bool wlr_output_set_mode(struct wlr_output *output,
struct wlr_output_mode *mode);
+/**
+ * Sets a custom mode on the output. If modes are available, they are preferred.
+ * Setting `refresh` to zero lets the backend pick a preferred value.
+ */
bool wlr_output_set_custom_mode(struct wlr_output *output, int32_t width,
int32_t height, int32_t refresh);
void wlr_output_set_transform(struct wlr_output *output,