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.2 by sf-pippijn, Tue Oct 19 10:05:57 2010 UTC

14window::window () 14window::window ()
15 : win_ (newwin (1, 1, 0, 0), delwin) 15 : win_ (newwin (1, 1, 0, 0), delwin)
16{ 16{
17 if (!win_) 17 if (!win_)
18 throw std::runtime_error ("newwin call failed"); 18 throw std::runtime_error ("newwin call failed");
19 keypad (win (), TRUE); /* initialize advanced keycodes for this window */ 19 keypad (win (), true); /* initialise advanced keycodes for this window */
20} 20}
21 21
22window::~window () 22window::~window ()
23{ 23{
24} 24}
25 25
26void 26void
27window::set_scroll (bool res) 27window::set_scroll (bool res)
28{ 28{
29 scrollok (win (), res); /* don't use ::, 'cause scrollok may be a macro */ 29 scrollok (win (), res); /* don't use ::, because scrollok may be a macro */
30} 30}
31 31
32void 32void
33window::resize (int w, int h) 33window::resize (int w, int h)
34{ 34{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines