diff --git a/Extensions/GUI/Source/GUI.cpp b/Extensions/GUI/Source/GUI.cpp index aa9a2a1..eab4f80 100644 --- a/Extensions/GUI/Source/GUI.cpp +++ b/Extensions/GUI/Source/GUI.cpp @@ -531,23 +531,23 @@ namespace Horde3DGUI texcoords[3] = quad->texcoords[3] * (1.0f - clippedbottom) + quad->texcoords[1] * clippedbottom; // Create vertex data float vertices[20]; - vertices[0] = (float)clippedrect.lowerright[0] / width * 2.0 - 1; - vertices[1] = -(float)clippedrect.upperleft[1] / height * 2.0 + 1; + vertices[0] = (float)clippedrect.lowerright[0] / width * 2.0f - 1; + vertices[1] = -(float)clippedrect.upperleft[1] / height * 2.0f + 1; vertices[2] = 0.0f; vertices[3] = texcoords[2]; vertices[4] = texcoords[1]; - vertices[5] = (float)clippedrect.upperleft[0] / width * 2.0 - 1; - vertices[6] = -(float)clippedrect.upperleft[1] / height * 2.0 + 1; + vertices[5] = (float)clippedrect.upperleft[0] / width * 2.0f - 1; + vertices[6] = -(float)clippedrect.upperleft[1] / height * 2.0f + 1; vertices[7] = 0.0f; vertices[8] = texcoords[0]; vertices[9] = texcoords[1]; - vertices[10] = (float)clippedrect.upperleft[0] / width * 2.0 - 1; - vertices[11] = -(float)clippedrect.lowerright[1] / height * 2.0 + 1; + vertices[10] = (float)clippedrect.upperleft[0] / width * 2.0f - 1; + vertices[11] = -(float)clippedrect.lowerright[1] / height * 2.0f + 1; vertices[12] = 0.0f; vertices[13] = texcoords[0]; vertices[14] = texcoords[3]; - vertices[15] = (float)clippedrect.lowerright[0] / width * 2.0 - 1; - vertices[16] = -(float)clippedrect.lowerright[1] / height * 2.0 + 1; + vertices[15] = (float)clippedrect.lowerright[0] / width * 2.0f - 1; + vertices[16] = -(float)clippedrect.lowerright[1] / height * 2.0f + 1; vertices[17] = 0.0f; vertices[18] = texcoords[2]; vertices[19] = texcoords[3]; diff --git a/Extensions/GUI/Source/GUIElement.cpp b/Extensions/GUI/Source/GUIElement.cpp index c51f00d..0c48dbc 100644 --- a/Extensions/GUI/Source/GUIElement.cpp +++ b/Extensions/GUI/Source/GUIElement.cpp @@ -163,7 +163,7 @@ namespace Horde3DGUI actionid = value; return; case GUIElementParam::ShowBackgroundI: - showbackground = value; + showbackground = value != 0; getGUI()->setDirty(true); return; default: