2011-09-26 15:06:57 +00:00
|
|
|
--- src/sisctrl_gui.c.orig
|
|
|
|
|
+++ src/sisctrl_gui.c
|
|
|
|
|
@@ -5885,8 +5885,8 @@ vi_layout_configure(GtkWidget *widget, G
|
2007-01-15 23:37:09 +00:00
|
|
|
{
|
|
|
|
|
/*fprintf(stderr, "conf\n");*/
|
|
|
|
|
if(gl.noxvdemo) return TRUE;
|
|
|
|
|
- if(gui.notebook_page != SIS_PAGE_VIDEO) return;
|
|
|
|
|
- if(!gui.xvwin) return;
|
|
|
|
|
+ if(gui.notebook_page != SIS_PAGE_VIDEO) return TRUE;
|
|
|
|
|
+ if(!gui.xvwin) return TRUE;
|
|
|
|
|
if(!gui.xvinit) return TRUE;
|
|
|
|
|
resizexvwindow();
|
|
|
|
|
showxvimage();
|
2011-09-26 15:06:57 +00:00
|
|
|
--- src/sisctrl.c.orig
|
|
|
|
|
+++ src/sisctrl.c
|
|
|
|
|
@@ -419,7 +419,7 @@ newsetrealxvval(unsigned int cmd, Atom a
|
2009-03-11 22:54:01 +00:00
|
|
|
|
|
|
|
|
/* Get/Set gamma brightness. Does proper unlocking/locking */
|
|
|
|
|
|
|
|
|
|
-static Bool
|
|
|
|
|
+static void
|
|
|
|
|
sd_writegammabr(unsigned int br, unsigned int bg, unsigned int bb)
|
|
|
|
|
{
|
|
|
|
|
if(UnlockSiSDirect(1)) {
|
2011-09-26 15:06:57 +00:00
|
|
|
@@ -433,7 +433,7 @@ sd_writegammabr(unsigned int br, unsigne
|
2009-03-11 22:54:01 +00:00
|
|
|
} else fprintf(stderr, xverrorstring);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
-static Bool
|
|
|
|
|
+static void
|
|
|
|
|
sd_writenewgammabr(unsigned int br, unsigned int bg, unsigned int bb,
|
|
|
|
|
unsigned int cr, unsigned int cg, unsigned int cb)
|
|
|
|
|
{
|
2011-09-26 15:06:57 +00:00
|
|
|
@@ -1169,6 +1169,7 @@ checkmodeforgivencrt2(int index, unsigne
|
|
|
|
|
#else
|
|
|
|
|
return 0x80;
|
|
|
|
|
#endif
|
|
|
|
|
+ return 0x80;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
--- configure.ac.orig
|
|
|
|
|
+++ configure.ac
|
|
|
|
|
@@ -9,7 +9,10 @@ AC_CONFIG_HEADER([config.h])
|
|
|
|
|
AM_INIT_AUTOMAKE
|
|
|
|
|
|
|
|
|
|
# Checks for programs.
|
|
|
|
|
-AC_PROG_CC
|
|
|
|
|
+AC_PROG_CC_STDC
|
|
|
|
|
+AC_USE_SYSTEM_EXTENSIONS
|
|
|
|
|
+AC_SYS_LARGEFILE
|
|
|
|
|
+AM_PROG_CC_C_O
|
|
|
|
|
|
|
|
|
|
# Checks for libraries.
|
|
|
|
|
|
|
|
|
|
@@ -211,6 +214,8 @@ AM_PATH_GTK_2_0(2.4.0,,AC_MSG_ERROR([
|
|
|
|
|
*** GTK+ 2.4 or later is required to build sisctrl; please make sure you have the GTK+
|
|
|
|
|
*** development headers installed.]))
|
|
|
|
|
|
|
|
|
|
+AC_SEARCH_LIBS(sin, m)
|
|
|
|
|
+
|
|
|
|
|
AC_OUTPUT([Makefile],)
|
|
|
|
|
|
|
|
|
|
|