diff options
author | Keith Packard <keithp@keithp.com> | 2008-03-30 19:03:53 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2008-03-30 19:03:53 -0700 |
commit | 9e8860f9231926090462ea20132cc9e1d64e5fe4 (patch) | |
tree | b93f9e0f8cb95ac00a552d6b0cebccf33948a4ed | |
parent | 206bfbea4ebe854fdfa66e8a6fbd9296b6004c0e (diff) |
Execute xrandr to set keystone correction
-rw-r--r-- | keystone.5c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/keystone.5c b/keystone.5c index 32bea5b..6666c6f 100644 --- a/keystone.5c +++ b/keystone.5c @@ -20,6 +20,7 @@ * OF THIS SOFTWARE. */ +autoload Process; autoload Nichrome; autoload Nichrome::Box; autoload Nichrome::Label; @@ -401,6 +402,14 @@ void test () printf ("normal: %s\n", m_print (m)); printf ("inverse: %s\n", m_print (m_i)); printf ("scaled: %s\n", m_print (m_r)); + Process::system ("xrandr", + "xrandr", + "--fb", + "1024x768", + "--output", + "LVDS", + "--transform", + m_print (m_r)); } } |