Various VC++ 1.5 and other corrections

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2000-02-16 11:53:16 +00:00
parent 9e5c7daa4a
commit 2fa7c206f6
15 changed files with 222 additions and 171 deletions

View File

@@ -17,6 +17,17 @@
#pragma implementation "life.h"
#endif
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
#include "wx/statline.h"
#include "life.h"
@@ -459,7 +470,7 @@ void LifeCanvas::SetCellSize(int cellsize)
wxInt32 cy = m_viewportY + m_viewportH / 2;
// get current canvas size and adjust viewport accordingly
wxCoord w, h;
int w, h;
GetClientSize(&w, &h);
m_viewportW = (w + m_cellsize - 1) / m_cellsize;
m_viewportH = (h + m_cellsize - 1) / m_cellsize;