Added float cast to viewport size

Added float cast to remove compiler warnings.
gl2 size cast
Merge pull request #22 from devnought/cwarn

Added float cast to viewport size