--- ./fbv.1.00 2003-08-24 22:21:07.000000000 +0200 +++ ./fbv.1 2007-10-12 20:20:03.000000000 +0200 @@ -28,6 +28,9 @@ .BR \fB--noclear\fP , \fB-c\fP Do not clear the screen before/after displaying image .TP +.BR \fB--nocenter\fP , \fB-z\fP +Do not center image on the screen +.TP .BR \fB--unhide\fP , \fB-u\fP Do not hide/show cursor before/after displaying image .TP --- ./Makefile.00 2004-09-07 14:34:29.000000000 +0200 +++ ./Makefile 2007-10-12 20:20:45.000000000 +0200 @@ -21,7 +21,7 @@ $(CC) $(LDFLAGS) -o $(OUT) $(OBJECTS) $(LIBS) clean: - rm -f $(OBJECTS) *~ $$$$~* *.bak core config.log $(OUT) + rm -f $(OBJECTS) *.o *~ $$$$~* *.bak core config.log $(OUT) distclean: clean @echo -e "error:\n\t@echo Please run ./configure first..." >Make.conf --- ./main.c.00 2004-09-07 16:11:00.000000000 +0200 +++ ./main.c 2007-10-12 20:26:13.000000000 +0200 @@ -38,7 +38,8 @@ opt_stretch = 0, opt_delay = 0, opt_enlarge = 0, - opt_ignore_aspect = 0; + opt_ignore_aspect = 0, + opt_nocenter = 1; @@ -308,12 +309,12 @@ } if(refresh) { - if(i.width < screen_width) + if((i.width < screen_width) && opt_nocenter) x_offs = (screen_width - i.width) / 2; else x_offs = 0; - if(i.height < screen_height) + if((i.height < screen_height) && opt_nocenter) y_offs = (screen_height - i.height) / 2; else y_offs = 0; @@ -443,11 +444,12 @@ "Available options:\n" " --help | -h : Show this help\n" " --alpha | -a : Use the alpha channel (if applicable)\n" - " --dontclear | -c : Do not clear the screen before and after displaying the image\n" - " --donthide | -u : Do not hide the cursor before and after displaying the image\n" + " --noclear | -c : Do not clear the screen before and after displaying the image\n" + " --unhide | -u : Do not hide the cursor before and after displaying the image\n" + " --nocenter | -z : Do not center image on the screen (useful with -c and -i)\n" " --noinfo | -i : Supress image information\n" - " --stretch | -f : Strech (using a simple resizing routine) the image to fit onto screen if necessary\n" - " --colorstretch| -k : Strech (using a 'color average' resizing routine) the image to fit onto screen if necessary\n" + " --stretch | -f : Stretch (using a simple resizing routine) the image to fit the screen if necessary\n" + " --colorstretch| -k : Stretch (using a 'color average' resizing routine) the image to fit the screen if necessary\n" " --enlarge | -e : Enlarge the image to fit the whole screen if necessary\n" " --ignore-aspect| -r : Ignore the image aspect while resizing\n" " --delay | -s : Slideshow, 'delay' is the slideshow delay in tenths of seconds.\n\n" @@ -484,6 +486,7 @@ {"noclear", no_argument, 0, 'c'}, {"alpha", no_argument, 0, 'a'}, {"unhide", no_argument, 0, 'u'}, + {"nocenter", no_argument, 0, 'z'}, {"noinfo", no_argument, 0, 'i'}, {"stretch", no_argument, 0, 'f'}, {"colorstrech", no_argument, 0, 'k'}, @@ -501,7 +504,7 @@ return(1); } - while((c = getopt_long_only(argc, argv, "hcauifks:er", long_options, NULL)) != EOF) + while((c = getopt_long_only(argc, argv, "hcauifks:erz", long_options, NULL)) != EOF) { switch(c) { @@ -535,6 +538,9 @@ case 'r': opt_ignore_aspect = 1; break; + case 'z': + opt_nocenter = 0; + break; } } --- ./ChangeLog.00 2003-08-24 22:25:56.000000000 +0200 +++ ./ChangeLog 2007-10-12 20:30:06.000000000 +0200 @@ -0,0 +1,9 @@ +1.0b 2007-12-10 Gilbert Ashley + * added *.o to Makefile clean rule. Cleaned up English grammar + * incorporated changes from ALT Linux patch (see following entry) + * bumped version number in ChangeLog to match original tarball + + 2003-10-19 Paweł Żurowski pzurowski@post.pl + * added --nocenter option: image won't be in center of the screen. + Useful with -c and -i options. Based on a patch from fbgetty +