diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2002-08-24 12:28:33 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2002-08-24 12:28:33 +0000 |
commit | bc712bbf17bd3c4ead9c0cacc917cd58f7cc5267 (patch) | |
tree | 7dcfd2641e222e0dbc6b5d8d032fa1fcf10c5ec4 /gdb/tui/tuiGeneralWin.c | |
parent | e9ae5755d3e70272c36bf5a1fefcdb3010035925 (diff) | |
download | gdb-bc712bbf17bd3c4ead9c0cacc917cd58f7cc5267.zip gdb-bc712bbf17bd3c4ead9c0cacc917cd58f7cc5267.tar.gz gdb-bc712bbf17bd3c4ead9c0cacc917cd58f7cc5267.tar.bz2 |
* tuiSourceWin.c (tui_show_source_line): New function.
(tuiShowSourceContent): Call it and avoid clearing the window before
redrawing it.
(tuiClearAllSourceWinsContent): Remove.
* tuiSourceWin.h (tuiClearAllSourceWinsContent): Don't declare.
* tuiWin.h (tuiClearWinFocus, tuiClearWinFocusFrom): Don't declare.
* tuiWin.c (tuiClearWinFocus, tuiClearWinFocusFrom): Remove.
(tuiRefreshAll): Don't clear the window.
(_makeVisibleWithNewHeight): Don't clear locator line.
(tuiResizeAll): Remove unused locals.
(_tuiAdjustWinHeights): Likewise.
(_makeInvisibleAndSetNewHeight): Likewise.
(_newHeightOk): Likewise.
* tuiLayout.c (showLayout): Don't clear source windows.
(tuiSetLayout): Don't clear the window.
(_initAndMakeWin): Likewise for status line.
* tuiGeneralWin.c (makeVisible): Don't clear or refresh the window.
(makeWindow): Likewise.
(tuiClearWin): Remove.
* tuiGeneralWin.h (tuiClearWin): Don't declare.
Diffstat (limited to 'gdb/tui/tuiGeneralWin.c')
-rw-r--r-- | gdb/tui/tuiGeneralWin.c | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/gdb/tui/tuiGeneralWin.c b/gdb/tui/tuiGeneralWin.c index 7b60068..b8f3b0c 100644 --- a/gdb/tui/tuiGeneralWin.c +++ b/gdb/tui/tuiGeneralWin.c @@ -191,43 +191,8 @@ makeWindow (TuiGenWinInfoPtr winInfo, int boxIt) boxWin (winInfo, NO_HILITE); winInfo->isVisible = TRUE; scrollok (handle, TRUE); - tuiRefreshWin (winInfo); - -#ifndef FOR_TEST - if ( /*!m_WinIsAuxillary(winInfo->type) && */ - (winInfo->type != CMD_WIN) && - (winInfo->content == (OpaquePtr) NULL)) - { - mvwaddstr (handle, 1, 1, winName (winInfo)); - tuiRefreshWin (winInfo); - } -#endif /*FOR_TEST */ - } - - return; -} /* makeWindow */ - - -/* - ** tuiClearWin(). - ** Clear the window of all contents without calling wclear. - */ -void -tuiClearWin (TuiGenWinInfoPtr winInfo) -{ - if (m_genWinPtrNotNull (winInfo) && winInfo->handle != (WINDOW *) NULL) - { - int curRow, curCol; - - for (curRow = 0; (curRow < winInfo->height); curRow++) - for (curCol = 0; (curCol < winInfo->width); curCol++) - mvwaddch (winInfo->handle, curRow, curCol, ' '); - - tuiRefreshWin (winInfo); } - - return; -} /* tuiClearWin */ +} /* @@ -252,13 +217,11 @@ makeVisible (TuiGenWinInfoPtr winInfo, int visible) (winInfo->type != CMD_WIN && !m_winIsAuxillary (winInfo->type))); winInfo->isVisible = TRUE; } - tuiRefreshWin (winInfo); } else if (!visible && winInfo->isVisible && winInfo->handle != (WINDOW *) NULL) { winInfo->isVisible = FALSE; - tuiClearWin (winInfo); tuiDelwin (winInfo->handle); winInfo->handle = (WINDOW *) NULL; } |