Since I only need that for SDL_ttf text I’m thinking of getting the text already shrunk from SDL_ttf, instead of re-render the surface returned by SDL_ttf.
I’ll?try to have a look in SDL_ttf, maybe I can use a factor (based?on the surface width) and force the text into the box while it’s ploting. But I’m not familiar with SDL_ttf. Can anyone point me to the right functions?
?
thanks
Phuoc
?
?
/_/_/_/_/_/_ www.huaonline.com My Homepage is my Castle— On Sun, 21/12/08, Neil White wrote:
From: neil@cloudsprinter.com (Neil White)
Subject: Re: [SDL] How to blit a Surface and shrink it?
To: home at huaonline.com, “A list for developers using the SDL library. (includes SDL-announce)”
Received: Sunday, 21 December, 2008, 11:35 PM
-----Inline Attachment Follows-----
a bit ambiguous question assuming my grasp on english
assuming i know what you are on about-
if you put the text all into a surface of its own then checked to see if the surtface was wider that your display, if np then plot normally, if yes use sdlgfx to shrink the width of the text surface to the witdh of the display surface then plot.
Stay connected to the people that matter most with a smarter inbox. Take a look http://au.docs.yahoo.com/mail/smarterinbox