summaryrefslogtreecommitdiffstats
path: root/src/cvt.h
diff options
context:
space:
mode:
authorSimon Rettberg2020-06-17 11:13:35 +0200
committerSimon Rettberg2020-06-17 11:13:35 +0200
commit1f1b2e2c408f7cb9b111a4d8a2a24bc245a23f9d (patch)
tree89c6c7e1ec572bd4b673efab57556ee1e3380e69 /src/cvt.h
parentSupport setting resolution received via loginrpc (diff)
downloadslxgreeter-1f1b2e2c408f7cb9b111a4d8a2a24bc245a23f9d.tar.gz
slxgreeter-1f1b2e2c408f7cb9b111a4d8a2a24bc245a23f9d.tar.xz
slxgreeter-1f1b2e2c408f7cb9b111a4d8a2a24bc245a23f9d.zip
Add CVT files
Diffstat (limited to 'src/cvt.h')
-rw-r--r--src/cvt.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/cvt.h b/src/cvt.h
new file mode 100644
index 0000000..7f2ce74
--- /dev/null
+++ b/src/cvt.h
@@ -0,0 +1,26 @@
+#ifndef __CVT_H_
+#define __CVT_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* struct definitions */
+
+typedef struct __mode
+{
+ int hr, hss, hse, hfl;
+ int vr, vss, vse, vfl;
+ float pclk, h_freq, v_freq;
+ float real_v_rate;
+ int rb, in;
+} mode;
+
+mode *vert_refresh (int h_pixels, int v_lines, float freq,
+ int interlaced, int reduced_blank, int margins);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif