# HG changeset patch # User Darkvater # Date 1160648085 0 # Node ID faa853fcd3d4141ba78cdaa859d826828fa122a3 # Parent 1625f49f708d98c491909e0fd5afa31fbe5b226b (svn r6743) -Fix (r6462): When determining string length for GetStringBoundingBox SETX and SETXY parameters were wrongly accounted for. The identifier itself was taken not the amount. diff -r 1625f49f708d -r faa853fcd3d4 gfx.c --- a/gfx.c Thu Oct 12 07:42:37 2006 +0000 +++ b/gfx.c Thu Oct 12 10:14:45 2006 +0000 @@ -559,10 +559,10 @@ br.width += GetCharacterWidth(size, c); } else { switch (c) { - case ASCII_SETX: br.width += (byte)*str++; break; + case ASCII_SETX: br.width += (byte)*++str; break; case ASCII_SETXY: - br.width += (byte)*str++; - br.height += (byte)*str++; + br.width += (byte)*++str; + br.height += (byte)*++str; break; case ASCII_TINYFONT: size = FS_SMALL; break; case ASCII_BIGFONT: size = FS_LARGE; break;