Skip to content

Commit

Permalink
Refactor: Converted static functions to Window member functions
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 13, 2012
1 parent 5af807b commit 46a1f13
Show file tree
Hide file tree
Showing 3 changed files with 178 additions and 148 deletions.
10 changes: 10 additions & 0 deletions doomsday/engine/portable/include/sys_console.h
Expand Up @@ -34,6 +34,16 @@ struct consolewindow_s;
#include "sys_window.h"
#include "sys_input.h"

#if defined(UNIX)
# include <curses.h>
# include "dd_uinit.h"
#endif

#if defined(WIN32)
# include <windows.h>
# include "dd_winit.h"
#endif

// Console window state.
typedef struct consolewindow_s {
#if defined(WIN32)
Expand Down
50 changes: 17 additions & 33 deletions doomsday/engine/portable/include/sys_window.h
@@ -1,29 +1,23 @@
/**\file sys_window.h
*\section License
* License: GPL
* Online License Link: http://www.gnu.org/licenses/gpl.html
/** @file sys_window.h
* Window management. @ingroup base
*
*\author Copyright © 2003-2012 Jaakko Keränen <jaakko.keranen@iki.fi>
*\author Copyright © 2005-2012 Daniel Swanson <danij@dengine.net>
* @authors Copyright © 2003-2012 Jaakko Keränen <jaakko.keranen@iki.fi>
* @authors Copyright © 2005-2012 Daniel Swanson <danij@dengine.net>
* @authors Copyright © 2008 Jamie Jones <jamie_jones_au@yahoo.com.au>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* @par License
* GPL: http://www.gnu.org/licenses/gpl.html
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301 USA
*/

/**
* sys_window.h: Window management.
* <small>This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version. This program is distributed in the hope that it
* will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License for more details. You should have received a copy of the GNU
* General Public License along with this program; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA</small>
*/

#ifndef LIBDENG_SYS_WINDOW_H
Expand All @@ -36,16 +30,6 @@
extern "C" {
#endif

#if defined(UNIX)
# include <curses.h>
# include "dd_uinit.h"
#endif

#if defined(WIN32)
# include <windows.h>
# include "dd_winit.h"
#endif

typedef enum {
WT_NORMAL,
WT_CONSOLE
Expand Down

0 comments on commit 46a1f13

Please sign in to comment.