260 |
cairo_paint(cr); |
cairo_paint(cr); |
261 |
} |
} |
262 |
|
|
263 |
|
#ifndef BIG_BALLOONS |
264 |
#define LINE_SKIP 7 |
#define LINE_SKIP 7 |
265 |
|
#else |
266 |
|
#define LINE_SKIP 12 |
267 |
|
#endif |
268 |
|
|
269 |
static void |
static void |
270 |
balloon_draw_cb(cairo_t *cr, OsmGpsMapRect_t *rect, gpointer data) { |
balloon_draw_cb(cairo_t *cr, OsmGpsMapRect_t *rect, gpointer data) { |
296 |
CAIRO_FONT_SLANT_NORMAL, |
CAIRO_FONT_SLANT_NORMAL, |
297 |
CAIRO_FONT_WEIGHT_BOLD); |
CAIRO_FONT_WEIGHT_BOLD); |
298 |
|
|
299 |
|
#ifndef BIG_BALLOONS |
300 |
cairo_set_font_size (cr, 20.0); |
cairo_set_font_size (cr, 20.0); |
301 |
|
#else |
302 |
|
cairo_set_font_size (cr, 36.0); |
303 |
|
#endif |
304 |
|
|
305 |
cairo_text_extents (cr, cache->id, &extents); |
cairo_text_extents (cr, cache->id, &extents); |
306 |
|
|
307 |
/* display id right of icon vertically centered */ |
/* display id right of icon vertically centered */ |
322 |
/* everything from here uses the same font */ |
/* everything from here uses the same font */ |
323 |
cairo_select_font_face (cr, "Sans", CAIRO_FONT_SLANT_NORMAL, |
cairo_select_font_face (cr, "Sans", CAIRO_FONT_SLANT_NORMAL, |
324 |
CAIRO_FONT_WEIGHT_NORMAL); |
CAIRO_FONT_WEIGHT_NORMAL); |
325 |
|
#ifndef BIG_BALLOONS |
326 |
cairo_set_font_size (cr, 14.0); |
cairo_set_font_size (cr, 14.0); |
327 |
|
#else |
328 |
|
cairo_set_font_size (cr, 24.0); |
329 |
|
#endif |
330 |
|
|
331 |
if(cache->name) { |
if(cache->name) { |
332 |
/* draw cache name */ |
/* draw cache name */ |