forked from jaildesigner-jailgames/jaildoctors_dilemma
Arreglats els endings
This commit is contained in:
@@ -136,7 +136,7 @@ void Text::write(int x, int y, const std::string &text, int kerning, int lenght)
|
||||
auto index = static_cast<int>(text[i]);
|
||||
sprite_->setClip(offset_[index].x, offset_[index].y, box_width_, box_height_);
|
||||
sprite_->setX(x + shift);
|
||||
sprite_->render();
|
||||
sprite_->render(1, 15);
|
||||
shift += offset_[static_cast<int>(text[i])].w + kerning;
|
||||
}
|
||||
}
|
||||
@@ -242,7 +242,8 @@ void Text::writeDX(Uint8 flags, int x, int y, const std::string &text, int kerni
|
||||
}
|
||||
else
|
||||
{
|
||||
write(x, y, text, kerning, lenght);
|
||||
writeColored(x, y, text, textColor, kerning, lenght);
|
||||
//write(x, y, text, kerning, lenght);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user