diff options
author | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
commit | ce28e056c20bf2723f565bbf464b87781ec248a2 (patch) | |
tree | ef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/newview/lllcd.cpp | |
parent | Second Life viewer sources 1.19.1.4b (diff) | |
download | meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2 meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz |
Second Life viewer sources 1.20.2
Diffstat (limited to 'linden/indra/newview/lllcd.cpp')
-rw-r--r-- | linden/indra/newview/lllcd.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/linden/indra/newview/lllcd.cpp b/linden/indra/newview/lllcd.cpp index f9660b5..6574f6f 100644 --- a/linden/indra/newview/lllcd.cpp +++ b/linden/indra/newview/lllcd.cpp | |||
@@ -37,7 +37,7 @@ | |||
37 | #include "llstatusbar.h" | 37 | #include "llstatusbar.h" |
38 | #include "llviewerregion.h" | 38 | #include "llviewerregion.h" |
39 | #include "llviewerstats.h" | 39 | #include "llviewerstats.h" |
40 | #include "llvieweruictrlfactory.h" | 40 | #include "lluictrlfactory.h" |
41 | #include "llviewercontrol.h" | 41 | #include "llviewercontrol.h" |
42 | 42 | ||
43 | #if LL_LCD_COMPILE | 43 | #if LL_LCD_COMPILE |
@@ -63,7 +63,7 @@ void CreateLCDDebugWindows() | |||
63 | { | 63 | { |
64 | // load up the text so we are sure it's externalized and localized correctly. | 64 | // load up the text so we are sure it's externalized and localized correctly. |
65 | bogus = new LLPanel(); | 65 | bogus = new LLPanel(); |
66 | gUICtrlFactory->buildPanel(bogus, "lcd_text.xml"); | 66 | LLUICtrlFactory::getInstance()->buildPanel(bogus, "lcd_text.xml"); |
67 | 67 | ||
68 | LLLCDPageGroup *pageGroup = NULL; | 68 | LLLCDPageGroup *pageGroup = NULL; |
69 | pageGroup = new llDefaultPageGroup(gLcdScreen->mLCD, LLLCD::kLCDDefault, gLcdScreen->mSLIcon); | 69 | pageGroup = new llDefaultPageGroup(gLcdScreen->mLCD, LLLCD::kLCDDefault, gLcdScreen->mSLIcon); |
@@ -212,14 +212,11 @@ void LLDebugPageGroup::UpdateDetails() | |||
212 | ping = llformat("%d", gStatusBar->mRegionDetails.mPing); | 212 | ping = llformat("%d", gStatusBar->mRegionDetails.mPing); |
213 | } | 213 | } |
214 | 214 | ||
215 | if (gViewerStats) | 215 | packetLoss = llformat("%.1f%%", LLViewerStats::getInstance()->mPacketsLostPercentStat.getCurrent()); |
216 | { | 216 | simfps = llformat("%d", (int)LLViewerStats::getInstance()->mSimFPS.getCurrent()); |
217 | packetLoss = llformat("%.1f%%", gViewerStats->mPacketsLostPercentStat.getCurrent()); | 217 | fps = llformat("%.1f%", LLViewerStats::getInstance()->mFPSStat.getMeanPerSec()); |
218 | simfps = llformat("%d", (int)gViewerStats->mSimFPS.getCurrent()); | 218 | packetsIn = llformat("%d", (int)LLViewerStats::getInstance()->mSimInPPS.getCurrent()); |
219 | fps = llformat("%.1f%", gViewerStats->mFPSStat.getMeanPerSec()); | 219 | packetsOut = llformat("%d", (int)LLViewerStats::getInstance()->mSimOutPPS.getCurrent()); |
220 | packetsIn = llformat("%d", (int)gViewerStats->mSimInPPS.getCurrent()); | ||
221 | packetsOut = llformat("%d", (int)gViewerStats->mSimOutPPS.getCurrent()); | ||
222 | } | ||
223 | 220 | ||
224 | // fps | 221 | // fps |
225 | mLCD->SetText(mPageArray[0].mDisplayItemArray[0], (LPCTSTR)(utf8str_to_utf16str(fps).c_str())); | 222 | mLCD->SetText(mPageArray[0].mDisplayItemArray[0], (LPCTSTR)(utf8str_to_utf16str(fps).c_str())); |