X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fpinion.c;h=860d015c73ac3dcb0e2b396cc5857d16d9975c0f;hb=5f9c47ca98dd43d8f59b7c27d3fde6edfde4fe21;hp=aefbe711464f687078b07d793a2bdc465706ae74;hpb=6b1c86cf395f59389e4ece4ea8f4bea2c332745b;p=xscreensaver diff --git a/hacks/glx/pinion.c b/hacks/glx/pinion.c index aefbe711..860d015c 100644 --- a/hacks/glx/pinion.c +++ b/hacks/glx/pinion.c @@ -1,4 +1,4 @@ -/* pinion, Copyright (c) 2004-2008 Jamie Zawinski +/* pinion, Copyright (c) 2004-2011 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -12,9 +12,9 @@ #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 @@ -165,7 +165,7 @@ new_label (ModeInfo *mi) print_gl_string (mi->dpy, f, fl, mi->xgwa.width, mi->xgwa.height, 10, mi->xgwa.height - 10, - label); + label, False); } glEndList (); } @@ -883,6 +883,7 @@ push_gear (ModeInfo *mi) 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(); @@ -1340,8 +1341,6 @@ init_pinion (ModeInfo *mi) fprintf(stderr, "%s: out of memory\n", progname); exit(1); } - - pp = &pps[MI_SCREEN(mi)]; } pp = &pps[MI_SCREEN(mi)]; @@ -1350,6 +1349,7 @@ init_pinion (ModeInfo *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);