commands/fed/src/textview.cpp
changeset 95 b3ffff030d5c
parent 0 7f656887cf89
equal deleted inserted replaced
94:8df58d8c99e8 95:b3ffff030d5c
    82 	{
    82 	{
    83 	iConsole.SetCursorHeight(0);
    83 	iConsole.SetCursorHeight(0);
    84 	}
    84 	}
    85 
    85 
    86 void CTextView::ResizeL(const TWindow& aWindow)
    86 void CTextView::ResizeL(const TWindow& aWindow)
    87 {
    87 	{
    88 	iActive = ETrue;
    88 	iActive = ETrue;
    89 	TWindow oldWindow = iWindow;
    89 	TWindow oldWindow = iWindow;
    90 	StoreWindow(aWindow);
    90 	StoreWindow(aWindow);
       
    91 	iLine.Zero();
       
    92 	iLine.ReAllocL(iConsole.ScreenSize().iWidth);
    91 	DoResizeL(oldWindow);
    93 	DoResizeL(oldWindow);
    92 }
    94 	}
    93 
    95 
    94 void CTextView::RedrawL(const TWindow& aWindow)
    96 void CTextView::RedrawL(const TWindow& aWindow)
    95 {
    97 	{
    96 	iActive = ETrue;
    98 	iActive = ETrue;
    97 	StoreWindow(aWindow);
    99 	StoreWindow(aWindow);
    98 	DoRedrawL();
   100 	DoRedrawL();
    99 }
   101 	}
   100 
   102 
   101 void CTextView::DeactivateL()
   103 void CTextView::DeactivateL()
   102 {
   104 	{
   103 	iActive = EFalse;
   105 	iActive = EFalse;
   104 }
   106 	}
   105 
   107 
   106 //MSharedCacheClient
   108 //MSharedCacheClient
   107 void CTextView::InvalidateBuffer(TRequestStatus& aStatus)
   109 void CTextView::InvalidateBuffer(TRequestStatus& aStatus)
   108 {
   110 {
   109 	aStatus = KRequestPending;
   111 	aStatus = KRequestPending;