From 733fa3c2722a2c59d3e5a27b8becf19a86caf302 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 10 Aug 2025 11:37:52 -0700 Subject: vcr: make vcr_draw_bar() base explicit parameter Get rid of the overloaded meaning of negative values indicating base. While here also put the min_height logic in charts, the vcr side of this should be more dumb mechanism and less policy. While here these pixel space scaled heights should really get rounded to the nearest int in the scaled float->int conversion, otherwise 13.9 height becomes 13 when it should clearly be 14. --- src/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index a8d1035..915ae6a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -2,7 +2,7 @@ SUBDIRS = libvmon bin_PROGRAMS = vmon vmon_SOURCES = ascii.c charts.c vcr.c vmon.c ascii.h charts.h vcr.h -vmon_LDADD = libvmon/libvmon.a +vmon_LDADD = libvmon/libvmon.a -lm vmon_CPPFLAGS = -O2 if HAVE_XCLIENT_DEV @@ -21,6 +21,6 @@ if ENABLE_VWM bin_PROGRAMS += vwm vwm_SOURCES = ascii.c clickety.c composite.c context.c desktop.c key.c launch.c logo.c charts.c screen.c vcr.c vwm.c window.c xevent.c xserver.c xwindow.c ascii.h clickety.h composite.h context.h desktop.h direction.h key.h launch.h list.h logo.h charts.h screen.h util.h vcr.h vwm.h window.h xevent.h xserver.h xwindow.h colors.def context_colors.def launchers.def -vwm_LDADD = @XWM_DEV_LIBS@ libvmon/libvmon.a +vwm_LDADD = @XWM_DEV_LIBS@ libvmon/libvmon.a -lm vwm_CPPFLAGS = @XWM_DEV_CFLAGS@ -DUSE_XLIB endif -- cgit v1.2.3