diff options
| author | YAMAMOTO Mitsuharu | 2015-12-15 17:53:44 +0900 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2015-12-15 17:54:07 +0900 |
| commit | 702434408433a3b04be1a03b10366b4d7191b54e (patch) | |
| tree | 8ac597068f8d780cc7ddbded0667051883884982 /src | |
| parent | 97abf9273a80e0890b4756ec4d09d8bfe4077bba (diff) | |
| download | emacs-702434408433a3b04be1a03b10366b4d7191b54e.tar.gz emacs-702434408433a3b04be1a03b10366b4d7191b54e.zip | |
Fix variable name typo in compute_tip_xy
* src/w32fns.c (compute_tip_xy):
* src/xfns.c (compute_tip_xy): Modify *root_x instead of *root_y
when `right' is integer.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32fns.c | 2 | ||||
| -rw-r--r-- | src/xfns.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index f9ce762f0e9..4be322182ce 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -6377,7 +6377,7 @@ compute_tip_xy (struct frame *f, | |||
| 6377 | if (INTEGERP (left)) | 6377 | if (INTEGERP (left)) |
| 6378 | *root_x = XINT (left); | 6378 | *root_x = XINT (left); |
| 6379 | else if (INTEGERP (right)) | 6379 | else if (INTEGERP (right)) |
| 6380 | *root_y = XINT (right) - width; | 6380 | *root_x = XINT (right) - width; |
| 6381 | else if (*root_x + XINT (dx) <= min_x) | 6381 | else if (*root_x + XINT (dx) <= min_x) |
| 6382 | *root_x = 0; /* Can happen for negative dx */ | 6382 | *root_x = 0; /* Can happen for negative dx */ |
| 6383 | else if (*root_x + XINT (dx) + width <= max_x) | 6383 | else if (*root_x + XINT (dx) + width <= max_x) |
diff --git a/src/xfns.c b/src/xfns.c index 313ac52f12a..ab6b92256bd 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -5719,7 +5719,7 @@ compute_tip_xy (struct frame *f, Lisp_Object parms, Lisp_Object dx, Lisp_Object | |||
| 5719 | if (INTEGERP (left)) | 5719 | if (INTEGERP (left)) |
| 5720 | *root_x = XINT (left); | 5720 | *root_x = XINT (left); |
| 5721 | else if (INTEGERP (right)) | 5721 | else if (INTEGERP (right)) |
| 5722 | *root_y = XINT (right) - width; | 5722 | *root_x = XINT (right) - width; |
| 5723 | else if (*root_x + XINT (dx) <= 0) | 5723 | else if (*root_x + XINT (dx) <= 0) |
| 5724 | *root_x = 0; /* Can happen for negative dx */ | 5724 | *root_x = 0; /* Can happen for negative dx */ |
| 5725 | else if (*root_x + XINT (dx) + width | 5725 | else if (*root_x + XINT (dx) + width |