X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fjigsaw.c;h=dc7b8c3db654e36527790693a3351d14c776d82a;hp=cde122aa4e01db91484af1234ac7d70fafee453e;hb=d1ae2829ff0fd2a96c16a0c8c5420efaa47d7b30;hpb=7edd66e6bd3209013ee059819747b10b5835635b diff --git a/hacks/glx/jigsaw.c b/hacks/glx/jigsaw.c index cde122aa..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 @@ -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;