X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Ffps-gl.c;h=67031a6fe162de45bb3626e81670515d71a0f475;hb=ec8d2b32b63649e6d32bdfb306eda062769af823;hp=59032aab8d1e66537c96f1ba1597961c49c70685;hpb=c1b9b55ad8d59dc05ef55e316aebf5863e7dfa56;p=xscreensaver diff --git a/hacks/glx/fps-gl.c b/hacks/glx/fps-gl.c index 59032aab..67031a6f 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-2011 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"); } @@ -79,7 +64,7 @@ xlockmore_gl_compute_fps (Display *dpy, Window w, fps_state *fpst, xlockmore_gl_fps_init (fpst); } - fps_compute (fpst, mi->polygon_count); + fps_compute (fpst, mi->polygon_count, mi->recursion_depth); }