From c6985199b0e04b1cf34896f2d2ebf199d239fd3f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 2 Mar 2003 14:30:17 +0000 Subject: [PATCH] define some global wxDisplay-related stuff here (wxArrayVideoModes, wxDefaultVideoMode) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/dpycmn.cpp | 52 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 src/common/dpycmn.cpp diff --git a/src/common/dpycmn.cpp b/src/common/dpycmn.cpp new file mode 100644 index 0000000000..87f303c065 --- /dev/null +++ b/src/common/dpycmn.cpp @@ -0,0 +1,52 @@ +/////////////////////////////////////////////////////////////////////////////// +// Name: common/dpycmn.cpp +// Purpose: wxDisplayBase implementation +// Author: Vadim Zeitlin +// Modified by: +// Created: 01.03.03 +// RCS-ID: $Id$ +// Copyright: (c) 2003 Vadim Zeitlin +// License: wxWindows license +/////////////////////////////////////////////////////////////////////////////// + +// ============================================================================ +// declarations +// ============================================================================ + +// ---------------------------------------------------------------------------- +// headers +// ---------------------------------------------------------------------------- + +#ifdef __GNUG__ + #pragma implementation "displaybase.h" +#endif + +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + +#ifdef __BORLANDC__ + #pragma hdrstop +#endif + +#include "wx/display.h" + +#if wxUSE_DISPLAY + +#include "wx/arrimpl.cpp" +WX_DEFINE_OBJARRAY(wxArrayVideoModes); + +const wxVideoMode wxDefaultVideoMode; + +// ============================================================================ +// implementation +// ============================================================================ + +wxDisplayBase::wxDisplayBase(size_t index) + : m_index (index) +{ + wxASSERT_MSG( m_index < wxDisplayBase::GetCount(), + wxT("An invalid index was passed to wxDisplay") ); +} + +#endif // wxUSE_DISPLAY + -- 2.50.0