From 63955d927a6412cb16e711e62547dd82932006f8 Mon Sep 17 00:00:00 2001 From: Jean-Yves Lamoureux Date: Sat, 10 Jun 2006 11:35:18 +0000 Subject: [PATCH] * Updated C++ bindings --- cxx/caca++.cpp | 8 ++++---- cxx/caca++.h | 5 +++-- cxx/cpptest.cpp | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/cxx/caca++.cpp b/cxx/caca++.cpp index d3b845b..2660aef 100644 --- a/cxx/caca++.cpp +++ b/cxx/caca++.cpp @@ -45,9 +45,9 @@ void Caca::Detach() 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() @@ -55,9 +55,9 @@ void Caca::Display() 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() diff --git a/cxx/caca++.h b/cxx/caca++.h index 5133eef..c29f452 100644 --- a/cxx/caca++.h +++ b/cxx/caca++.h @@ -58,9 +58,10 @@ class Caca void Attach(Cucul *cv); void Detach(); - void setDelay(unsigned int); + void setDisplayTime(unsigned int); + void Display(); - unsigned int getRendertime(); + unsigned int getDisplayTime(); unsigned int getWidth(); unsigned int getHeight(); int setTitle(char const *); diff --git a/cxx/cpptest.cpp b/cxx/cpptest.cpp index 8292f4b..8eb0416 100644 --- a/cxx/cpptest.cpp +++ b/cxx/cpptest.cpp @@ -67,7 +67,7 @@ int main(int argc, char *argv[]) return -1; } - kk->setDelay(20000); + kk->setDisplayTime(20000); while(!kk->getEvent(ev.CACA_EVENT_KEY_PRESS, &ev, 0)) {