mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Merge pull request #291 from Deledrius/plPlate_resizing
Correct voice chat icon resizing.
This commit is contained in:
@ -123,14 +123,14 @@ void plPlate::SetPosition( float x, float y, float z )
|
||||
|
||||
//// SetSize /////////////////////////////////////////////////////////////////
|
||||
|
||||
void plPlate::SetSize( float width, float height, bool adjustByAspectRation )
|
||||
void plPlate::SetSize( float width, float height, bool adjustByAspectRatio )
|
||||
{
|
||||
hsVector3 size;
|
||||
|
||||
width *= fDepth / 1.0f;
|
||||
height *= fDepth / 1.0f;
|
||||
|
||||
size.fX = adjustByAspectRation ? (width * ((float)plPlateManager::Instance().GetPipeHeight() / (float)plPlateManager::Instance().GetPipeWidth())) : width;
|
||||
size.fX = adjustByAspectRatio ? (width * ((float)plPlateManager::Instance().GetPipeHeight() / (float)plPlateManager::Instance().GetPipeWidth())) : width;
|
||||
size.fY = height;
|
||||
size.fZ = 1.0f;
|
||||
|
||||
|
Reference in New Issue
Block a user