History

Merge branch 'master' of https://github.com/worklist/hifi

Philip Rosedale committed 12 years ago

Commit 729d3cf2 parents 21a15cf c535d0128 files · +234 −417Browse files

Showing the changes to interface/src/Application.cpp (1 of 28 files). Show all

Unified · Split

interface/src/Application.cpp+11−7
@@ -293,9 +293,6 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 292 unmodified lines
293293 // set the account manager's root URL and trigger a login request if we don't have the access token
294294 accountManager.setAuthURL(DEFAULT_NODE_AUTH_URL);
295295 UserActivityLogger::getInstance().launch(applicationVersion());
296−
297− // grab the location manager instance early so it lives in our thread
298− LocationManager::getInstance();
299296
300297 // once the event loop has started, check and signal for an access token
301298 QMetaObject::invokeMethod(&accountManager, "checkAndSignalForAccessToken", Qt::QueuedConnection);
@@ -1450,6 +1447,14 @@ void Application::checkBandwidthMeterClick() { · 1148 unmodified lines
14501447 }
14511448
14521449 void Application::setFullscreen(bool fullscreen) {
1450+ if (Menu::getInstance()->isOptionChecked(MenuOption::EnableVRMode)) {
1451+ if (fullscreen) {
1452+ // Menu show() after hide() doesn't work with Rift VR display so set height instead.
1453+ _window->menuBar()->setMaximumHeight(0);
1454+ } else {
1455+ _window->menuBar()->setMaximumHeight(QWIDGETSIZE_MAX);
1456+ }
1457+ }
14531458 _window->setWindowState(fullscreen ? (_window->windowState() | Qt::WindowFullScreen) :
14541459 (_window->windowState() & ~Qt::WindowFullScreen));
14551460 }
@@ -2730,7 +2735,8 @@ void Application::setupWorldLight() { · 1274 unmodified lines
27302735 QImage Application::renderAvatarBillboard() {
27312736 _textureCache.getPrimaryFramebufferObject()->bind();
27322737
2733− glDisable(GL_BLEND);
2738+ // the "glow" here causes an alpha of one
2739+ Glower glower;
27342740
27352741 const int BILLBOARD_SIZE = 64;
27362742 renderRearViewMirror(QRect(0, _glWidget->getDeviceHeight() - BILLBOARD_SIZE, BILLBOARD_SIZE, BILLBOARD_SIZE), true);
@@ -2738,8 +2744,6 @@ QImage Application::renderAvatarBillboard() { · 1 unmodified line
27382744 QImage image(BILLBOARD_SIZE, BILLBOARD_SIZE, QImage::Format_ARGB32);
27392745 glReadPixels(0, 0, BILLBOARD_SIZE, BILLBOARD_SIZE, GL_BGRA, GL_UNSIGNED_BYTE, image.bits());
27402746
2741− glEnable(GL_BLEND);
2742−
27432747 _textureCache.getPrimaryFramebufferObject()->release();
27442748
27452749 return image;
@@ -4164,7 +4168,7 @@ void Application::takeSnapshot() { · 1418 unmodified lines
41644168 player->setMedia(QUrl::fromLocalFile(inf.absoluteFilePath()));
41654169 player->play();
41664170
4167− QString fileName = Snapshot::saveSnapshot(_glWidget, _myAvatar);
4171+ QString fileName = Snapshot::saveSnapshot();
41684172
41694173 AccountManager& accountManager = AccountManager::getInstance();
41704174 if (!accountManager.isLoggedIn()) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t