summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterprofiletexture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llfloaterprofiletexture.cpp')
-rw-r--r--indra/newview/llfloaterprofiletexture.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/indra/newview/llfloaterprofiletexture.cpp b/indra/newview/llfloaterprofiletexture.cpp
index 425f0c1687..785de0df0c 100644
--- a/indra/newview/llfloaterprofiletexture.cpp
+++ b/indra/newview/llfloaterprofiletexture.cpp
@@ -41,7 +41,7 @@
LLFloaterProfileTexture::LLFloaterProfileTexture(LLView* owner)
: LLFloater(LLSD())
- , mUpdateDimensions(TRUE)
+ , mUpdateDimensions(true)
, mLastHeight(0)
, mLastWidth(0)
, mImage(NULL)
@@ -99,7 +99,7 @@ void LLFloaterProfileTexture::updateDimensions()
{
mAssetStatus = LLPreview::PREVIEW_ASSET_LOADED;
// Asset has been fully loaded
- mUpdateDimensions = TRUE;
+ mUpdateDimensions = true;
}
mLastHeight = img_height;
@@ -108,7 +108,7 @@ void LLFloaterProfileTexture::updateDimensions()
// Reshape the floater only when required
if (mUpdateDimensions)
{
- mUpdateDimensions = FALSE;
+ mUpdateDimensions = false;
LLRect old_floater_rect = getRect();
LLRect old_image_rect = mProfileIcon->getRect();
@@ -128,7 +128,7 @@ void LLFloaterProfileTexture::updateDimensions()
//reshape floater
reshape(width, height);
- gFloaterView->adjustToFitScreen(this, FALSE);
+ gFloaterView->adjustToFitScreen(this, false);
}
}
@@ -180,7 +180,7 @@ void LLFloaterProfileTexture::loadAsset(const LLUUID &image_id)
if ((mImage->getFullWidth() * mImage->getFullHeight()) == 0)
{
mImage->setLoadedCallback(LLFloaterProfileTexture::onTextureLoaded,
- 0, TRUE, FALSE, new LLHandle<LLFloater>(getHandle()), &mCallbackTextureList);
+ 0, true, false, new LLHandle<LLFloater>(getHandle()), &mCallbackTextureList);
mImage->setBoostLevel(LLGLTexture::BOOST_PREVIEW);
mAssetStatus = LLPreview::PREVIEW_ASSET_LOADING;
@@ -190,18 +190,18 @@ void LLFloaterProfileTexture::loadAsset(const LLUUID &image_id)
mAssetStatus = LLPreview::PREVIEW_ASSET_LOADED;
}
- mUpdateDimensions = TRUE;
+ mUpdateDimensions = true;
updateDimensions();
}
// static
void LLFloaterProfileTexture::onTextureLoaded(
- BOOL success,
+ bool success,
LLViewerFetchedTexture *src_vi,
LLImageRaw* src,
LLImageRaw* aux_src,
S32 discard_level,
- BOOL final,
+ bool final,
void* userdata)
{
LLHandle<LLFloater>* handle = (LLHandle<LLFloater>*)userdata;
@@ -211,7 +211,7 @@ void LLFloaterProfileTexture::onTextureLoaded(
LLFloaterProfileTexture* floater = static_cast<LLFloaterProfileTexture*>(handle->get());
if (floater && success)
{
- floater->mUpdateDimensions = TRUE;
+ floater->mUpdateDimensions = true;
floater->updateDimensions();
}
}