summaryrefslogtreecommitdiff
path: root/src/mbgl/text
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-10-26 10:14:24 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-11-10 11:33:17 -0800
commita5625675890213f94de7632d4ef152ade627c9a5 (patch)
treed6a3f816e80417bbedc16d0b34383d8ee191bf92 /src/mbgl/text
parent728a9858ea88751e74de57694746c2ea1546ce25 (diff)
downloadqtlocation-mapboxgl-a5625675890213f94de7632d4ef152ade627c9a5.tar.gz
[core] Eliminate use of ClassProperties for layout
Diffstat (limited to 'src/mbgl/text')
-rw-r--r--src/mbgl/text/quads.cpp4
-rw-r--r--src/mbgl/text/shaping.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/mbgl/text/quads.cpp b/src/mbgl/text/quads.cpp
index 35f224ac12..379a6e71ee 100644
--- a/src/mbgl/text/quads.cpp
+++ b/src/mbgl/text/quads.cpp
@@ -1,7 +1,7 @@
#include <mbgl/text/quads.hpp>
#include <mbgl/text/shaping.hpp>
#include <mbgl/geometry/anchor.hpp>
-#include <mbgl/style/style_properties.hpp>
+#include <mbgl/layer/symbol_layer.hpp>
#include <mbgl/util/math.hpp>
#include <cassert>
@@ -133,7 +133,7 @@ SymbolQuads getGlyphQuads(Anchor& anchor, const Shaping& shapedText,
const bool alongLine, const GlyphPositions& face) {
const float textRotate = layout.text.rotate * M_PI / 180;
- const bool keepUpright = layout.text.keep_upright;
+ const bool keepUpright = layout.text.keepUpright;
SymbolQuads quads;
diff --git a/src/mbgl/text/shaping.cpp b/src/mbgl/text/shaping.cpp
index c3911718e0..6709a49aa2 100644
--- a/src/mbgl/text/shaping.cpp
+++ b/src/mbgl/text/shaping.cpp
@@ -1,11 +1,11 @@
#include <mbgl/text/shaping.hpp>
-#include <mbgl/style/style_properties.hpp>
+#include <mbgl/layer/symbol_layer.hpp>
namespace mbgl {
PositionedIcon shapeIcon(const Rect<uint16_t>& image, const SymbolLayoutProperties& layout) {
- float dx = layout.icon.offset[0];
- float dy = layout.icon.offset[1];
+ float dx = layout.icon.offset.value[0];
+ float dy = layout.icon.offset.value[1];
float x1 = dx - image.originalW / 2.0f;
float x2 = x1 + image.originalW;
float y1 = dy - image.originalH / 2.0f;