Sfoglia il codice sorgente

* Implemented putChar() and updated getChar()'s prototype.

tags/v0.99.beta14
Sam Hocevar sam 18 anni fa
parent
commit
cdd9d822df
2 ha cambiato i file con 7 aggiunte e 2 eliminazioni
  1. +6
    -1
      cxx/cucul++.cpp
  2. +1
    -1
      cxx/cucul++.h

+ 6
- 1
cxx/cucul++.cpp Vedi File

@@ -97,11 +97,16 @@ int Cucul::setColorARGB(unsigned int f, unsigned int b)
return cucul_set_color_argb(cv, f, b);
}

void Cucul::putChar(int x, int y, char ch)
void Cucul::putChar(int x, int y, unsigned long int ch)
{
cucul_putchar(cv, x, y, ch);
}

unsigned long int Cucul::getChar(int x, int y)
{
return cucul_getchar(cv, x, y);
}

void Cucul::putStr(int x, int y, char *str)
{
cucul_putstr(cv, x, y, str);


+ 1
- 1
cxx/cucul++.h Vedi File

@@ -125,7 +125,7 @@ class Cucul
int setColorANSI(unsigned char f, unsigned char b);
int setColorARGB(unsigned int f, unsigned int b);
void Printf(int x , int y , char const * format,...);
void putChar(int x, int y, char ch);
void putChar(int x, int y, unsigned long int ch);
unsigned long int getChar(cucul_canvas_t *, int, int);
void putStr(int x, int y, char *str);
void Clear(void);


Caricamento…
Annulla
Salva