Hi,

Le Jeudi 15 Décembre 2005 13:56, Jean-Christophe Duberga a écrit :
> JC: If one argument of Blit SDL function is NULL, clipping won't be
> used :-( (check the documentation)
>
>  Have I the contrary said ?

No, but you used the code :
  SDL_Rect dr = 
{x*larg_cell-camera.GetX(),y*haut_cell-camera.GetY(),larg_cell,haut_cell};
  SDL_BlitSurface (i_surface, NULL, app.sdlwindow, &dr);         
instead of:
  SDL_Rect ds = {0,0,larg_cell,haut_cell};
  SDL_Rect dr = 
{x*larg_cell-camera.GetX(),y*haut_cell-camera.GetY(),larg_cell,haut_cell};
  SDL_BlitSurface (i_surface, &ds, app.sdlwindow, &dr);          

I restested with NULL instead of &ds ... doesn't change anything !? I don't 
understand why it doesn't work yesterday. Sorry JC, I was *very* tired 
(worked between 3:00 and 5:00 :-P).

Sorry for commit 173, I reverted your code in following commit (174) ! :-)

Bye, Haypo
-- 
Victor Stinner - étudiant à l'UTBM (Belfort, France)
http://www.haypocalc.com/wiki/Victor_Stinner

Répondre à