diff options
Diffstat (limited to 'examples/text-rotate/text-rotate.cc')
-rw-r--r-- | examples/text-rotate/text-rotate.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/text-rotate/text-rotate.cc b/examples/text-rotate/text-rotate.cc index 2dbe798..14912ef 100644 --- a/examples/text-rotate/text-rotate.cc +++ b/examples/text-rotate/text-rotate.cc @@ -1,4 +1,3 @@ -/* /* Copyright (C) 2005 The cairomm Development Team * * This library is free software; you can redistribute it and/or @@ -55,7 +54,7 @@ void draw(Cairo::RefPtr<Cairo::Context> cr, int width, int height) cr->set_source_rgb(0.0, 0.0, 0.0); - cr->translate(WIDTH / 2.0, HEIGHT / 2.0); + cr->translate(width / 2.0, height / 2.0); cr->get_text_extents(text, extents); |