]> git.pld-linux.org Git - packages/fbv.git/blob - fbv-nocenter.patch
- added giflib5 patch (adjust Open/Close API for giflib 5+); release 8
[packages/fbv.git] / fbv-nocenter.patch
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
4 @@ -1,3 +1,6 @@
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
7 +      
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
14 @@ -28,6 +28,9 @@
15  .BR \fB--noclear\fP , \fB-c\fP 
16  Do not clear the screen before/after displaying image
17  .TP
18 +.BR \fB--nocenter\fP , \fB-z\fP
19 +Do not center image on the screen
20 +.TP
21  .BR \fB--unhide\fP , \fB-u\fP
22  Do not hide/show cursor before/after displaying image
23  .TP
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
27 @@ -38,7 +38,8 @@
28            opt_stretch = 0,
29            opt_delay = 0,
30            opt_enlarge = 0,
31 -          opt_ignore_aspect = 0;
32 +          opt_ignore_aspect = 0,
33 +          opt_nocenter = 1;
34  
35  
36  
37 @@ -308,12 +309,12 @@
38                 }
39                 if(refresh)
40                 {
41 -                       if(i.width < screen_width)
42 +                       if((i.width < screen_width) && opt_nocenter)
43                                 x_offs = (screen_width - i.width) / 2;
44                         else
45                                 x_offs = 0;
46                         
47 -                       if(i.height < screen_height)
48 +                       if((i.height < screen_height) && opt_nocenter)
49                                 y_offs = (screen_height - i.height) / 2;
50                         else
51                                 y_offs = 0;
52 @@ -443,8 +444,9 @@
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"
64 @@ -484,6 +486,7 @@
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'},
72 @@ -501,7 +504,7 @@
73                 return(1);
74         }
75         
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)
78         {
79                 switch(c)
80                 {
81 @@ -535,6 +538,9 @@
82                         case 'r':
83                                 opt_ignore_aspect = 1;
84                                 break;
85 +                       case 'z':
86 +                               opt_nocenter = 0;
87 +                               break;
88                 }
89         }
90         
This page took 0.095015 seconds and 3 git commands to generate.