X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fanalogtv.c;h=1ff995d2ccef12ac4f2f52cb5abc860cce45418b;hp=63368f5f73f5509ed31a8f26ca0c649c78b5d63f;hb=f8cf5ac7b2f53510f80a0eaf286a25298be17bfe;hpb=ec8d2b32b63649e6d32bdfb306eda062769af823 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;