"*showFPS: False \n" \
"*wireframe: False \n" \
-# define refresh_cube 0
+# define free_cube 0
# define release_cube 0
#undef countof
#define countof(x) (sizeof((x))/sizeof((*x)))
reshape_cube (ModeInfo *mi, int width, int height)
{
GLfloat h = (GLfloat) height / (GLfloat) width;
+ int y = 0;
- glViewport (0, 0, (GLint) width, (GLint) height);
+ if (width > height * 2) { /* tiny window: show middle */
+ height = width;
+ y = -height/2;
+ h = height / (GLfloat) width;
+ }
+
+ glViewport (0, y, (GLint) width, (GLint) height);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
int i;
cube_configuration *cc;
- MI_INIT (mi, ccs, NULL);
+ MI_INIT (mi, ccs);
cc = &ccs[MI_SCREEN(mi)];