Репозитории ALT
5.1: | 0.98p2-alt5 |
4.1: | 0.98p2-alt5 |
4.0: | 0.98p2-alt5 |
3.0: | 0.98p2-alt3 |
Группа :: Графические оболочки/Window Maker
Пакет: wmcube-gdk
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: wmcube-gdk-0.98p2-alt-zoom.patch
Скачать
Скачать
wmcube.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/wmcube.c b/wmcube.c
index f8a8fe8..ad95a5e 100644
--- a/wmcube.c
+++ b/wmcube.c
@@ -368,6 +368,8 @@ int main(int argc, char **argv)
int c = 0;
int invert_speed = 0;
+ zoff = 0;
+
pname = strrchr(argv[0], '/');
if (pname == NULL)
pname = argv[0];
@@ -375,7 +377,7 @@ int main(int argc, char **argv)
srand((unsigned) time(NULL));
opterr = 0;
- while ((c = getopt(argc, argv, "d:nhpbir:o:c:s:")) != -1) {
+ while ((c = getopt(argc, argv, "d:nhpbir:o:c:s:z:")) != -1) {
switch (c) {
case 'c':
which_cpu = atoi(optarg);
@@ -408,6 +410,9 @@ int main(int argc, char **argv)
case 's':
tmp = strdup(optarg);
break;
+ case 'z':
+ zoff = -atoi(optarg)*150;
+ break;
case '?':
print_help();
return 1;
@@ -497,7 +502,7 @@ int main(int argc, char **argv)
/*
* Main loop begins here
*/
- zoff = 3600;
+ zoff += 3600;
#ifndef PRO
while (1) {
@@ -1193,6 +1198,7 @@ void print_help(void)
printf(" -s x: parse color 'x' and use to draw 3D shaded objects\n");
printf(" -i : invert cube speed. (default OFF)\n");
printf(" -p : do not display cpu-load (default OFF)\n");
+ printf(" -z x: zoom level (default 0)\n");
printf(" -h : display this helptext.\n\n");
}