X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Ffps.c;h=a24f62315f98879d8d7b792290be78c830446bd6;hp=38bdbf6a2fdf12a7e3808f0e6229001afc4c2131;hb=78add6e627ee5f10e1fa6f3852602ea5066eee5a;hpb=39809ded547bdbb08207d3e514950425215b4410 diff --git a/hacks/fps.c b/hacks/fps.c index 38bdbf6a..a24f6231 100644 --- a/hacks/fps.c +++ b/hacks/fps.c @@ -1,4 +1,4 @@ -/* fps, Copyright (c) 2001-2017 Jamie Zawinski +/* fps, Copyright (c) 2001-2018 Jamie Zawinski * Draw a frames-per-second display (Xlib and OpenGL). * * Permission to use, copy, modify, distribute, and sell this software and its @@ -44,8 +44,8 @@ fps_init (Display *dpy, Window window) if (!font) font = "-*-courier-bold-r-normal-*-*-180-*-*-*-*-*-*"; /* also texfont.c */ - f = XLoadQueryFont (dpy, font); - if (!f) f = XLoadQueryFont (dpy, "fixed"); + f = load_font_retry (dpy, font); + if (!f) abort(); { XGCValues gcv;