From 0c87e5978a188540b6c51db1be0ed35908f62f94 Mon Sep 17 00:00:00 2001 From: Jean-Yves Lamoureux Date: Sun, 5 Nov 2006 17:27:37 +0000 Subject: [PATCH] * Fixed c++ example --- cxx/cxxtest.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cxx/cxxtest.cpp b/cxx/cxxtest.cpp index c3c57b5..022f97d 100644 --- a/cxx/cxxtest.cpp +++ b/cxx/cxxtest.cpp @@ -3,7 +3,7 @@ * Copyright (c) 2006 Jean-Yves Lamoureux * All Rights Reserved * - * $Id: cpptest.cpp 784 2006-06-10 11:35:18Z jylam $ + * $Id$ * * This program is free software; you can redistribute it and/or * modify it under the terms of the Do What The Fuck You Want To @@ -79,10 +79,11 @@ int main(int argc, char *argv[]) /* printf works */ qq->setColorANSI(CUCUL_LIGHTBLUE, CUCUL_BLACK); - qq->Printf(30,15, "Powered by libcaca %s", VERSION); + qq->Printf((qq->getWidth()/2) - 10 ,qq->getHeight()/2, "Powered by libcaca %s", VERSION); /* Blit */ kk->Display(); + qq->Clear(); x+=ix; y+=iy;