X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fjuggler3d.c;fp=hacks%2Fglx%2Fjuggler3d.c;h=fe2b93681aaadacf5be522c25aa32e80a4790afc;hp=f6b5ce7850377f958dc7f28db597ea757571d0a9;hb=d5186197bc394e10a4402f7f6d23fbb14103bc50;hpb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e diff --git a/hacks/glx/juggler3d.c b/hacks/glx/juggler3d.c index f6b5ce78..fe2b9368 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 */ @@ -2657,7 +2657,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 +3011,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)