/*--------------------------------------------------------------------
 * FICHERO:  DbnRefVt.c
 * OBJETIVO: Definir la funcin Dbn_ReflejaVertical()
 * AUTOR:    Pedro Reina
 * FECHA:    S.1.7.1995
 *------------------------------------------------------------------*/

/*--------------------------------------------------------------------
 * Ficheros de cabecera
 *------------------------------------------------------------------*/

#include "Diblane.h"

/*--------------------------------------------------------------------
 * Definicin de funciones
 *------------------------------------------------------------------*/

/*--------------------------------------------------------------Olimpo
 * FUNCION:  Dbn_ReflejaVertical()
 * OBJETIVO: Reflejar verticamente un objeto diblane
 * ENTRADAS: Un diblane
 * SALIDAS:  Ninguna
 * EJEMPLO:  Dbn_ReflejaVertical (Dibujo)
 *------------------------------------------------------------------*/
void Dbn_ReflejaVertical (Dibujo)
diblane Dibujo;
  {
  entero i, j, Valor;

  for ( i=0 ; i<Dbn_Alto(Dibujo) ; i++ )
    {
    for ( j=0 ; j<Dbn_Ancho(Dibujo)/2 ; j++ )
      {
      Valor = Dbn_Punto (Dibujo,i,j);
      Dbn_PonPunto (Dibujo,i,j,Dbn_Punto(Dibujo,i,Dbn_Ancho(Dibujo)-j-1));
      Dbn_PonPunto (Dibujo,i,Dbn_Ancho(Dibujo)-j-1,Valor);
      }
    }
  }