X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fdistort.c;h=ba812792aedd81774b35287db2183b22bfa7ada9;hp=54439d44733f03b3aa29843cf493845df34ff0cf;hb=78add6e627ee5f10e1fa6f3852602ea5066eee5a;hpb=39809ded547bdbb08207d3e514950425215b4410 diff --git a/hacks/distort.c b/hacks/distort.c index 54439d44..ba812792 100644 --- a/hacks/distort.c +++ b/hacks/distort.c @@ -1,5 +1,5 @@ /* -*- mode: C; tab-width: 4 -*- - * xscreensaver, Copyright (c) 1992-2014 Jamie Zawinski + * xscreensaver, Copyright (c) 1992-2018 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 @@ -125,6 +125,8 @@ distort_reset (struct state *st) st->reflect = get_boolean_resource(st->dpy, "reflect", "Boolean"); st->slow = get_boolean_resource(st->dpy, "slow", "Boolean"); + if (st->xgwa.width > 2560) st->radius *= 3; /* Retina displays */ + if (st->delay < 0) st->delay = 0; if (st->duration < 1) st->duration = 1;