/*
 * gc_geometry.cpp
 *
 */


#include "gc_geometry.h"

#if 0
#define GC_GEOMETRY_VGA

#define GC_DISPLAY_ASPECT_RATIO(x_) ((x_)/4)*3


enum gc_geometry_impl_t
{
#ifdef GC_GEOMETRY_VGA
  K_X_PHYSICAL_DISPLAY_DIMENSION = 640,
  k_Y_PHYSICAL_DISPLAY_DIMENSION = 512, //real dimension is 484, extend for osme debug info to be displayed only at higher resolutions GC_DISPLAY_ASPECT_RATIO(X_PHYSICAL_DISPLAY_DIMENSION),

  K_Y_PHYSICAL_DISPLAY_OUTPUT = 484, //real dimension is 484, extend for osme debug info to be displayed only at higher resolutions GC_DISPLAY_ASPECT_RATIO(X_PHYSICAL_DISPLAY_DIMENSION),

  K_X_LOGICAL_DISPLAY_OFFSET=(K_X_PHYSICAL_DISPLAY_DIMENSION-gc_cfg::XY_LOGICAL_DISPLAY_DIMENSION)/2,
  K_Y_LOGICAL_DISPLAY_OFFSET=0, //(Y_PHYSICAL_DISPLAY_DIMENSION-XY_LOGICAL_DISPLAY_DIMENSION)/2,
#else
  K_X_PHYSICAL_DISPLAY_DIMENSION = 512,
  K_Y_PHYSICAL_DISPLAY_DIMENSION = 512, //GC_DISPLAY_ASPECT_RATIO(X_PHYSICAL_DISPLAY_DIMENSION),
  K_Y_PHYSICAL_DISPLAY_OUTPUT = K_Y_PHYSICAL_DISPLAY_DIMENSION, //real dimension is 484, extend for osme debug info to be displayed only at higher resolutions GC_DISPLAY_ASPECT_RATIO(X_PHYSICAL_DISPLAY_DIMENSION),

  K_X_LOGICAL_DISPLAY_OFFSET=0, //(X_PHYSICAL_DISPLAY_DIMENSION-XY_LOGICAL_DISPLAY_DIMENSION)/2,
  K_Y_LOGICAL_DISPLAY_OFFSET=0, //(Y_PHYSICAL_DISPLAY_DIMENSION-XY_LOGICAL_DISPLAY_DIMENSION)/2,
#endif
};


const int gc_cfg::X_PHYSICAL_DISPLAY_DIMENSION=K_X_PHYSICAL_DISPLAY_DIMENSION;
const int gc_cfg::Y_PHYSICAL_DISPLAY_DIMENSION=k_Y_PHYSICAL_DISPLAY_DIMENSION;
const int gc_cfg::Y_PHYSICAL_DISPLAY_OUTPUT=K_Y_PHYSICAL_DISPLAY_OUTPUT;

const int gc_cfg::X_LOGICAL_DISPLAY_OFFSET=K_X_LOGICAL_DISPLAY_OFFSET;
const int gc_cfg::Y_LOGICAL_DISPLAY_OFFSET=K_Y_LOGICAL_DISPLAY_OFFSET;

#endif



