--- deliantra/Deliantra-Client/DC.pm 2006/04/10 22:16:33 1.20 +++ deliantra/Deliantra-Client/DC.pm 2006/04/11 13:05:11 1.21 @@ -131,10 +131,10 @@ # ) #} -sub new_from_text { - my ($class, $text, $height) = @_; +sub new_from_layout { + my ($class, $layout) = @_; - my ($w, $h, $data) = Crossfire::Client::font_render $text, $height; + my ($w, $h, $data) = $layout->render; $class->new ( width => $w,