@@ -45,9 +45,9 @@ void Caca::Detach() | |||||
caca_free_display(dp); | caca_free_display(dp); | ||||
} | } | ||||
void Caca::setDelay(unsigned int d) | |||||
void Caca::setDisplayTime(unsigned int d) | |||||
{ | { | ||||
caca_set_delay(dp, d); | |||||
caca_set_display_time(dp, d); | |||||
} | } | ||||
void Caca::Display() | void Caca::Display() | ||||
@@ -55,9 +55,9 @@ void Caca::Display() | |||||
caca_refresh_display(dp); | caca_refresh_display(dp); | ||||
} | } | ||||
unsigned int Caca::getRendertime() | |||||
unsigned int Caca::getDisplayTime() | |||||
{ | { | ||||
return caca_get_rendertime(dp); | |||||
return caca_get_display_time(dp); | |||||
} | } | ||||
unsigned int Caca::getWidth() | unsigned int Caca::getWidth() | ||||
@@ -58,9 +58,10 @@ class Caca | |||||
void Attach(Cucul *cv); | void Attach(Cucul *cv); | ||||
void Detach(); | void Detach(); | ||||
void setDelay(unsigned int); | |||||
void setDisplayTime(unsigned int); | |||||
void Display(); | void Display(); | ||||
unsigned int getRendertime(); | |||||
unsigned int getDisplayTime(); | |||||
unsigned int getWidth(); | unsigned int getWidth(); | ||||
unsigned int getHeight(); | unsigned int getHeight(); | ||||
int setTitle(char const *); | int setTitle(char const *); | ||||
@@ -67,7 +67,7 @@ int main(int argc, char *argv[]) | |||||
return -1; | return -1; | ||||
} | } | ||||
kk->setDelay(20000); | |||||
kk->setDisplayTime(20000); | |||||
while(!kk->getEvent(ev.CACA_EVENT_KEY_PRESS, &ev, 0)) { | while(!kk->getEvent(ev.CACA_EVENT_KEY_PRESS, &ev, 0)) { | ||||