Re: [dev] [st] [PATCH] Fix typo in config.def.h

2014-06-18 Thread Ryan O’Hara
On Wed, Jun 18, 2014 at 6:39 AM, Eric Pruitt  wrote:
> When I submitted my patch with the bounding-box scaling / kerning
> implementation, I made a typo in config.def.h. Unfortunately I didn't
> notice until after it was applied, and it's been haunting me ever since.
> Attached is a one-line change to fix the typo.
>
> Eric

While you’re at it, line 140:

- * Be careful with the order of the definitons because st searchs in
+ * Be careful with the order of the definitions because st searches in



Re: [dev] C coded lightweight Linux vector graphics editor

2014-06-18 Thread hiro
once you're done with drawing you might want to render it with all the
details. for this you might want: youtube.com/watch?v=00gAbgBu8R4



[dev] [st] [PATCH] update size hints on zoom

2014-06-18 Thread Troy Sankey
On font zooming (i.e. xzoom()), window size hints are not updated.  This
patch does that.

Troy


sizehints.diff
Description: Binary data


signature.asc
Description: PGP signature


Re: [dev] Alpine Linux switched to musl libc

2014-06-18 Thread Sylvain BERTRAND
On Fri, Jun 06, 2014 at 10:50:24AM +0200, Silvan Jegen wrote:
> Does anyone here have some experience with it?

I have had it installed on my laptop for a while. But since I hardly
use my laptop...

What I can say: openrc is... not suckless: it's a kludge of
scripts which try to manage all possible cases. I did remove
openrc from my custom gentoo gnu/linux distro for this reason.

I haven't updated alpine in while. I wonder if the glob and
regexp engines, the date/time management and the brainfuckage which
are the C locales are up to speed with the glibc. Coze,
those things are from the nasty libc bits.
I do prefere GNU Lesser GPL for libc legal protection. But if
musl is really modular, working on those nasty pieces of the libc
standard, and has a suckless sdk, I'm ready to drop my GNU Lesser
GPL requirement to give it a try.

-- 
Sylvain



Re: [dev] Re: [dvtm] [PATCH] Fix redraw bug when show_border() changes.

2014-06-18 Thread Marc André Tanner
Applied both.

Thanks,
Marc

-- 
 Marc André Tanner >< http://www.brain-dump.org/ >< GPG key: CF7D56C0



Re: [dev] C coded lightweight Linux vector graphics editor

2014-06-18 Thread Sylvain BERTRAND
On Thu, Jun 05, 2014 at 05:25:25PM +0200, patrick295767 patrick295767 wrote:
> Hi Friends, Hello Guys,
> 
> Because you have always very fantastic/great ideas in this field,  I
> would like to ask if you would know a cool vector graphics editor.
> 
> You probably know Inkscape, but I must say that I am not a fan of this 
> software.
> Inkscape is a free and open source software vector graphics editor.
> Its goal is to implement full support for the Scalable Vector Graphics
> standard. The word Inkscape is a portmanteau of the words ink and
> landscape.
> 
> Would you have please valuable tipps...?

It's a very good idea.

Don't forget to keep the SDK as suckless as possible: no GNU
autokludge/cmake/etc or python[23]/perl6/guile/etc code
generators (basic C programs compiled for the host). Basic shell
scripts for compilation (copy the ones from ffmpeg, they are very
good), or, if the project is too long to compile for a debugging
cycle (fix/compile/test/fix/compile/test), basic recursive
makefiles (don't try to use *all* unix makefile tricks, better
being verbose and simple than crazy insanely unreadable and
small).
You should code for tinycc to be sure we can get rid easily of
gcc and clang.

cheers,

-- 
Sylvain



[dev] [st] [PATCH] Explicit cast in CEIL macro

2014-06-18 Thread Eric Pruitt
This patch ads explicit casting for the result of the CEIL macro. Since
the only place it's currently used for assignments is with variables
declared as ints, this shouldn't result in any change in behaviour in
the existing code, but it ensures the macro actually does exactly what
it says on the tin.

Eric
>From 72ba9ba0f70ac6e92cc901ad1395851fd9d5f046 Mon Sep 17 00:00:00 2001
From: Eric Pruitt 
Date: Wed, 18 Jun 2014 09:03:11 -0500
Subject: [PATCH] Explicit cast of CEIL macro result

---
 st.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/st.c b/st.c
index 2cf9a26..858746d 100644
--- a/st.c
+++ b/st.c
@@ -77,7 +77,7 @@ char *argv0;
 #define ATTRCMP(a, b) ((a).mode != (b).mode || (a).fg != (b).fg || (a).bg != (b).bg)
 #define IS_SET(flag) ((term.mode & (flag)) != 0)
 #define TIMEDIFF(t1, t2) ((t1.tv_sec-t2.tv_sec)*1000 + (t1.tv_usec-t2.tv_usec)/1000)
-#define CEIL(x) (((x) != (int) (x)) ? (x) + 1 : (x))
+#define CEIL(x) ((int) (((x) != (int) (x)) ? (x) + 1 : (x)))
 #define MODBIT(x, set, bit) ((set) ? ((x) |= (bit)) : ((x) &= ~(bit)))
 
 #define TRUECOLOR(r,g,b) (1 << 24 | (r) << 16 | (g) << 8 | (b))
-- 
1.7.10.4



[dev] [st] [PATCH] Fix typo in config.def.h

2014-06-18 Thread Eric Pruitt
When I submitted my patch with the bounding-box scaling / kerning
implementation, I made a typo in config.def.h. Unfortunately I didn't
notice until after it was applied, and it's been haunting me ever since.
Attached is a one-line change to fix the typo.

Eric
>From 05e6544ba2d38725b923b8f96212eb468d3d1b96 Mon Sep 17 00:00:00 2001
From: Eric Pruitt 
Date: Wed, 18 Jun 2014 08:32:45 -0500
Subject: [PATCH] Fix typo in config.def.h

---
 config.def.h |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config.def.h b/config.def.h
index 6e2be9a..3e2a61e 100644
--- a/config.def.h
+++ b/config.def.h
@@ -9,7 +9,7 @@ static char font[] = "Liberation Mono:pixelsize=12:antialias=false:autohint=fals
 static int borderpx = 2;
 static char shell[] = "/bin/sh";
 
-/* Kerning / character bounding-box mutlipliers */
+/* Kerning / character bounding-box multipliers */
 static float cwscale = 1.0;
 static float chscale = 1.0;
 
-- 
1.7.10.4