1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$NetBSD: patch-af,v 1.2 2011/03/01 07:44:53 tron Exp $
Make this work with "ncurses" 5.8. Patch taken from here.
http://www.mail-archive.com/arch-general@archlinux.org/msg18728.html
--- src/display/canvas.h.orig 2009-11-12 08:03:47.000000000 +0000
+++ src/display/canvas.h 2011-03-01 07:40:08.000000000 +0000
@@ -37,6 +37,7 @@
#ifndef RTORRENT_DISPLAY_CANVAS_H
#define RTORRENT_DISPLAY_CANVAS_H
+#include <cstdarg>
#include <string>
#include <vector>
@@ -48,7 +49,7 @@
public:
typedef std::vector<Attributes> attributes_list;
- Canvas(int x = 0, int y = 0, int width = 0, int height = 0) :
+ Canvas(int x = 0, int y = 0, int width = 1, int height = 1) :
m_window(newwin(height, width, y, x)) {}
~Canvas() { delwin(m_window); }
|