]> git.street.me.uk Git - andy/viking.git/commit - src/mapcache.c
Fix intermittent problem of map redraw.
authorQuy Tonthat <qtonthat@gmail.com>
Sat, 26 May 2007 11:16:39 +0000 (11:16 +0000)
committerQuy Tonthat <qtonthat@gmail.com>
Sat, 26 May 2007 11:16:39 +0000 (11:16 +0000)
commite044ae9e96b95fc6e58b4f05f759e5fc59bb79ab
tree7541471935b5d1e92ea6e91b35bcc5d1b778e893
parent8462835212716e8a0ae4758d96d8bae98c536259
Fix intermittent problem of map redraw.

The type mismatching (gint vs guint16) in the cache removing function can
cause coords truncated which leads to pixmaps not removed from the cache,
hence they are not updated on screen.

This only happens for coords with values larger than what a 16-bit number
can hold (> 65535). This is why the problem seems intermittent.

Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
src/mapcache.c
src/mapcache.h