[gbrainy] Fix preview mode for memory games
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gbrainy] Fix preview mode for memory games
- Date: Sat, 1 Jun 2013 15:37:02 +0000 (UTC)
commit c3640ecc682ebb53ebf56057929bfa44e16f7cbf
Author: Jordi Mas <jmas softcatala org>
Date: Sat Jun 1 17:40:39 2013 +0200
Fix preview mode for memory games
src/Core/Main/Memory.cs | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Main/Memory.cs b/src/Core/Main/Memory.cs
index 3bfd56e..ee2bda8 100644
--- a/src/Core/Main/Memory.cs
+++ b/src/Core/Main/Memory.cs
@@ -121,6 +121,9 @@ namespace gbrainy.Core.Main
public void StartTimer ()
{
+ if (IsPreviewMode == true)
+ return;
+
timer.Enabled = true;
draw_timer = true;
}
@@ -166,7 +169,12 @@ namespace gbrainy.Core.Main
}
public override void Draw (CairoContextEx gr, int area_width, int area_height, bool rtl)
- {
+ {
+ if (IsPreviewMode) {
+ DrawPreview (gr, area_width, area_height, rtl);
+ return;
+ }
+
if (downview != null) {
downview.Draw (gr, area_width, area_height, rtl);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]