fix deprecated warnings in src/ui/tile-preview.c