summaryrefslogtreecommitdiffstats
path: root/move/runlevel_set.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-24 03:32:26 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-24 03:32:26 +0000
commitdfab0caa5b774724d9358a44c36fc4b0d95faa2d (patch)
tree2ed6395c126afec981353e814d3ff42fc4410b62 /move/runlevel_set.c
parent67f38cfed5f0a4b6a0a628c02b3f0adea4def056 (diff)
downloaddrakx-dfab0caa5b774724d9358a44c36fc4b0d95faa2d.tar
drakx-dfab0caa5b774724d9358a44c36fc4b0d95faa2d.tar.gz
drakx-dfab0caa5b774724d9358a44c36fc4b0d95faa2d.tar.bz2
drakx-dfab0caa5b774724d9358a44c36fc4b0d95faa2d.tar.xz
drakx-dfab0caa5b774724d9358a44c36fc4b0d95faa2d.zip
Remove DB logs before doing an install.
Diffstat (limited to 'move/runlevel_set.c')
0 files changed, 0 insertions, 0 deletions
ss="hl kwb">struct scale * sc; co = malloc(sizeof(*co)); sc = malloc(sizeof(struct scale)); co->data = sc; co->ops = &scaleOps; co->height = 1; co->width = width; co->top = top; co->left = left; co->takesFocus = 0; sc->fullValue = fullValue; sc->charsSet = 0; return co; } void newtScaleSet(newtComponent co, unsigned int amount) { struct scale * sc = co->data; int newCharsSet; newCharsSet = (amount * co->width) / sc->fullValue; if (newCharsSet != sc->charsSet) { sc->charsSet = newCharsSet; scaleDraw(co); } } static void scaleDraw(newtComponent co) { struct scale * sc = co->data; int i; if (co->top == -1) return; newtGotorc(co->top, co->left); SLsmg_set_color(NEWT_COLORSET_FULLSCALE); for (i = 0; i < sc->charsSet; i++) SLsmg_write_string(" "); SLsmg_set_color(NEWT_COLORSET_EMPTYSCALE); for (i = 0; i < (co->width - sc->charsSet); i++) SLsmg_write_string(" "); }