logo separator

[mkgmap-dev] TYP compiler problems

From Steve Ratcliffe steve at parabola.me.uk on Fri Nov 9 15:34:47 GMT 2018

Hi Ticker

> I'm having problems with the TYP file appearing corrupt. A simple file
> was working as expected, but adding a bit more caused very strange
> display properties in unrelated items on the Garmin device - eg, an
> area showed as a pattern never seen before, and, when selected, claimed
> to be waypoint.

The troublesome polygon is this one:

> [_polygon]
> Type=0x58
> ; crashes with: String=County
> ; corruption with:
> String=Countyxxxxx
> Xpm="16 16 2 1"
>     ". c none"
>     "1 c #FFFFFF"
>     "................"
>     "................"
>  [ ... ]

It has a size of 16x16, but polygon bitmaps must be 32x32.

Although documented (at http://www.mkgmap.org.uk/doc/typ-compiler),
this restriction is not checked by the code, sorry about that.

I've attached a patch to check this.  There are other possible
checks so this may be expanded before committing.

Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bitmap-checks.patch
Type: text/x-patch
Size: 3112 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20181109/973f25a3/attachment.bin>


More information about the mkgmap-dev mailing list