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.1 by sf-pippijn, Tue Oct 19 09:45:09 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); /* initialize advanced keycodes for this window */ 21 app->enable_keypad (win ());
20} 22}
21 23
22window::~window () 24window::~window ()
23{ 25{
24} 26}
25 27
26void 28void
27window::set_scroll (bool res) 29window::set_scroll (bool res)
28{ 30{
29 scrollok (win (), res); /* don't use ::, 'cause scrollok may be a macro */ 31 scrollok (win (), res); /* don't use ::, because scrollok may be a macro */
30} 32}
31 33
32void 34void
33window::resize (int w, int h) 35window::resize (int w, int h)
34{ 36{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines