Change winRows and winCols from uint16 to int