SDLx::Text

[email protected] ("Roman V. Nikolaev") Thu, 24 Feb 2011 22:23:37 +0300
Newsgroups perl.sdl.devel
Message-ID <[email protected]>
Please add text dimensions for manual align ability.
sdlx-text.dimensions.patch (text/x-patch, 273 B)
--- /usr/local/lib/perl/5.10.1/SDLx/Text.pm	2011-02-21 22:00:26.000000000 +0300
+++ lib/SDLx/Text.pm	2011-02-24 22:20:30.000000000 +0300
@@ -86,4 +86,12 @@
 	return;
 }
 
+sub w {
+    return $_[0]->{surface}->w;
+}
+    
+sub h {
+    return $_[0]->{surface}->h;
+}
+
 1;