Merge branch 'Plasma/5.2'

This commit is contained in:
Martin Gräßlin 2015-01-13 08:46:54 +01:00
commit 32cea73843
2 changed files with 10 additions and 5 deletions

View file

@ -197,7 +197,12 @@ void StartupFeedbackEffect::paintScreen(int mask, QRegion region, ScreenPaintDat
} }
} else { } else {
useShader = true; useShader = true;
ShaderManager::instance()->pushShader(ShaderManager::SimpleShader); auto s = ShaderManager::instance()->pushShader(ShaderTrait::MapTexture);
QMatrix4x4 mvp;
const QSize size = effects->virtualScreenSize();
mvp.ortho(0, size.width(), size.height(), 0, 0, 65535);
mvp.translate(m_currentGeometry.x(), m_currentGeometry.y());
s->setUniform(GLShader::ModelViewProjectionMatrix, mvp);
} }
texture->render(m_currentGeometry, m_currentGeometry); texture->render(m_currentGeometry, m_currentGeometry);
if (useShader) { if (useShader) {

View file

@ -312,10 +312,10 @@ void Application::registerDBusService()
void Application::setupTranslator() void Application::setupTranslator()
{ {
QTranslator qtTranslator; QTranslator *qtTranslator = new QTranslator(qApp);
qtTranslator.load("qt_" + QLocale::system().name(), qtTranslator->load("qt_" + QLocale::system().name(),
QLibraryInfo::location(QLibraryInfo::TranslationsPath)); QLibraryInfo::location(QLibraryInfo::TranslationsPath));
installTranslator(&qtTranslator); installTranslator(qtTranslator);
} }
void Application::setupMalloc() void Application::setupMalloc()