That's not right at all. If you write a game in C++/OpenGL you can share >95% code across Win7, OSX, Linux, Android, and iOS. Even if you use DirectX it's not hard to write an OpenGL wrapper.
More impressively if you use C# you can release cross platform using mono.
More impressively if you use C# you can release cross platform using mono.