Skip to content

Commit

Permalink
messages background fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooquer committed Jul 15, 2023
1 parent 9310f72 commit ef7df11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions d2gl/src/modules/hd_text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ bool HDText::drawText(const wchar_t* str, int x, int y, uint32_t color, uint32_t

if (m_text_size == 13 && (x == 15 || (*d2::screen_shift == SCREENPANEL_LEFT && x == App.game.size.x / 2 + 15))) {
auto size = font->getTextSize(str);
size.y = size.y / 2;
const glm::vec2 padding = { 4.0f, 2.0f };
glm::vec2 back_pos = { pos.x, pos.y - size.y };

Expand Down

0 comments on commit ef7df11

Please sign in to comment.