X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Ffps-gl.c;h=b94c098cf8bedc505a7947143667e04cfe149598;hp=070ae6fb64f31b9226d857ae7c3036f9d0fd1b3e;hb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;hpb=dba664f31aa87285db4d76cf8c5e66335299703a diff --git a/hacks/glx/fps-gl.c b/hacks/glx/fps-gl.c index 070ae6fb..b94c098c 100644 --- a/hacks/glx/fps-gl.c +++ b/hacks/glx/fps-gl.c @@ -1,4 +1,4 @@ -/* fps, Copyright (c) 2001-2012 Jamie Zawinski +/* fps, Copyright (c) 2001-2014 Jamie Zawinski * Draw a frames-per-second display (Xlib and OpenGL). * * Permission to use, copy, modify, distribute, and sell this software and its @@ -37,26 +37,7 @@ extern void check_gl_error (const char *type); static void xlockmore_gl_fps_init (fps_state *st) { -#ifdef HAVE_GLBITMAP - - XFontStruct *f = st->font; - int first = f->min_char_or_byte2; - int last = f->max_char_or_byte2; - - clear_gl_error (); - st->font_dlist = glGenLists ((GLuint) last+1); - check_gl_error ("glGenLists"); - - xscreensaver_glXUseXFont (st->dpy, f->fid, - first, last-first+1, st->font_dlist + first); - check_gl_error ("xscreensaver_glXUseXFont"); - -#else /* !HAVE_GLBITMAP */ - - clear_gl_error(); /* screw it */ st->gl_fps_data = load_texture_font (st->dpy, "fpsFont"); - -#endif /* !HAVE_GLBITMAP */ } @@ -101,12 +82,7 @@ xlockmore_gl_draw_fps (ModeInfo *mi) y += lines*lh + st->font->descent; glColor3f (1, 1, 1); - print_gl_string (st->dpy, -# ifdef HAVE_GLBITMAP - st->font, st->font_dlist, -# else /* !HAVE_GLBITMAP */ - st->gl_fps_data, -# endif /* !HAVE_GLBITMAP */ + print_gl_string (st->dpy, st->gl_fps_data, xgwa.width, xgwa.height, st->x, y, st->string, st->clear_p); }