From: ewt Date: Thu, 21 Aug 1997 20:43:33 +0000 (+0000) Subject: removed extraneous screen drawing X-Git-Tag: r0-12~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44de2c935767823866e79a8fffdbc4a898293278;p=thirdparty%2Fnewt.git removed extraneous screen drawing --- diff --git a/listbox.c b/listbox.c index 026803b..32d288f 100644 --- a/listbox.c +++ b/listbox.c @@ -275,8 +275,6 @@ int newtListboxAddEntry(newtComponent co, char * text, void * data) { co->width = li->curWidth; li->numItems++; - listboxDraw(co); - return li->numItems; } diff --git a/newt.c b/newt.c index c63800c..de28b46 100644 --- a/newt.c +++ b/newt.c @@ -313,6 +313,7 @@ int newtOpenWindow(int left, int top, int width, int height, char * title) { int j, row, col; int n; + int i; newtFlushInput(); @@ -340,25 +341,6 @@ int newtOpenWindow(int left, int top, int width, int height, n += currentWindow->width + 3; } - newtDrawCurrentWindow(); - - return 0; -} - -/* XXX hack to allow newtDrawForm() to redraw the current window. - Need to find out what the real problem is */ -void newtDrawCurrentWindow(void) -{ - int i; - int top, left, height, width; - - if(!currentWindow) return; - - top = currentWindow->top; - left = currentWindow->left; - height = currentWindow->height; - width = currentWindow->width; - SLsmg_set_color(NEWT_COLORSET_BORDER); SLsmg_draw_box(top - 1, left - 1, height + 2, width + 2); @@ -390,6 +372,8 @@ void newtDrawCurrentWindow(void) SLsmg_gotorc(i, left + width + 1); SLsmg_write_string(" "); } + + return 0; } void newtPopWindow(void) { diff --git a/newt_pr.h b/newt_pr.h index 19082c6..7efa55b 100644 --- a/newt_pr.h +++ b/newt_pr.h @@ -23,7 +23,6 @@ void newtGotorc(int row, int col); void newtGetrc(int * row, int * col); void newtDrawBox(int left, int top, int width, int height, int shadow); void newtClearBox(int left, int top, int width, int height); -void newtDrawCurrentWindow(void); int newtGetKey(void);