diff options
author | B. Watson <urchlay@slackware.uk> | 2024-01-10 12:54:54 -0500 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-01-10 12:54:54 -0500 |
commit | 088c769de46c4c1540c96c8b48bf17e3b093e0f6 (patch) | |
tree | 65f8cf49806c419b9d9fa2ce958680e7bc303977 /images.c | |
parent | 695ba0c4fae1e4e2d1629d45fcb9540276deee65 (diff) | |
download | hcalc-088c769de46c4c1540c96c8b48bf17e3b093e0f6.tar.gz |
Switch window sizes without re-executing (leaks a bit though).
Diffstat (limited to 'images.c')
-rw-r--r-- | images.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |