[gbrainy] Minor fixes
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gbrainy] Minor fixes
- Date: Mon, 19 Apr 2010 20:40:03 +0000 (UTC)
commit 2c4f664a734636ceec96b9f90d8f44cf003a2613
Author: Jordi Mas <jmas softcatala org>
Date: Mon Apr 19 22:40:44 2010 +0200
Minor fixes
src/Core/Main/Memory.cs | 2 +-
src/Games/Calculation/CalculationPrimes.cs | 4 +---
2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/Core/Main/Memory.cs b/src/Core/Main/Memory.cs
index e68c69b..0a877ca 100644
--- a/src/Core/Main/Memory.cs
+++ b/src/Core/Main/Memory.cs
@@ -35,7 +35,7 @@ namespace gbrainy.Core.Main
private bool request_answer = false;
private bool buttons_active;
protected bool shade = false;
- protected const int shading_time = 15;
+ const int shading_time = 15;
private LinearGradient gradient = null;
protected double alpha;
private bool draw_timer;
diff --git a/src/Games/Calculation/CalculationPrimes.cs b/src/Games/Calculation/CalculationPrimes.cs
index 8268e5c..0a221c1 100644
--- a/src/Games/Calculation/CalculationPrimes.cs
+++ b/src/Games/Calculation/CalculationPrimes.cs
@@ -227,13 +227,11 @@ namespace gbrainy.Games.Calculation
public override void Draw (CairoContextEx gr, int area_width, int area_height, bool rtl)
{
- double x = DrawAreaX, y = DrawAreaY + 0.1;
-
base.Draw (gr, area_width, area_height, rtl);
gr.SetPangoLargeFontSize ();
- gr.MoveTo (0.05, y);
+ gr.MoveTo (0.05, DrawAreaY + 0.1);
gr.ShowPangoText (Catalog.GetString ("Numbers"));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]