X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fjuggler3d.c;h=29df0d4e6cc24c9f51d61577f118f17044ca71ff;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hp=f6b5ce7850377f958dc7f28db597ea757571d0a9;hpb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;p=xscreensaver diff --git a/hacks/glx/juggler3d.c b/hacks/glx/juggler3d.c index f6b5ce78..29df0d4e 100644 --- a/hacks/glx/juggler3d.c +++ b/hacks/glx/juggler3d.c @@ -131,7 +131,7 @@ "*count: 200 \n" \ "*cycles: 1000 \n" \ "*ncolors: 32 \n" \ - "*titleFont: -*-helvetica-bold-r-normal-*-180-*\n" \ + "*titleFont: -*-helvetica-bold-r-normal-*-*-180-*-*-*-*-*-*\n" \ "*showFPS: False \n" \ "*wireframe: False \n" \ @@ -144,7 +144,7 @@ #include "tube.h" #include "rotator.h" #include "gltrackball.h" -#include "glxfonts.h" +#include "texfont.h" #include #ifdef USE_GL /* whole file */ @@ -2092,8 +2092,7 @@ show_europeanclub(ModeInfo *mi, unsigned long color, Trace *s) GLfloat gcolor1[4] = { 0, 0, 0, 1 }; GLfloat gcolor2[4] = { 1, 1, 1, 1 }; int slices = 16; - int divs = s->divisions; - divs = 4; + int divs = 4; /* 6 6 +-+ @@ -2657,7 +2656,8 @@ init_juggle (ModeInfo * mi) sp = &juggles[MI_SCREEN(mi)]; - sp->glx_context = init_GL(mi); + if (!sp->glx_context) /* re-initting breaks print_texture_label */ + sp->glx_context = init_GL(mi); sp->font_data = load_texture_font (mi->dpy, "titleFont"); @@ -3010,10 +3010,10 @@ draw_juggle (ModeInfo *mi) } } - print_gl_string (mi->dpy, sp->font_data, - mi->xgwa.width, mi->xgwa.height, - 10, mi->xgwa.height - 10, - sp->pattern, False); + glColor3f (1, 1, 0); + print_texture_label (mi->dpy, sp->font_data, + mi->xgwa.width, mi->xgwa.height, + 1, sp->pattern); #ifdef MEMTEST if((int)(sp->time/10) % 1000 == 0)