X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fanalogtv.c;h=1ff995d2ccef12ac4f2f52cb5abc860cce45418b;hb=3f1091236d800c43a3124c44c7da54e53f205b13;hp=63368f5f73f5509ed31a8f26ca0c649c78b5d63f;hpb=50be9bb40dc60130c99ffa568e6677779904ff70;p=xscreensaver diff --git a/hacks/analogtv.c b/hacks/analogtv.c index 63368f5f..1ff995d2 100644 --- a/hacks/analogtv.c +++ b/hacks/analogtv.c @@ -304,6 +304,12 @@ analogtv_configure(analogtv *it) wlim = it->xgwa.width; ratio = wlim / (float) hlim; +#ifdef USE_IPHONE + /* Fill the whole iPhone screen, even though that distorts the image. */ + min_ratio = 320.0 / 480.0 * (1 - percent); + max_ratio = 480.0 / 320.0 * (1 + percent); +#endif + if (wlim < 266 || hlim < 200) { wlim = 266;