diff options
author | Simon Rettberg | 2020-06-17 11:13:35 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-06-17 11:13:35 +0200 |
commit | 1f1b2e2c408f7cb9b111a4d8a2a24bc245a23f9d (patch) | |
tree | 89c6c7e1ec572bd4b673efab57556ee1e3380e69 /src/cvt.h | |
parent | Support setting resolution received via loginrpc (diff) | |
download | slxgreeter-1f1b2e2c408f7cb9b111a4d8a2a24bc245a23f9d.tar.gz slxgreeter-1f1b2e2c408f7cb9b111a4d8a2a24bc245a23f9d.tar.xz slxgreeter-1f1b2e2c408f7cb9b111a4d8a2a24bc245a23f9d.zip |
Add CVT files
Diffstat (limited to 'src/cvt.h')
-rw-r--r-- | src/cvt.h | 26 |
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 |