X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fsonar.c;h=c4ea949046812e66939893a474776fd97c6cd39f;hp=218a62269e1506e05a49697f789345869c0d8b52;hb=78add6e627ee5f10e1fa6f3852602ea5066eee5a;hpb=39809ded547bdbb08207d3e514950425215b4410 diff --git a/hacks/glx/sonar.c b/hacks/glx/sonar.c index 218a6226..c4ea9490 100644 --- a/hacks/glx/sonar.c +++ b/hacks/glx/sonar.c @@ -1,4 +1,4 @@ -/* sonar, Copyright (c) 1998-2015 Jamie Zawinski and Stephen Martin +/* sonar, Copyright (c) 1998-2018 Jamie Zawinski and Stephen Martin * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -354,6 +354,8 @@ draw_text (ModeInfo *mi, const char *string, GLfloat r, GLfloat th, char *token = string2; char *line; + if (MI_WIDTH(mi) > 2560) font_scale /= 2; /* Retina displays */ + if (size <= 0) /* if size not specified, draw in yellow with alpha */ { GLfloat color[4];