]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
removed extraneous screen drawing
authorewt <ewt>
Thu, 21 Aug 1997 20:43:33 +0000 (20:43 +0000)
committerewt <ewt>
Thu, 21 Aug 1997 20:43:33 +0000 (20:43 +0000)
listbox.c
newt.c
newt_pr.h

index 026803bbed217490c587e999741156425f2b200d..32d288fb8162b016c37d34a72ec04f28a6344ed5 100644 (file)
--- 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 c63800c1d6939b71bb8d8bae3232cdf1fda4b519..de28b4629d60427aadda04e78c78aec1b6f083d9 100644 (file)
--- 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) {
index 19082c65528c939f0f5fedf209d86c7c5d118ac3..7efa55b8ce6f112e4cb331715d5ee15e258eb0f7 100644 (file)
--- 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);