X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fjigsaw.c;h=dc7b8c3db654e36527790693a3351d14c776d82a;hb=d1ae2829ff0fd2a96c16a0c8c5420efaa47d7b30;hp=c7448361ca79bd8035550fc28fd67b64573f8fdf;hpb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;p=xscreensaver diff --git a/hacks/glx/jigsaw.c b/hacks/glx/jigsaw.c index c7448361..dc7b8c3d 100644 --- a/hacks/glx/jigsaw.c +++ b/hacks/glx/jigsaw.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1997-2014 Jamie Zawinski +/* xscreensaver, Copyright (c) 1997-2015 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -48,7 +48,7 @@ #define DEF_WOBBLE "True" #define DEF_DEBUG "False" -#define DEF_FONT "-*-helvetica-bold-r-normal-*-240-*" +#define DEF_FONT "-*-helvetica-bold-r-normal-*-*-240-*-*-*-*-*-*" #define DEFAULTS "*delay: 20000 \n" \ "*showFPS: False \n" \ "*font: " DEF_FONT"\n" \ @@ -1157,8 +1157,11 @@ loading_msg (ModeInfo *mi) jigsaw_configuration *jc = &sps[MI_SCREEN(mi)]; int wire = MI_IS_WIREFRAME(mi); const char *text = "Loading..."; - int h; - int w = texture_string_width (jc->texfont, text, &h); + XCharStruct e; + int w, h; + texture_string_metrics (jc->texfont, text, &e, 0, 0); + w = e.width; + h = e.ascent + e.descent; if (wire) return;