Skip to content

Incorrect font size return #12

@Urnguk

Description

@Urnguk

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions