-/* pinion, Copyright (c) 2004-2006 Jamie Zawinski <jwz@jwz.org>
+/* pinion, Copyright (c) 2004-2011 Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
#define DEFAULTS "*delay: 15000 \n" \
"*showFPS: False \n" \
"*wireframe: False \n" \
- "*titleFont: -*-times-bold-r-normal-*-180-*\n" \
- "*titleFont2: -*-times-bold-r-normal-*-120-*\n" \
- "*titleFont3: -*-times-bold-r-normal-*-80-*\n" \
+ "*titleFont: -*-helvetica-medium-r-normal-*-180-*\n" \
+ "*titleFont2: -*-helvetica-medium-r-normal-*-120-*\n" \
+ "*titleFont3: -*-helvetica-medium-r-normal-*-80-*\n" \
# define refresh_pinion 0
# define release_pinion 0
print_gl_string (mi->dpy, f, fl,
mi->xgwa.width, mi->xgwa.height,
10, mi->xgwa.height - 10,
- label);
+ label, False);
}
glEndList ();
}
if (g->coax_p)
{
+ if (!parent) abort();
if (g->x != parent->x) abort();
if (g->y != parent->y) abort();
if (g->z == parent->z) abort();
}
else if (event->xany.type == ButtonPress &&
(event->xbutton.button == Button4 ||
- event->xbutton.button == Button5))
+ event->xbutton.button == Button5 ||
+ event->xbutton.button == Button6 ||
+ event->xbutton.button == Button7))
{
gltrackball_mousewheel (pp->trackball, event->xbutton.button, 5,
!!event->xbutton.state);
fprintf(stderr, "%s: out of memory\n", progname);
exit(1);
}
-
- pp = &pps[MI_SCREEN(mi)];
}
pp = &pps[MI_SCREEN(mi)];
load_fonts (mi);
reshape_pinion (mi, MI_WIDTH(mi), MI_HEIGHT(mi));
+ clear_gl_error(); /* WTF? sometimes "invalid op" from glViewport! */
pp->title_list = glGenLists (1);