From 90adbdbb73c9f1e36a60ef39af68daa2ed8d4e72 Mon Sep 17 00:00:00 2001 From: gnuite Date: Sun, 14 Dec 2008 03:22:47 +0000 Subject: [PATCH] Improved performance when running without an on-disk cache. git-svn-id: svn+ssh://garage/var/lib/gforge/svnroot/maemo-mapper/trunk@225 6c538b50-5814-0410-93ad-8bdf4c0149d1 --- src/display.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/display.c b/src/display.c index f118265..381b923 100644 --- a/src/display.c +++ b/src/display.c @@ -1811,7 +1811,7 @@ thread_render_map(MapRenderTask *mrt) } /* Iteratively try to retrieve a map to draw the tile. */ - while((mrt->zoom + zoff) <= MAX_ZOOM && zoff < TILE_SIZE_P2) + while((mrt->zoom + zoff) <= MAX_ZOOM && zoff < 4) { /* Check if we're actually going to draw this map. */ if(tile_dev[2 * (y*num_tilex + x)] != FLT_MAX) @@ -1909,7 +1909,7 @@ thread_render_map(MapRenderTask *mrt) } /* Try again at a coarser resolution. Only for underlying map.*/ - if (repo_p == mrt->repo) + if (repo_p == mrt->repo && repo_p->type != REPOTYPE_NONE) ++zoff; else break; -- 2.45.0