From 80f3da5897e610dce9238d5b899a2b87e335e9da Mon Sep 17 00:00:00 2001 From: rodri Date: Thu, 1 Feb 2024 22:42:14 +0000 Subject: get rid of useless screenshot function. --- dat.h | 1 - main.c | 20 -------------------- 2 files changed, 21 deletions(-) diff --git a/dat.h b/dat.h index fbec50c..88d9765 100644 --- a/dat.h +++ b/dat.h @@ -15,7 +15,6 @@ enum { Kcam1, Kcam2, Kcam3, - Kscrshot, Ke }; diff --git a/main.c b/main.c index 6dc32fe..32dd649 100644 --- a/main.c +++ b/main.c @@ -36,7 +36,6 @@ Rune keys[Ke] = { [Kcam1] = KF|2, [Kcam2] = KF|3, [Kcam3] = KF|4, - [Kscrshot] = KF|12 }; char stats[Se][256]; Memimage *screenfb; @@ -340,23 +339,6 @@ drawproc(void *) } } -void -screenshot(void) -{ - int fd; - static char buf[128]; - - enter("Path", buf, sizeof buf, mctl, nil, nil); - if(buf[0] == 0) - return; - fd = create(buf, OWRITE, 0644); - if(fd < 0) - sysfatal("open: %r"); - if(writeimage(fd, screen, 1) < 0) - sysfatal("writeimage: %r"); - close(fd); -} - void mouse(void) { @@ -461,8 +443,6 @@ handlekeys(void) maincam = &cams[2]; if(kdown & 1<