Fix screen tearing bug. AH-137

Replaces AdjustWindowRect with AdjustWindowRectEx.