aboutsummaryrefslogtreecommitdiff
path: root/images.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-01-10 12:54:54 -0500
committerB. Watson <urchlay@slackware.uk>2024-01-10 12:54:54 -0500
commit088c769de46c4c1540c96c8b48bf17e3b093e0f6 (patch)
tree65f8cf49806c419b9d9fa2ce958680e7bc303977 /images.c
parent695ba0c4fae1e4e2d1629d45fcb9540276deee65 (diff)
downloadhcalc-088c769de46c4c1540c96c8b48bf17e3b093e0f6.tar.gz
Switch window sizes without re-executing (leaks a bit though).
Diffstat (limited to 'images.c')
-rw-r--r--images.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/images.c b/images.c
index 1ed80d3..e8ca33f 100644
--- a/images.c
+++ b/images.c
@@ -38,6 +38,11 @@ Pixmap chars;
char charmap[] = " 0123456789ABCDEF-x,.ro+";
int char_to_x[256];
+void free_pixmaps(void) {
+ if(face) XFreePixmap(display, face);
+ if(chars) XFreePixmap(display, chars);
+}
+
void load_pixmaps(void) {
int i, c;