This assert will not be understood by library users. I suggest to give more descriptive names for `win_w` and `win_h` or duplicate their formulas inside the assert.