[dasher] Complete renaming of PauseAt -> Pause.
- From: Patrick Welche <pwelche src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dasher] Complete renaming of PauseAt -> Pause.
- Date: Mon, 17 May 2010 11:43:44 +0000 (UTC)
commit 388e5585dafb8154710ceb8dd6bfee00d524636f
Author: Patrick Welche <prlw1 cam ac uk>
Date: Fri May 14 14:54:09 2010 +0100
Complete renaming of PauseAt -> Pause.
Src/Gtk2/GtkDasherControl.cpp | 2 +-
Src/Qt/QtDasherScreen.cc | 3 +--
Src/Win32/Widgets/Canvas.cpp | 4 ++--
3 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/Src/Gtk2/GtkDasherControl.cpp b/Src/Gtk2/GtkDasherControl.cpp
index fa0c503..230bd7f 100644
--- a/Src/Gtk2/GtkDasherControl.cpp
+++ b/Src/Gtk2/GtkDasherControl.cpp
@@ -314,7 +314,7 @@ gtk_dasher_control_game_messageout(GtkDasherControl *pControl, int message, cons
void
gtk_dasher_control_force_pause(GtkDasherControl *pControl) {
GtkDasherControlPrivate *pPrivate = GTK_DASHER_CONTROL_GET_PRIVATE(pControl);
- pPrivate->pControl->PauseAt(0,0);
+ pPrivate->pControl->Pause();
}
double
diff --git a/Src/Qt/QtDasherScreen.cc b/Src/Qt/QtDasherScreen.cc
index 1e5e277..cf95794 100644
--- a/Src/Qt/QtDasherScreen.cc
+++ b/Src/Qt/QtDasherScreen.cc
@@ -157,8 +157,7 @@ void QtDasherScreen::mousePressEvent(QMouseEvent *e) {
}
void QtDasherScreen::mouseReleaseEvent(QMouseEvent *e) {
- QPoint p = e->pos();
- interface->PauseAt(p.x(), p.y());
+ interface->Pause();
paused = true;
}
diff --git a/Src/Win32/Widgets/Canvas.cpp b/Src/Win32/Widgets/Canvas.cpp
index aa63a19..6bf7ffd 100644
--- a/Src/Win32/Widgets/Canvas.cpp
+++ b/Src/Win32/Widgets/Canvas.cpp
@@ -426,7 +426,7 @@ LRESULT CCanvas::OnCursorOutOfRange(UINT message, WPARAM wParam, LPARAM lParam,
if ( m_pDasherInterface->GetBoolParameter(BP_START_MOUSE) )
{
if (!m_pDasherInterface->GetBoolParameter(BP_DASHER_PAUSED))
- m_pDasherInterface->PauseAt(0, 0);
+ m_pDasherInterface->Pause();
}
return 0;
@@ -531,7 +531,7 @@ void CCanvas::DoFrame()
if (dwTicks - m_dwTicksLastEvent > m_pDasherInterface->GetLongParameter(LP_STOP_IDLETIME) )
{
// idle time exceeded
- m_pDasherInterface->PauseAt(0, 0);
+ m_pDasherInterface->Pause();
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]