Merge branch 'animesh' of https://github.com/Lirusaito/SingularityViewer.git into animesh
# Conflicts: # indra/newview/llspatialpartition.cpp # indra/newview/llvoavatar.cpp # indra/newview/llvovolume.cpp
This commit is contained in:
@@ -656,7 +656,7 @@ public:
|
||||
}
|
||||
}
|
||||
}
|
||||
for(std::set<LLUUID>::iterator it = gObjectList.mDeadObjects.begin();it!=gObjectList.mDeadObjects.end();++it)
|
||||
for(auto it = gObjectList.mDeadObjects.begin();it!=gObjectList.mDeadObjects.end();++it)
|
||||
{
|
||||
LLViewerObject *obj = gObjectList.findObject(*it);
|
||||
if(obj && obj->isAvatar())
|
||||
@@ -1640,6 +1640,17 @@ std::string LLViewerWindow::translateString(const char* tag,
|
||||
return LLTrans::getString( std::string(tag), args_copy);
|
||||
}
|
||||
|
||||
static const std::string font_dir()
|
||||
{
|
||||
return gDirUtilp->getExecutableDir()
|
||||
#if LL_DARWIN
|
||||
+ "../Resources/"
|
||||
#elif !defined(LL_WINDOWS)
|
||||
+ "../"
|
||||
#endif
|
||||
;
|
||||
}
|
||||
|
||||
//
|
||||
// Classes
|
||||
//
|
||||
@@ -1808,7 +1819,7 @@ LLViewerWindow::LLViewerWindow(
|
||||
LLFontGL::initClass( gSavedSettings.getF32("FontScreenDPI"),
|
||||
mDisplayScale.mV[VX],
|
||||
mDisplayScale.mV[VY],
|
||||
gDirUtilp->getAppRODataDir());
|
||||
font_dir());
|
||||
}
|
||||
// Create container for all sub-views
|
||||
LLView::Params rvp;
|
||||
@@ -5497,7 +5508,8 @@ void LLViewerWindow::initFonts(F32 zoom_factor)
|
||||
LLFontGL::initClass( gSavedSettings.getF32("FontScreenDPI"),
|
||||
mDisplayScale.mV[VX] * zoom_factor,
|
||||
mDisplayScale.mV[VY] * zoom_factor,
|
||||
gDirUtilp->getAppRODataDir());
|
||||
font_dir());
|
||||
// Force font reloads, which can be very slow
|
||||
LLFontGL::loadDefaultFonts();
|
||||
}
|
||||
void LLViewerWindow::toggleFullscreen(BOOL show_progress)
|
||||
|
||||
Reference in New Issue
Block a user