X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fbackgroundmgr.cpp;h=2d7714570bb5515d6db2f7092c49b8e09453e86c;hb=b4f2d26b8657e786cecf339a13fe8e53c2a0e6b5;hp=ddbefb75f9108ad6d1b015e92d71b30d75be164f;hpb=8cce345df80fdbeea1c03a04a71d805951a87b74;p=ctsim.git diff --git a/src/backgroundmgr.cpp b/src/backgroundmgr.cpp index ddbefb7..2d77145 100644 --- a/src/backgroundmgr.cpp +++ b/src/backgroundmgr.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2001 Kevin Rosenberg ** -** $Id: backgroundmgr.cpp,v 1.9 2001/03/04 03:14:47 kevin Exp $ +** $Id: backgroundmgr.cpp,v 1.12 2001/03/05 20:29:23 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -39,9 +39,7 @@ #include "backgroundmgr.h" -#if defined(HAVE_CONFIG_H) -#include "config.h" -#endif +#ifdef HAVE_WXTHREADS IMPLEMENT_DYNAMIC_CLASS(BackgroundManager, wxMiniFrame) @@ -219,7 +217,7 @@ BackgroundManager::resizeWindow() { int iHighestPosition = -1; - for (int i = 0; i < m_vecpPositions.size(); i++) + for (unsigned int i = 0; i < m_vecpPositions.size(); i++) if (iHighestPosition < m_vecpPositions[i]) iHighestPosition = m_vecpPositions[i]; @@ -236,7 +234,7 @@ BEGIN_EVENT_TABLE(BackgroundManagerCanvas, wxPanel) END_EVENT_TABLE() BackgroundManagerCanvas::BackgroundManagerCanvas (BackgroundManager* pMgr) -: m_pBackgroundManager(pMgr), wxPanel (pMgr) +: wxPanel (pMgr), m_pBackgroundManager(pMgr) { } @@ -249,3 +247,5 @@ BackgroundManagerCanvas::OnPaint (wxPaintEvent& event) // dc.DrawLine (30,0, 0, 30); } #endif + +#endif // HAVE_WXTHREADS