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 Kuznetsov <r.kuznetsov@corp.mail.ru>2015-10-27 21:12:24 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2015-11-30 16:26:52 +0300
commit2af4e00348387f8110252ef1fb5b5bfd6bb1a1a4 (patch)
tree37e2026cfe7d13d7940fe2a6670657f94782ec31 /qt/mainwindow.cpp
parent7ff925802ac994577bac43df80d38146035f94a9 (diff)
Fixed alpha-channel in render buffer and location status updating for desktop
Diffstat (limited to 'qt/mainwindow.cpp')
-rw-r--r--qt/mainwindow.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/qt/mainwindow.cpp b/qt/mainwindow.cpp
index 29d59ce96e..1a830914b8 100644
--- a/qt/mainwindow.cpp
+++ b/qt/mainwindow.cpp
@@ -61,7 +61,7 @@ MainWindow::MainWindow() : m_locationService(CreateDesktopLocationService(*this)
format.setMajorVersion(2);
format.setMinorVersion(1);
- format.setAlphaBufferSize(0);
+ format.setAlphaBufferSize(8);
format.setBlueBufferSize(8);
format.setGreenBufferSize(8);
format.setRedBufferSize(8);
@@ -77,7 +77,7 @@ MainWindow::MainWindow() : m_locationService(CreateDesktopLocationService(*this)
m_pDrawWidget->setMouseTracking(true);
setCentralWidget(m_pDrawWidget);
- QObject::connect(m_pDrawWidget, SIGNAL(EngineCreated()), this, SLOT(OnEngineCreated()));
+ QObject::connect(m_pDrawWidget, SIGNAL(BeforeEngineCreation()), this, SLOT(OnBeforeEngineCreation()));
CreateNavigationBar();
CreateSearchBarAndPanel();
@@ -370,14 +370,12 @@ void MainWindow::OnSearchButtonClicked()
}
}
-void MainWindow::OnEngineCreated()
+void MainWindow::OnBeforeEngineCreation()
{
m_pDrawWidget->GetFramework().SetMyPositionModeListener([this](location::EMyPositionMode mode)
{
LocationStateModeChanged(mode);
});
-
- m_pDrawWidget->GetFramework().InvalidateMyPosition();
}
void MainWindow::OnPreferences()