diff options
author | Travis Howell | 2006-04-19 23:01:31 +0000 |
---|---|---|
committer | Travis Howell | 2006-04-19 23:01:31 +0000 |
commit | 1f01a524212074c07dc10cc8ebae99181f0f0733 (patch) | |
tree | 1204f3d48761ee60b4878ecf19b1ef763f35e812 /engines/simon | |
parent | 718532b386abd9e9e9b744de41fdd1038befe3a5 (diff) | |
download | scummvm-rg350-1f01a524212074c07dc10cc8ebae99181f0f0733.tar.gz scummvm-rg350-1f01a524212074c07dc10cc8ebae99181f0f0733.tar.bz2 scummvm-rg350-1f01a524212074c07dc10cc8ebae99181f0f0733.zip |
The next offset is only adjusted in renderString, when sprite id isn't 1
svn-id: r22042
Diffstat (limited to 'engines/simon')
-rw-r--r-- | engines/simon/charset.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/simon/charset.cpp b/engines/simon/charset.cpp index f0b5cfa040..6f7b8e1c7e 100644 --- a/engines/simon/charset.cpp +++ b/engines/simon/charset.cpp @@ -211,7 +211,8 @@ void SimonEngine::renderString(uint vga_sprite_id, uint color, uint width, uint // after this one. By default, each buffer is only 9000 bytes // long. A two-line string can very well be more than twice // that size! - WRITE_LE_UINT16(p + 8, READ_LE_UINT32(p) + width * height); + if (vga_sprite_id != 1) + WRITE_LE_UINT16(p + 8, READ_LE_UINT32(p) + width * height); } else { WRITE_BE_UINT16(p + 4, height); WRITE_BE_UINT16(p + 6, width); |