[cairo-commit] roadster/src map.c,1.31,1.32
Ian McIntosh
commit at pdx.freedesktop.org
Wed Mar 23 14:43:07 PST 2005
- Previous message: [cairo-commit] roadster/data layers.xml,1.12,1.13
- Next message: [cairo-commit]
cairo-java/src/java/org/freedesktop/cairo Cairo.java, 1.9,
1.10 Matrix.java, 1.1, 1.2 FillRule.java, 1.1,
1.2 FontSlant.java, 1.1, 1.2 FontWeight.java, 1.1,
1.2 Pattern.java, 1.1, 1.2 LineCap.java, 1.1, 1.2 Font.java,
1.1, 1.2 PngSurface.java, 1.3, 1.4 LineJoin.java, 1.1,
1.2 PsSurface.java, 1.2, 1.3 Operator.java, 1.1,
1.2 Extend.java, 1.1, 1.2 CairoObject.java, 1.1,
1.2 Filter.java, 1.1, 1.2 PdfSurface.java, 1.4,
1.5 TextExtents.java, 1.2, 1.3 Surface.java, 1.2,
1.3 ImageSurface.java, 1.1, 1.2 FreetypeFont.java, 1.2,
1.3 FontExtents.java, 1.1, 1.2 Status.java, 1.3,
1.4 Glyph.java, 1.2, 1.3 Format.java, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: ian
Update of /cvs/cairo/roadster/src
In directory gabe:/tmp/cvs-serv16854/src
Modified Files:
map.c
Log Message:
* src/map.c: Fixed off-by-one error in selecting line widths for hit testing.
* data/layers.xml: Changed style to never use single-color roads (ugly).
Index: map.c
===================================================================
RCS file: /cvs/cairo/roadster/src/map.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- map.c 23 Mar 2005 09:21:49 -0000 1.31
+++ map.c 23 Mar 2005 22:43:05 -0000 1.32
@@ -655,8 +655,8 @@
gint nLayer = layerdraworder[i].nLayer;
// use width from whichever layer it's wider in
- gdouble fLineWidth = max(g_aLayers[nLayer]->m_Style.m_aSubLayers[0].m_afLineWidths[pMap->m_uZoomLevel],
- g_aLayers[nLayer]->m_Style.m_aSubLayers[1].m_afLineWidths[pMap->m_uZoomLevel]);
+ gdouble fLineWidth = max(g_aLayers[nLayer]->m_Style.m_aSubLayers[0].m_afLineWidths[pMap->m_uZoomLevel-1],
+ g_aLayers[nLayer]->m_Style.m_aSubLayers[1].m_afLineWidths[pMap->m_uZoomLevel-1]);
// make thin roads a little easier to hit
fLineWidth = max(fLineWidth, MIN_ROAD_HIT_TARGET_WIDTH);
- Previous message: [cairo-commit] roadster/data layers.xml,1.12,1.13
- Next message: [cairo-commit]
cairo-java/src/java/org/freedesktop/cairo Cairo.java, 1.9,
1.10 Matrix.java, 1.1, 1.2 FillRule.java, 1.1,
1.2 FontSlant.java, 1.1, 1.2 FontWeight.java, 1.1,
1.2 Pattern.java, 1.1, 1.2 LineCap.java, 1.1, 1.2 Font.java,
1.1, 1.2 PngSurface.java, 1.3, 1.4 LineJoin.java, 1.1,
1.2 PsSurface.java, 1.2, 1.3 Operator.java, 1.1,
1.2 Extend.java, 1.1, 1.2 CairoObject.java, 1.1,
1.2 Filter.java, 1.1, 1.2 PdfSurface.java, 1.4,
1.5 TextExtents.java, 1.2, 1.3 Surface.java, 1.2,
1.3 ImageSurface.java, 1.1, 1.2 FreetypeFont.java, 1.2,
1.3 FontExtents.java, 1.1, 1.2 Status.java, 1.3,
1.4 Glyph.java, 1.2, 1.3 Format.java, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cairo-commit
mailing list