KL-Corporation / Koponen-Dating-Simulator

Flagship Product of KL Corporation
0 stars 0 forks source link

Inventory corner rounding changed after pygame upgrade #102

Closed NALStudio closed 2 weeks ago

NALStudio commented 2 weeks ago

Original KDS Inventory: image

After upgrade: image

NALStudio commented 2 weeks ago

Fixed: image

NALStudio commented 2 weeks ago

The reason this happened was that we didn't have any border radius and pygame originally handled the corners incorrectly (didn't take line width into account)

Pygame fixed its incorrect handling which made our inventory rendering to be incorrect.

We fix this by rounding the corners half width. We cannot pass in a float so we have to round the value. The results seem to look the same even though the value is rounded.