[msvc] Avoid warnings in tests (#276)
This commit is contained in:
@@ -25,7 +25,7 @@ SymbolInstance makeSymbolInstance(float x, float y, std::u16string key) {
|
||||
placementType,
|
||||
textOffset,
|
||||
imageMap,
|
||||
0,
|
||||
0.0f,
|
||||
SymbolContent::IconSDF,
|
||||
false,
|
||||
false);
|
||||
|
||||
@@ -15,7 +15,7 @@ TEST(getIconQuads, normal) {
|
||||
Anchor anchor(2.0, 3.0, 0.0, 0);
|
||||
ImagePosition image = {
|
||||
mapbox::Bin(-1, 15, 11, 0, 0, 0, 0),
|
||||
style::Image::Impl("test", PremultipliedImage({1,1}), 1.0)
|
||||
style::Image::Impl("test", PremultipliedImage({1,1}), 1.0f)
|
||||
};
|
||||
|
||||
auto shapedIcon = PositionedIcon::shapeIcon(image, {{-6.5f, -4.5f}}, SymbolAnchorType::Center);
|
||||
@@ -39,7 +39,7 @@ TEST(getIconQuads, normal) {
|
||||
TEST(getIconQuads, style) {
|
||||
Anchor anchor(0.0, 0.0, 0.0, 0);
|
||||
const ImagePosition image = {mapbox::Bin(-1, 20, 20, 0, 0, 0, 0),
|
||||
style::Image::Impl("test", PremultipliedImage({1, 1}), 1.0)};
|
||||
style::Image::Impl("test", PremultipliedImage({1, 1}), 1.0f)};
|
||||
|
||||
GeometryCoordinates line;
|
||||
Shaping shapedText;
|
||||
|
||||
Reference in New Issue
Block a user