clean up math varsize complaints

This commit is contained in:
AzaezelX 2023-04-27 16:10:04 -05:00
parent 1230d0d280
commit 0ce2da3a23
30 changed files with 61 additions and 56 deletions

View file

@ -902,7 +902,7 @@ void GuiInspectorTypeCommand::_setCommand( GuiButtonCtrl *ctrl, StringTableEntry
S32 written = dSprintf( szBuffer, len, "%s(\"", mTextEditorCommand );
expandEscape(szBuffer.address() + written, command);
written = strlen(szBuffer);
written = (S32)strlen(szBuffer);
dSprintf( szBuffer.address() + written, len - written, "\", \"%d.apply\", %d.getRoot());", getId(), getId() );
ctrl->setField( "Command", szBuffer );

View file

@ -648,17 +648,17 @@ void GuiConvexEditorCtrl::on3DMouseDragged(const Gui3DMouseEvent & event)
F32 scalar = 1;
mConvexSEL->mSurfaceUVs[mFaceSEL].scale += (Point2F(scale.x, scale.y) * scalar);
if (mConvexSEL->mSurfaceUVs[mFaceSEL].scale.x < 0.01)
mConvexSEL->mSurfaceUVs[mFaceSEL].scale.x = 0.01;
if (mConvexSEL->mSurfaceUVs[mFaceSEL].scale.x < 0.01f)
mConvexSEL->mSurfaceUVs[mFaceSEL].scale.x = 0.01f;
if (mConvexSEL->mSurfaceUVs[mFaceSEL].scale.y < 0.01)
mConvexSEL->mSurfaceUVs[mFaceSEL].scale.y = 0.01;
if (mConvexSEL->mSurfaceUVs[mFaceSEL].scale.y < 0.01f)
mConvexSEL->mSurfaceUVs[mFaceSEL].scale.y = 0.01f;
if (mConvexSEL->mSurfaceUVs[mFaceSEL].scale.x > 100)
mConvexSEL->mSurfaceUVs[mFaceSEL].scale.x = 100;
if (mConvexSEL->mSurfaceUVs[mFaceSEL].scale.x > 100.0f)
mConvexSEL->mSurfaceUVs[mFaceSEL].scale.x = 100.0f;
if (mConvexSEL->mSurfaceUVs[mFaceSEL].scale.y > 100)
mConvexSEL->mSurfaceUVs[mFaceSEL].scale.y = 100;
if (mConvexSEL->mSurfaceUVs[mFaceSEL].scale.y > 100.0f)
mConvexSEL->mSurfaceUVs[mFaceSEL].scale.y = 100.0f;
Point2F test = mConvexSEL->mSurfaceUVs[mFaceSEL].scale;
mConvexSEL->setMaskBits( ConvexShape::UpdateMask );