File gqcam-0.9.diff of Package gqcam
--- Makefile
+++ Makefile
@@ -7,7 +7,8 @@
PROG = gqcam
VERSION = 0.9
-CFLAGS = `gtk-config --cflags` -DVERSION=\"$(VERSION)\"
+OPTFLAGS=
+CFLAGS = $(OPTFLAGS) `gtk-config --cflags` -DVERSION=\"$(VERSION)\"
INCLUDES =
OBJS =
--- gqcam.c
+++ gqcam.c
@@ -237,11 +237,11 @@
drawable = camera->drawing_area->window;
gdk_threads_enter();
- /* Run filters */
- if (camera->swapcolors)
+ /* Run filters --- filters are too late here!! */
+/* if (camera->swapcolors)
swap_rgb24(camera);
if (camera->autobright)
- auto_bright(camera);
+ auto_bright(camera); */
if (camera->greyscale)
gdk_draw_gray_image (camera->pixmap, camera->drawing_area->style->white_gc, xpos, ypos, camera->vid_win.width, camera->vid_win.height, GDK_RGB_DITHER_NORMAL, camera->pic, camera->vid_win.width);
@@ -295,6 +295,7 @@
if (len <= 0)
fprintf(stderr, "Error reading image...\n");
}
+ if (camera->swapcolors) swap_rgb24(camera);
pthread_mutex_unlock( &camera->freeze_mutex );
pthread_mutex_unlock( &camera->iscam_mutex );
if( camera->dump )
@@ -548,7 +549,18 @@
strcpy(camera->savefile, filename);
strcpy(camera->savefileclean, filename);
}
- /*
+
+ char *readfile[255];
+ FILE *preffile;
+
+ sprintf(readfile, "%s/.gqcamrc", getenv("HOME"));
+ preffile = fopen(readfile, "r");
+ if(preffile != NULL){
+ read_pref_file(preffile, &camera);
+ fclose(preffile);
+ }
+
+ /*
outf = fopen( filename, "w" );
if( !outf ) {
fprintf( stderr, "Couldn't open %s for writing!\n" );