From a6f6f75d12cfce5489686abf2bb8eb7acac0ba04 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Fri, 21 Sep 2018 19:48:27 +0200 Subject: [PATCH] Fix white-space in demos --- demos/forty/scoredg.h | 2 +- demos/life/life.cpp | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/demos/forty/scoredg.h b/demos/forty/scoredg.h index b5f5011712..1b1c7d2ba3 100644 --- a/demos/forty/scoredg.h +++ b/demos/forty/scoredg.h @@ -27,7 +27,7 @@ private: ScoreFile* m_scoreFile; wxButton* m_OK; - wxDECLARE_EVENT_TABLE(); + wxDECLARE_EVENT_TABLE(); }; #endif diff --git a/demos/life/life.cpp b/demos/life/life.cpp index 5d7e52f3c8..c36e9c99d9 100644 --- a/demos/life/life.cpp +++ b/demos/life/life.cpp @@ -431,10 +431,10 @@ void LifeFrame::OnMenu(wxCommandEvent& event) m_running = true; m_topspeed = true; UpdateUI(); - + const long YIELD_INTERVAL = 1000 / 30; wxMilliClock_t lastyield = 0, now; - + while (m_running && m_topspeed) { OnStep(); @@ -444,7 +444,7 @@ void LifeFrame::OnMenu(wxCommandEvent& event) lastyield = now; } } - + break; } } @@ -797,17 +797,17 @@ void LifeCanvas::DrawCell(wxInt32 i, wxInt32 j, wxDC &dc) void LifeCanvas::DrawChanged() { wxClientDC dc(this); - + size_t ncells; LifeCell *cells; bool done = false; - + m_life->BeginFind(m_viewportX, m_viewportY, m_viewportX + m_viewportW, m_viewportY + m_viewportH, true); - + if (m_cellsize == 1) { dc.SetPen(*wxWHITE_PEN); @@ -818,11 +818,11 @@ void LifeCanvas::DrawChanged() dc.SetBrush(*wxWHITE_BRUSH); } dc.SetLogicalFunction(wxXOR); - + while (!done) { done = m_life->FindMore(&cells, &ncells); - + for (size_t m = 0; m < ncells; m++) DrawCell(cells[m].i, cells[m].j, dc); }