fix compiling error cause by using 'fmaxf'.
only using std::max for window.
Merge pull request #5446 from Dhilan007/develop_movePDC

fix compiling error cause by using 'fmaxf'.