Diff of /trunk/src/map-tool.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 63 by harbaum, Wed Aug 19 12:35:25 2009 UTC revision 65 by harbaum, Wed Aug 19 14:21:14 2009 UTC
# Line 260  cairo_draw_pixbuf(cairo_t *cr, GdkPixbuf Line 260  cairo_draw_pixbuf(cairo_t *cr, GdkPixbuf
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) {
# Line 292  balloon_draw_cb(cairo_t *cr, OsmGpsMapRe Line 296  balloon_draw_cb(cairo_t *cr, OsmGpsMapRe
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 */
# Line 313  balloon_draw_cb(cairo_t *cr, OsmGpsMapRe Line 322  balloon_draw_cb(cairo_t *cr, OsmGpsMapRe
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 */

Legend:
Removed from v.63  
changed lines
  Added in v.65