Permalink
Browse files

- Better tile file open operations

- Won't show ETA < 0
- Flickering Zoom is now in black instead of white
  • Loading branch information...
1 parent 71d32c6 commit 56125b07eb24c40a309a5a2e1de32bf30f126a03 @meirtsvi committed Feb 24, 2012
View
@@ -65,8 +65,7 @@ private static GeoCoordinate GetLocationByName(string englishName, string langNa
try
{
var store = IsolatedStorageFile.GetUserStoreForApplication();
-
- historyFile = store.OpenFile("/history", FileMode.Open);
+ historyFile = store.OpenFile("/history", FileMode.Open, FileAccess.Read);
}
catch (FileNotFoundException)
{
@@ -144,6 +144,9 @@ protected override void OnInvoke(ScheduledTask task)
workEtaMin = BackgroundNavigator.GetRouteTime(from, toWork);
}
+ workEtaMin = workEtaMin >= 0 ? workEtaMin : 0;
+ homeEtaMin = homeEtaMin >= 0 ? homeEtaMin : 0;
+
// Prepare data for tile:
if ((homeEtaMin >= 0) || (workEtaMin >= 0))
{
View
2 WazeWP7/GamePage.xaml.cs 100644 → 100755
@@ -344,7 +344,7 @@ private void OnUpdate(object sender, GameTimerEventArgs e)
/// </summary>
private void OnDraw(object sender, GameTimerEventArgs e)
{
- SharedGraphicsDeviceManager.Current.GraphicsDevice.Clear(Color.White);
+ SharedGraphicsDeviceManager.Current.GraphicsDevice.Clear(Color.Black);
//Rendering Silverlight content into the UIElementRenderer object and the rendering its texture using the SpriteBatch object
elementRenderer.Render();
@@ -32,6 +32,6 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
-[assembly: AssemblyVersion("0.9.8.6")]
-[assembly: AssemblyFileVersion("0.9.8.6")]
+[assembly: AssemblyVersion("0.9.8.7")]
+[assembly: AssemblyFileVersion("0.9.8.7")]
[assembly: NeutralResourcesLanguageAttribute("en-US")]

0 comments on commit 56125b0

Please sign in to comment.