1 diff -u fbv-1.0b.oryg/ChangeLog fbv-1.0b/ChangeLog
2 --- fbv-1.0b.oryg/ChangeLog 2004-09-20 15:55:18.256629728 +0200
3 +++ fbv-1.0b/ChangeLog 2004-09-20 16:32:28.095642672 +0200
5 + 2003-10-19 Pawe³ ¯urowski pzurowski@post.pl
6 + * added --nocenter option: image won't be in center of the screen. Useful with -c and -i options. Based on contributed patch from fbgetty
8 0.99 2003-08-24 Mateusz Golicz mtg@elsat.net.pl
9 * fixes in transparent and interlaced GIF & PNG support
10 * support for using the alpha channel
11 diff -u fbv-1.0b.oryg/fbv.1 fbv-1.0b/fbv.1
12 --- fbv-1.0b.oryg/fbv.1 2004-09-20 15:55:18.255629880 +0200
13 +++ fbv-1.0b/fbv.1 2004-09-20 16:27:58.418639808 +0200
15 .BR \fB--noclear\fP , \fB-c\fP
16 Do not clear the screen before/after displaying image
18 +.BR \fB--nocenter\fP , \fB-z\fP
19 +Do not center image on the screen
21 .BR \fB--unhide\fP , \fB-u\fP
22 Do not hide/show cursor before/after displaying image
24 diff -u fbv-1.0b.oryg/main.c fbv-1.0b/main.c
25 --- fbv-1.0b.oryg/main.c 2004-09-20 15:55:18.257629576 +0200
26 +++ fbv-1.0b/main.c 2004-09-20 16:47:53.286992208 +0200
31 - opt_ignore_aspect = 0;
32 + opt_ignore_aspect = 0,
41 - if(i.width < screen_width)
42 + if((i.width < screen_width) && opt_nocenter)
43 x_offs = (screen_width - i.width) / 2;
47 - if(i.height < screen_height)
48 + if((i.height < screen_height) && opt_nocenter)
49 y_offs = (screen_height - i.height) / 2;
53 "Available options:\n"
54 " --help | -h : Show this help\n"
55 " --alpha | -a : Use the alpha channel (if applicable)\n"
56 - " --dontclear | -c : Do not clear the screen before and after displaying the image\n"
57 - " --donthide | -u : Do not hide the cursor before and after displaying the image\n"
58 + " --noclear | -c : Do not clear the screen before and after displaying the image\n"
59 + " --unhide | -u : Do not hide the cursor before and after displaying the image\n"
60 + " --nocenter | -z : Do not center image on the screen (useful with -c and -i)\n"
61 " --noinfo | -i : Supress image information\n"
62 " --stretch | -f : Strech (using a simple resizing routine) the image to fit onto screen if necessary\n"
63 " --colorstretch| -k : Strech (using a 'color average' resizing routine) the image to fit onto screen if necessary\n"
65 {"noclear", no_argument, 0, 'c'},
66 {"alpha", no_argument, 0, 'a'},
67 {"unhide", no_argument, 0, 'u'},
68 + {"nocenter", no_argument, 0, 'z'},
69 {"noinfo", no_argument, 0, 'i'},
70 {"stretch", no_argument, 0, 'f'},
71 {"colorstrech", no_argument, 0, 'k'},
76 - while((c = getopt_long_only(argc, argv, "hcauifks:er", long_options, NULL)) != EOF)
77 + while((c = getopt_long_only(argc, argv, "hcauifks:erz", long_options, NULL)) != EOF)
83 opt_ignore_aspect = 1;