mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
SCUMM: SMUSH: fix regression in hebrew text
This commit is contained in:
committed by
Filippos Karapetis
parent
f76d858e6a
commit
73e8a49464
@@ -200,9 +200,8 @@ int SmushFont::draw2byte(byte *buffer, int dst_width, int x, int y, int idx) {
|
||||
|
||||
void SmushFont::drawSubstring(const char *str, uint numBytesMax, byte *buffer, int dst_width, int x, int y) {
|
||||
if (_vm->_language == Common::HE_ISR) {
|
||||
for (int i = strlen(str); i >= 0 && numBytesMax; i--) {
|
||||
x += drawChar(buffer, dst_width, x, y, str[i]);
|
||||
--numBytesMax;
|
||||
for (int i = numBytesMax; i > 0; i--) {
|
||||
x += drawChar(buffer, dst_width, x, y, str[i - 1]);
|
||||
}
|
||||
} else {
|
||||
for (int i = 0; str[i] != 0 && numBytesMax; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user