1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-30 22:51:16 +01:00

A much nicer (and faster) 24b conversion

This commit is contained in:
Martin Tůma 2019-12-04 22:19:00 +01:00
parent b59112f74e
commit 0f670f9ddd

View File

@ -10,9 +10,7 @@ inline double toWGS32(qint32 v)
inline double toWGS24(qint32 v)
{
return (v < 0x800000)
? (double)v * 360.0 / (double)(1U<<24)
: (double)(v - 0x1000000) * 360.0 / (double)(1<<24);
return toWGS32(v<<8);
}
#endif // GARMIN_H