X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fzoom.c;h=35ba2487cd315cd0a310140152c04427cc6502bd;hb=78add6e627ee5f10e1fa6f3852602ea5066eee5a;hp=99a652a54cd5f5d9abc9842fbece4bc37904e4f0;hpb=aa75c7476aeaa84cf3abc192b376a8b03c325213;p=xscreensaver diff --git a/hacks/zoom.c b/hacks/zoom.c index 99a652a5..35ba2487 100644 --- a/hacks/zoom.c +++ b/hacks/zoom.c @@ -106,6 +106,12 @@ zoom_init (Display *dpy, Window window) st->pixspacey = get_integer_resource(st->dpy, "pixspacey", "Integer"); if (st->pixspacey < 0) st->pixspacey = 0; + + if (st->sizex < 50 || st->sizey < 50) { /* tiny window */ + st->pixwidth = 10; + st->pixheight = 10; + } + st->lenses = get_boolean_resource(st->dpy, "lenses", "Boolean"); st->lensoffsetx = get_integer_resource(st->dpy, "lensoffsetx", "Integer"); st->lensoffsetx = MAX(0, MIN(st->pixwidth, st->lensoffsetx)); @@ -247,6 +253,7 @@ static const char *zoom_defaults[] = { "*dontClearRoot: True", ".foreground: white", ".background: #111111", + ".lowrez: true", "*fpsSolid: true", #ifdef __sgi /* really, HAVE_READ_DISPLAY_EXTENSION */ "*visualID: Best",