imp5imp5 / dasbox

BSD 3-Clause "New" or "Revised" License
35 stars 14 forks source link

Incorrect font size return #12

Open Urnguk opened 2 years ago

Urnguk commented 2 years ago

https://github.com/imp5imp5/dasbox/blob/main/src/graphics.cpp In line 484: return int(current_font_size + 0.5f);

Current_font_size is already integer, therefore in case of negative sizes an increased value will be returned. This can be fixed with changing the line into: return current_font_size;