Added viewport size cast

Casting width/height to float to remove compiler warnings.