On 12/02/11 15:32, WanMil wrote:
> I observed that the MapSource search menu is disabled if the MDR file is
> larger than 0x7FFFFFF (134217727) bytes.
>
> Maybe in this case a flag must be set?

My guess is in ImgHeader:

// This sectors, head, cylinders stuff appears to be used by mapsource
// and they have to be larger than the actual size of the map.  It
// doesn't appear to have any effect on a garmin device or other software.
int sectors = 0x20;   // 0x20 appears to be a max
header.putShort(OFF_SECTORS, (short) sectors);
int heads = 0x20;     // 0x20 appears to be max
header.putShort(OFF_HEADS, (short) heads);
int cylinders = 0x100;   // gives 128M will try more later

Try boosting cylinders to 0x200, or try to find if there is a maximum
useful value like it appears that there is for the others.

..Steve
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to