diff options
Diffstat (limited to 'src/mbgl/programs/line_program.hpp')
-rw-r--r-- | src/mbgl/programs/line_program.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mbgl/programs/line_program.hpp b/src/mbgl/programs/line_program.hpp index c27f2975b5..fe58db4173 100644 --- a/src/mbgl/programs/line_program.hpp +++ b/src/mbgl/programs/line_program.hpp @@ -55,10 +55,8 @@ public: static LayoutVertex layoutVertex(Point<int16_t> p, Point<double> e, bool round, bool up, int8_t dir, int32_t linesofar = 0) { return LayoutVertex { {{ - p.x, - p.y, - static_cast<int16_t>(round ? 1 : 0), - static_cast<int16_t>(up ? 1 : -1) + static_cast<int16_t>((p.x * 2) | (round ? 1 : 0)), + static_cast<int16_t>((p.y * 2) | (up ? 1 : 0)) }}, {{ // add 128 to store a byte in an unsigned byte |