Commits

Jason MacWilliams  committed dd78a0b

add explicit casting in guielement::ondraw so vs doesn't complain

  • Participants
  • Parent commits fa96a1e

Comments (0)

Files changed (1)

File MAX/GUI/GuiElement.cpp

 /*virtual*/void GuiElement::onDraw() const {
   // draw me
   GuiSystem::GetSingleton()->getGuiRenderer()->drawQuad(
-    texRect.x0, texRect.y0, rect.x0, rect.y0,
-    texRect.x1, texRect.y0, rect.x0+rect.x1, rect.y0,
-    texRect.x1, texRect.y1, rect.x0+rect.x1, rect.y0+rect.y1,
-    texRect.x0, texRect.y1, rect.x0, rect.y0+rect.y1
+    texRect.x0, texRect.y0, static_cast<float>(rect.x0),         static_cast<float>(rect.y0),
+    texRect.x1, texRect.y0, static_cast<float>(rect.x0+rect.x1), static_cast<float>(rect.y0),
+    texRect.x1, texRect.y1, static_cast<float>(rect.x0+rect.x1), static_cast<float>(rect.y0+rect.y1),
+    texRect.x0, texRect.y1, static_cast<float>(rect.x0),         static_cast<float>(rect.y0+rect.y1)
   );
 
   // draw my children