- clear some warnings
[blender.git] / source / blender / editors / interface / interface_icons.c
index 5ea74cbf40a5014e9538fe5a6060abda8f0fa2a3..63841963c6d14dab5f56efa10d415f60d70ed08b 100644 (file)
@@ -972,7 +972,7 @@ static void icon_draw_size(float x, float y, int icon_id, float aspect, float al
        if(di->type == ICON_TYPE_VECTOR) {
                /* vector icons use the uiBlock transformation, they are not drawn
                with untransformed coordinates like the other icons */
-               di->data.vector.func(x, y, ICON_DEFAULT_HEIGHT, ICON_DEFAULT_HEIGHT, 1.0f); 
+               di->data.vector.func((int)x, (int)y, ICON_DEFAULT_HEIGHT, ICON_DEFAULT_HEIGHT, 1.0f); 
        } 
        else if(di->type == ICON_TYPE_TEXTURE) {
                icon_draw_texture(x, y, w, h, di->data.texture.x, di->data.texture.y,