Re: [Super-tux-devel] indentations
Brought to you by:
wkendrick
From: Ricardo C. <ri...@ae...> - 2003-12-29 02:00:03
|
This shadow stuff I've mentioned seems to already be done, but maybe we co= uld=20 make menu entries to draw bigger shadows, since it looks prettier. It would be pretty easy to do. However, should the argument be a constant= =20 like LARGER_SHADOW or should the length be specified. Ricardo Em Segunda, 29 de Dezembro de 2003 02:00, escreveu: > Here it goes the patch, I've just replaced UPDATE by NO_UPDATE in the > title.c and keep the rest. Bye, bye flickering! :) > > I've made an hugly hack to add support to shadows. I found shadows at the > menu entries to be very beatiful. Give it a try, add the following two li= ne > at the drawtext() in the screen.c : > if(surf !=3D letters_black) > drawtext(text, x+1, y+1, letters_black, update); > > If you like the result, I could add another parameter to drawtext() in > order to add or not shadow. I think the menu entries look really good with > it :) > > See you, > Ricardo > > Em Segunda, 29 de Dezembro de 2003 02:34, o Tobias Gl=C3=A4=C3=9Fer escre= veu: > > > Tobias, in the menu.c, you should replace all NO_UPDATE by UPDATE and > > > then remove the SDL_Flip(screen); line. This is the cause of the menu > > > flickering, because the background is being drawn by intro.c or > > > gameloop.c, the text entries are only drawn after and repeat the scre= en > > > blitting, that was done before. > > > Another solution would be to disable UPDATE in the intro.c and > > > gameloop.c and keep the rest as it is. > > > > Thanks for your hint. :) > > > > > > Greetz... > > > > Tobias Gl=C3=A4=C3=9Fer =2D-=20 There's nothing like the face of a kid eating a Hershey bar. |