projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.35.tar.gz
[xscreensaver]
/
hacks
/
analogtv.c
diff --git
a/hacks/analogtv.c
b/hacks/analogtv.c
index c26c315c3aab7a8ce746d759438119b62153d848..28930c5ef91c791359b8c993662c61bc00bc8b2e 100644
(file)
--- a/
hacks/analogtv.c
+++ b/
hacks/analogtv.c
@@
-64,9
+64,9
@@
- removed unusable hashnoise code
*/
- removed unusable hashnoise code
*/
-#ifdef HAVE_
COCOA
+#ifdef HAVE_
JWXYZ
# include "jwxyz.h"
# include "jwxyz.h"
-#else /* !HAVE_
COCOA
*/
+#else /* !HAVE_
JWXYZ
*/
# include <X11/Xlib.h>
# include <X11/Xutil.h>
#endif
# include <X11/Xlib.h>
# include <X11/Xutil.h>
#endif
@@
-344,7
+344,7
@@
analogtv_configure(analogtv *it)
wlim = it->xgwa.width;
ratio = wlim / (float) hlim;
wlim = it->xgwa.width;
ratio = wlim / (float) hlim;
-#ifdef
USE_IPHON
E
+#ifdef
HAVE_MOBIL
E
/* Fill the whole iPhone screen, even though that distorts the image. */
min_ratio = 0;
max_ratio = 10;
/* Fill the whole iPhone screen, even though that distorts the image. */
min_ratio = 0;
max_ratio = 10;
@@
-392,7
+392,7
@@
analogtv_configure(analogtv *it)
height_diff = ((hlim + ANALOGTV_VISLINES/2) % ANALOGTV_VISLINES) - ANALOGTV_VISLINES/2;
height_diff = ((hlim + ANALOGTV_VISLINES/2) % ANALOGTV_VISLINES) - ANALOGTV_VISLINES/2;
- if (height_diff != 0 &&
f
abs(height_diff) < hlim * height_snap)
+ if (height_diff != 0 && abs(height_diff) < hlim * height_snap)
{
hlim -= height_diff;
}
{
hlim -= height_diff;
}