fixes for menu and game strings

git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@113 4df4b0f3-56ce-47cb-b001-ed939b7d65a6
This commit is contained in:
albertzeyer
2009-07-22 23:46:59 +00:00
parent 34e097f01b
commit 6ff942e989
3 changed files with 35 additions and 37 deletions

View File

@@ -300,6 +300,7 @@ unsigned int xstart,ystart;
void CGraphics::drawCharacter(int x, int y, int f)
{
assert(f >= 0 && f < 256);
unsigned char xa,ya;
for(ya=0;ya<8;ya++)
@@ -596,12 +597,11 @@ int c;
void CGraphics::drawFont(const std::string& text, int xoff, int yoff, int highlight)
{
unsigned int i,x=xoff,y;
int c;
y = yoff;
for(i=0;i<text.size();i++)
{
c = text[i];
unsigned char c = text[i];
if (c!=13)
{
if (highlight) c|=128;