diff options
author | rodri <rgl@antares-labs.eu> | 2024-02-01 22:42:14 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-02-01 22:42:14 +0000 |
commit | 80f3da5897e610dce9238d5b899a2b87e335e9da (patch) | |
tree | 9e7f46c00408835feae79516f6a0addaf7be2aa3 | |
parent | 653b6d5fd9c37073a2898bdc7fef325a8d38a16d (diff) | |
download | 3dee-80f3da5897e610dce9238d5b899a2b87e335e9da.tar.gz 3dee-80f3da5897e610dce9238d5b899a2b87e335e9da.tar.bz2 3dee-80f3da5897e610dce9238d5b899a2b87e335e9da.zip |
get rid of useless screenshot function.
-rw-r--r-- | dat.h | 1 | ||||
-rw-r--r-- | main.c | 20 |
2 files changed, 0 insertions, 21 deletions
@@ -15,7 +15,6 @@ enum { Kcam1, Kcam2, Kcam3, - Kscrshot, Ke }; @@ -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; @@ -341,23 +340,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) { if((mctl->buttons & 8) != 0){ @@ -461,8 +443,6 @@ handlekeys(void) maincam = &cams[2]; if(kdown & 1<<Kcam3) maincam = &cams[3]; - if(kdown & 1<<Kscrshot) - screenshot(); } void |