Skip to content
Snippets Groups Projects
Commit 11d6d83b authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Make profile texture floater resizable

parent 8aa26e71
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
...@@ -115,7 +115,7 @@ void LLFloaterProfileTexture::updateDimensions() ...@@ -115,7 +115,7 @@ void LLFloaterProfileTexture::updateDimensions()
S32 width = old_floater_rect.getWidth() - old_image_rect.getWidth() + mLastWidth; S32 width = old_floater_rect.getWidth() - old_image_rect.getWidth() + mLastWidth;
S32 height = old_floater_rect.getHeight() - old_image_rect.getHeight() + mLastHeight; S32 height = old_floater_rect.getHeight() - old_image_rect.getHeight() + mLastHeight;
const F32 MAX_DIMENTIONS = 512; // most profiles are supposed to be 256x256 const F32 MAX_DIMENTIONS = 1024; // most profiles are supposed to be 256x256
S32 biggest_dim = llmax(width, height); S32 biggest_dim = llmax(width, height);
if (biggest_dim > MAX_DIMENTIONS) if (biggest_dim > MAX_DIMENTIONS)
......
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<floater <floater
can_resize="false" can_resize="true"
show_title="false" show_title="false"
can_minimize="false" can_minimize="false"
can_close="false" can_close="false"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment