Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Sorokin <sorok-roma@yandex.ru>2014-07-29 12:30:41 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:22:27 +0300
commit1b2aeebec83a13dcdb8faf308d82ad1c0862cb90 (patch)
treed0edfb954579389d0a2106291a35f7fc806f287f /drape_head/testing_engine.cpp
parent5ba211579142c460139a70f47756a21471216a78 (diff)
new tests
Diffstat (limited to 'drape_head/testing_engine.cpp')
-rw-r--r--drape_head/testing_engine.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/drape_head/testing_engine.cpp b/drape_head/testing_engine.cpp
index 61200ea6fc..a504cb41f8 100644
--- a/drape_head/testing_engine.cpp
+++ b/drape_head/testing_engine.cpp
@@ -397,8 +397,8 @@ void TestingEngine::DrawImpl()
for(int i = 16; i >= 0 ; --i)
{
float r = 200.0f;
- float x = r * cos((float)i/32.0f*2.0f*M_PI) + 800;
- float y = r * sin((float)i/32.0f*2.0f*M_PI) + 450;
+ float x = r * cos((float)i / 32.0f * 2.0f * M_PI) + 800.0f;
+ float y = r * sin((float)i / 32.0f * 2.0f * M_PI) + 450.0f;
path.push_back(m2::PointF(x, y));
}
path.push_back(m2::PointF(1600, 450));
@@ -406,9 +406,9 @@ void TestingEngine::DrawImpl()
PathTextViewParams params3;
params3.m_featureID = FeatureID(23, 78);
params3.m_depth = -10.0f;
- params3.m_OffsetEnd = 4000.0f;
+ params3.m_OffsetEnd = 600.0f;
params3.m_OffsetStart = 100.0f;
- params3.m_Text = "√2+√3=?----------------+";
+ params3.m_Text = "√2+√3=?-fghjkfghjf---_________----+";
params3.m_TextFont = params.m_primaryTextFont;
PathTextShape sh3(path, params3);
sh3.Draw(m_batcher.GetRefPointer(), m_textures.GetRefPointer());