| 1801 | } |
| 1802 | |
| 1803 | void PrintSBookStr(int x, int y, BOOL cjustflag, char *pszStr, char col) |
| 1804 | { |
| 1805 | BYTE c; |
| 1806 | char *tmp; |
| 1807 | int screen_x, line, sx; |
| 1808 | |
| 1809 | sx = x + RIGHT_PANEL + 120; |
| 1810 | line = 0; |
| 1811 | if (cjustflag) { |
| 1812 | screen_x = 0; |
| 1813 | tmp = pszStr; |
| 1814 | while (*tmp) { |
| 1815 | c = gbFontTransTbl[(BYTE)*tmp++]; |
| 1816 | screen_x += fontkern[fontframe[c]] + 1; |
| 1817 | } |
| 1818 | if (screen_x < 222) |
| 1819 | line = (222 - screen_x) >> 1; |
| 1820 | sx += line; |
| 1821 | } |
| 1822 | while (*pszStr) { |
| 1823 | c = gbFontTransTbl[(BYTE)*pszStr++]; |
| 1824 | c = fontframe[c]; |
| 1825 | line += fontkern[c] + 1; |
| 1826 | if (c) { |
| 1827 | if (line <= 222) |
| 1828 | PrintChar(sx, y, c, col); |
| 1829 | } |
| 1830 | sx += fontkern[c] + 1; |
| 1831 | } |
| 1832 | } |
| 1833 | |
| 1834 | void CheckSBook() |
| 1835 | { |
no test coverage detected