Esempio n. 1
0
/*static*/ int BIOS::LCD::Print (int x, int y, unsigned short clrf, unsigned short clrb, const char *str)
{
	/*
#ifdef _WIN32
	_ASSERT( (int)str > 0x10000 );
	const char *xx = str;
	xx=xx;
#endif*/
	if (!str || !*str)
		return 0;
	int nAux = 0;
	int _x = x;
	for (;*str; str++)
	{
		if (*str == '\n')
		{
			x = _x;
			y += 16;
			continue;
		}
		int nW = _DrawChar(x, y, clrf, clrb, *str);
		x += nW;
		nAux += nW;
	}
	return nAux;
}
Esempio n. 2
0
File: bios.cpp Progetto: phoyd/DS203
int BIOS::LCD::Print(int x, int y, unsigned short clrf, unsigned short clrb,
                     char *str) {
  if (!str || !*str) return 0;
  int nAux = 0;
  int _x = x;
  for (; *str; str++) {
    if (*str == '\n') {
      x = _x;
      y += 16;
      continue;
    }
    int nW = _DrawChar(x, y, clrf, clrb, *str);
    x += nW;
    nAux += nW;
  }
  return nAux;
}