comparison libvo/x11_common.c @ 25448:3c9a46550d16

Move more variables into the block where they are used
author reimar
date Thu, 20 Dec 2007 12:57:36 +0000
parents 139197373d1b
children 9ee347c404c9
comparison
equal deleted inserted replaced
25447:139197373d1b 25448:3c9a46550d16
1765 1765
1766 } 1766 }
1767 1767
1768 void saver_off(Display * mDisplay) 1768 void saver_off(Display * mDisplay)
1769 { 1769 {
1770
1771 int interval, prefer_blank, allow_exp;
1772
1773 #ifdef HAVE_XDPMS 1770 #ifdef HAVE_XDPMS
1774 int nothing; 1771 int nothing;
1775 1772
1776 if (DPMSQueryExtension(mDisplay, &nothing, &nothing)) 1773 if (DPMSQueryExtension(mDisplay, &nothing, &nothing))
1777 { 1774 {
1790 } 1787 }
1791 } 1788 }
1792 #endif 1789 #endif
1793 if (!timeout_save) 1790 if (!timeout_save)
1794 { 1791 {
1792 int interval, prefer_blank, allow_exp;
1795 XGetScreenSaver(mDisplay, &timeout_save, &interval, &prefer_blank, 1793 XGetScreenSaver(mDisplay, &timeout_save, &interval, &prefer_blank,
1796 &allow_exp); 1794 &allow_exp);
1797 if (timeout_save) 1795 if (timeout_save)
1798 XSetScreenSaver(mDisplay, 0, interval, prefer_blank, 1796 XSetScreenSaver(mDisplay, 0, interval, prefer_blank,
1799 allow_exp); 1797 allow_exp);