#include "buffer.h"
#include "termhooks.h"
-/* conversion to/from character & screen coordinates */
+/* conversion to/from character & frame coordinates */
/* From Gosling Emacs SunWindow driver by Chris Torek */
-/* Chars to screen coords. Note that we speak in zero origin. */
+/* Chars to frame coords. Note that we speak in zero origin. */
#define CtoSX(cx) ((cx) * Sun_Font_Xsize)
#define CtoSY(cy) ((cy) * Sun_Font_Ysize)
-/* Screen coords to chars */
+/* Frame coords to chars */
#define StoCX(sx) ((sx) / Sun_Font_Xsize)
#define StoCY(sy) ((sy) / Sun_Font_Ysize)
char *cp;
static int already_initialized = 0;
- if ((! already_initialized) || (!NULL(force))) {
+ if ((! already_initialized) || (!NILP(force))) {
cp = getenv("WINDOW_GFX");
if (cp != 0) win_fd = open(cp, 2);
if (win_fd > 0)
Timeout.tv_usec = (XINT(n) - (Timeout.tv_sec * 1000)) * 1000;
if (detect_input_pending()) return(Qnil);
- DoDsp(1);
+ redisplay_preserve_echo_area ();
/*
* Check for queued keyboard input/mouse hits again
* (A bit screen update can take some time!)
"Perform redisplay.")
()
{
- redisplay_preserving_echo_area ();
+ redisplay_preserve_echo_area ();
return(Qt);
}
/*
* If the icon is null, we just restore the DefaultCursor
*/
- if (NULL(Icon))
+ if (NILP(Icon))
CurrentCursor = DefaultCursor;
else {
/*
CHECK_NUMBER(X_Position, 0);
CHECK_NUMBER(Y_Position, 1);
- CHECK_WINDOW(window, 2);
+ CHECK_LIVE_WINDOW(window, 2);
CHECK_NUMBER(Button, 3);
CHECK_VECTOR(MEnu, 4);