ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/dclient/src/backend/ndk/window.cpp
(Generate patch)

Comparing deliantra/dclient/src/backend/ndk/window.cpp (file contents):
Revision 1.2 by sf-pippijn, Tue Oct 19 10:05:57 2010 UTC vs.
Revision 1.3 by sf-pippijn, Wed Oct 20 09:21:48 2010 UTC

3 * Copyright (c) 2003,2004 by Stanislav Ievlev 3 * Copyright (c) 2003,2004 by Stanislav Ievlev
4 * 4 *
5 * This file is covered by the GNU Library General Public License, 5 * This file is covered by the GNU Library General Public License,
6 * which should be included with libncursesxx as the file COPYING. 6 * which should be included with libncursesxx as the file COPYING.
7 */ 7 */
8#include <ndk++/window.hh>
9
10#include <ndk++/application.hh>
11
8#include <stdexcept> 12#include <stdexcept>
9
10#include <ndk++/window.hh>
11 13
12using ndk::window; 14using ndk::window;
13 15
14window::window () 16window::window ()
15 : win_ (newwin (1, 1, 0, 0), delwin) 17 : win_ (newwin (1, 1, 0, 0), delwin)
16{ 18{
17 if (!win_) 19 if (!win_)
18 throw std::runtime_error ("newwin call failed"); 20 throw std::runtime_error ("newwin call failed");
19 keypad (win (), true); /* initialise advanced keycodes for this window */ 21 app->enable_keypad (win ());
20} 22}
21 23
22window::~window () 24window::~window ()
23{ 25{
24} 26}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines