applied Gottox mwfact patch
Anselm R. Garbe garbeam@gmail.com
Sat, 18 Aug 2007 11:40:25 +0200
1 files changed,
7 insertions(+),
8 deletions(-)
jump to
M
tile.c
→
tile.c
@@ -10,7 +10,7 @@ /* extern */
void setmwfact(const char *arg) { - double delta, newfact; + double delta; if(!isarrange(tile)) return;@@ -19,14 +19,13 @@ if(arg == NULL)
mwfact = MWFACT; else if(1 == sscanf(arg, "%lf", &delta)) { if(arg[0] != '+' && arg[0] != '-') - newfact = delta; + mwfact = delta; else - newfact = mwfact + delta; - if(newfact < 0.1) - newfact = 0.1; - else if(newfact > 0.9) - newfact = 0.9; - mwfact = newfact; + mwfact += delta; + if(mwfact < 0.1) + mwfact = 0.1; + else if(mwfact > 0.9) + mwfact = 0.9; } arrange(); }