Fix for windows 8.1 transparency bug.

Here is a bug fix for issue #303

It's my first pull request so be kind.