~ft/libpt

3e3d9c60d4afcd7943c64d9413ce99664135051c — Sigrid Haflínudóttir a month ago 593e922
smoother height/gamma adjustments
1 files changed, 4 insertions(+), 4 deletions(-)

M test.c
M test.c => test.c +4 -4
@@ 480,10 480,10 @@ threadmain(int argc, char **argv)
			case Kdel:
				goto end;
			case '-':
				height -= height < 6 ? 0 : 2;
				height -= height < 6 ? 0 : 1;
				goto changed;
			case '+':
				height += 2;
				height += 1;
				goto changed;
			case 'i':
				invert = !invert;


@@ 499,10 499,10 @@ threadmain(int argc, char **argv)
					prefilter = STBTT_MAX_OVERSAMPLE;
				goto changed;
			case Kup:
				gamma += 0.05;
				gamma += 0.01;
				goto changed;
			case Kdown:
				gamma -= 0.05;
				gamma -= 0.01;
				if(gamma < 0.4)
					gamma = 0.4;
				goto changed;