downgrade libtorrent and rtorrent; rtorrent crashes only solution was to use stable...
[packages.git] / net / rtorrent / patches / 120-fix-ncurses.patch
1 Index: rtorrent-0.8.6/src/display/canvas.h
2 ===================================================================
3 --- rtorrent-0.8.6.orig/src/display/canvas.h
4 +++ rtorrent-0.8.6/src/display/canvas.h
5 @@ -48,7 +48,7 @@ class Canvas {
6  public:
7    typedef std::vector<Attributes> attributes_list;
8  
9 -  Canvas(int x = 0, int y = 0, int width = 0, int height = 0) :
10 +  Canvas(int x = 0, int y = 0, int width = 1, int height = 1) :
11      m_window(newwin(height, width, y, x)) {}
12    ~Canvas() { delwin(m_window); }
13