Re: [Super-tux-devel] indentations
Brought to you by:
wkendrick
From: Ricardo C. <ri...@ae...> - 2003-12-29 01:56:50
|
Here it goes the patch, I've just replaced UPDATE by NO_UPDATE in the titl= e.c=20 and keep the rest. Bye, bye flickering! :) I've made an hugly hack to add support to shadows. I found shadows at the= =20 menu entries to be very beatiful. Give it a try, add the following two line= =20 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 ord= er=20 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 escreve= u: > > 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 screen > > 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 When in doubt, tell the truth. -- Mark Twain |