X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Ffps-gl.c;h=7680d878e8aa41fb2495d523db4edd6c91dda288;hp=59032aab8d1e66537c96f1ba1597961c49c70685;hb=f0261d8acab611f3433160e4f07367b870439739;hpb=7b34ef992563d7bcbb64cc5597dc45fa24470b05 diff --git a/hacks/glx/fps-gl.c b/hacks/glx/fps-gl.c index 59032aab..7680d878 100644 --- a/hacks/glx/fps-gl.c +++ b/hacks/glx/fps-gl.c @@ -1,4 +1,4 @@ -/* fps, Copyright (c) 2001-2008 Jamie Zawinski +/* fps, Copyright (c) 2001-2009 Jamie Zawinski * Draw a frames-per-second display (Xlib and OpenGL). * * Permission to use, copy, modify, distribute, and sell this software and its @@ -44,24 +44,9 @@ xlockmore_gl_fps_init (fps_state *st) st->font_dlist = glGenLists ((GLuint) last+1); check_gl_error ("glGenLists"); -# ifndef HAVE_COCOA - - glXUseXFont (f->fid, first, last-first+1, st->font_dlist + first); - check_gl_error ("glXUseXFont"); - -# else /* HAVE_COCOA */ - { - AGLContext ctx = aglGetCurrentContext(); - int afid, face, size; - afid = jwxyz_font_info (f->fid, &size, &face); - - if (! aglUseFont (ctx, afid, face, size, - first, last-first+1, st->font_dlist + first)) { - check_gl_error ("aglUseFont"); - abort(); - } - } -# endif /* HAVE_COCOA */ + xscreensaver_glXUseXFont (st->dpy, f->fid, + first, last-first+1, st->font_dlist + first); + check_gl_error ("xscreensaver_glXUseXFont"); }