DucaRii / csgo_modest

simple csgo cheat base
MIT License
123 stars 19 forks source link

Text drawing with centred X #11

Closed yungclapped closed 5 years ago

yungclapped commented 5 years ago
if ( flags.has_flag( render::fonts::FONT_CENTER_X ) )
    text_pos.x += size.x * 0.5f;

should be

if ( flags.has_flag( render::fonts::FONT_CENTER_X ) )
    text_pos.x -= size.x * 0.5f;

in render.cpp at line 70-71

DucaRii commented 5 years ago

You're absolutely right, feel free to open a pull request.