summaryrefslogtreecommitdiff
path: root/menuchoixpersos.c
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-11 01:55:32 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-11 01:55:32 +0100
commitd590bfdcdfa8799439cffa41fc74346e9923b6e7 (patch)
treee171fd414935877fd3ddd1f79204dac22368e32d /menuchoixpersos.c
parentb37b127792e09cb7148200e0bccf294892e9a889 (diff)
renamed the rects inside the struct positions
it is redundant in thus inconvenient to repeat 'position' inside a structure named position. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'menuchoixpersos.c')
-rw-r--r--menuchoixpersos.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/menuchoixpersos.c b/menuchoixpersos.c
index 3d55efd..9c02389 100644
--- a/menuchoixpersos.c
+++ b/menuchoixpersos.c
@@ -174,11 +174,11 @@ static void Fchangersurlignage2(int Vchoix, SURFACES *surfaces,
/* this surface fills the whole screen */
SDL_BlitSurface(surf, NULL, surfaces->screen, NULL);
- SDL_BlitSurface (surfaces->Ppretre,NULL,surfaces->Pecran,&positions->Vpositionmenupretre);
- SDL_BlitSurface (surfaces->Ppaladin,NULL,surfaces->Pecran,&positions->Vpositionmenupaladin);
- SDL_BlitSurface (surfaces->Pvoleur,NULL,surfaces->Pecran,&positions->Vpositionmenuvoleur);
+ SDL_BlitSurface(surfaces->Ppretre, NULL, surfaces->screen, &positions->menupretre);
+ SDL_BlitSurface(surfaces->Ppaladin, NULL, surfaces->screen, &positions->menupaladin);
+ SDL_BlitSurface(surfaces->Pvoleur, NULL, surfaces->screen, &positions->menuvoleur);
- SDL_BlitSurface(text, NULL, surfaces->screen, &positions->Vpositiontextemenu);
+ SDL_BlitSurface(text, NULL, surfaces->screen, &positions->textemenu);
SDL_Flip (surfaces->Pecran);
}
@@ -224,13 +224,13 @@ void Fmenuchoixpersos (SURFACES *surfaces, POSITIONS *positions)
/* display the string associated with the current character number (aka Please choose ...) */
surf = TTF_RenderText_Blended(rpg_g.font, strings[Vnbperso], vert);
- positions->Vpositiontextemenu.x = surfaces->screen->w / 2 - surf->w / 2;
- SDL_BlitSurface(surf, NULL, surfaces->screen, &positions->Vpositiontextemenu);
+ positions->textemenu.x = surfaces->screen->w / 2 - surf->w / 2;
+ SDL_BlitSurface(surf, NULL, surfaces->screen, &positions->textemenu);
- SDL_BlitSurface (surfaces->Ppretre,NULL,surfaces->Pecran,&positions->Vpositionmenupretre);
- SDL_BlitSurface (surfaces->Ppaladin,NULL,surfaces->Pecran,&positions->Vpositionmenupaladin);
- SDL_BlitSurface (surfaces->Pvoleur,NULL,surfaces->Pecran,&positions->Vpositionmenuvoleur);
+ SDL_BlitSurface(surfaces->Ppretre, NULL, surfaces->screen, &positions->menupretre);
+ SDL_BlitSurface(surfaces->Ppaladin, NULL, surfaces->screen, &positions->menupaladin);
+ SDL_BlitSurface(surfaces->Pvoleur, NULL, surfaces->screen, &positions->menuvoleur);
SDL_Flip (surfaces->Pecran);
continuer = true;