diff options
| author | Richard M. Stallman | 1998-04-25 23:08:09 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-04-25 23:08:09 +0000 |
| commit | 868e640e903b0f10cea500655c6fd1db1e8fbebc (patch) | |
| tree | efcd90d9bdde7aff5877107c8a53129bb154d311 | |
| parent | 4ff3479544d6a913f12a1a0a1dbf41f7fde5ff1a (diff) | |
| download | emacs-868e640e903b0f10cea500655c6fd1db1e8fbebc.tar.gz emacs-868e640e903b0f10cea500655c6fd1db1e8fbebc.zip | |
(change_frame_size_1): Use FRAME_CURSOR_X_LIMIT.
(update_frame): Likewise.
| -rw-r--r-- | src/dispnew.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 4b8428806f1..609d0b5bf8d 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -1360,7 +1360,7 @@ update_frame (f, force, inhibit_hairy_id) | |||
| 1360 | while (row > top && col == 0); | 1360 | while (row > top && col == 0); |
| 1361 | 1361 | ||
| 1362 | /* Make sure COL is not out of range. */ | 1362 | /* Make sure COL is not out of range. */ |
| 1363 | if (col >= FRAME_WIDTH (f) + FRAME_LEFT_SCROLL_BAR_WIDTH (f)) | 1363 | if (col >= FRAME_CURSOR_X_LIMIT (f)) |
| 1364 | { | 1364 | { |
| 1365 | /* If we have another row, advance cursor into it. */ | 1365 | /* If we have another row, advance cursor into it. */ |
| 1366 | if (row < FRAME_HEIGHT (f) - 1) | 1366 | if (row < FRAME_HEIGHT (f) - 1) |
| @@ -1370,7 +1370,7 @@ update_frame (f, force, inhibit_hairy_id) | |||
| 1370 | } | 1370 | } |
| 1371 | /* Otherwise move it back in range. */ | 1371 | /* Otherwise move it back in range. */ |
| 1372 | else | 1372 | else |
| 1373 | col = FRAME_WIDTH (f) + FRAME_LEFT_SCROLL_BAR_WIDTH (f); | 1373 | col = FRAME_CURSOR_X_LIMIT (f) - 1; |
| 1374 | } | 1374 | } |
| 1375 | } | 1375 | } |
| 1376 | 1376 | ||
| @@ -1378,7 +1378,8 @@ update_frame (f, force, inhibit_hairy_id) | |||
| 1378 | } | 1378 | } |
| 1379 | else | 1379 | else |
| 1380 | cursor_to (FRAME_CURSOR_Y (f), | 1380 | cursor_to (FRAME_CURSOR_Y (f), |
| 1381 | minmax (0, FRAME_CURSOR_X (f), FRAME_WINDOW_WIDTH (f) - 1)); | 1381 | minmax (0, FRAME_CURSOR_X (f), |
| 1382 | FRAME_CURSOR_X_LIMIT (f) - 1)); | ||
| 1382 | } | 1383 | } |
| 1383 | 1384 | ||
| 1384 | update_end (f); | 1385 | update_end (f); |
| @@ -2246,8 +2247,8 @@ change_frame_size_1 (frame, newheight, newwidth, pretend, delay) | |||
| 2246 | FRAME_HEIGHT (frame) = newheight; | 2247 | FRAME_HEIGHT (frame) = newheight; |
| 2247 | SET_FRAME_WIDTH (frame, newwidth); | 2248 | SET_FRAME_WIDTH (frame, newwidth); |
| 2248 | 2249 | ||
| 2249 | if (FRAME_CURSOR_X (frame) >= FRAME_WINDOW_WIDTH (frame)) | 2250 | if (FRAME_CURSOR_X (frame) >= FRAME_CURSOR_X_LIMIT (frame)) |
| 2250 | FRAME_CURSOR_X (frame) = FRAME_WINDOW_WIDTH (frame) - 1; | 2251 | FRAME_CURSOR_X (frame) = FRAME_CURSOR_X_LIMIT (frame) - 1; |
| 2251 | if (FRAME_CURSOR_Y (frame) >= FRAME_HEIGHT (frame)) | 2252 | if (FRAME_CURSOR_Y (frame) >= FRAME_HEIGHT (frame)) |
| 2252 | FRAME_CURSOR_Y (frame) = FRAME_HEIGHT (frame) - 1; | 2253 | FRAME_CURSOR_Y (frame) = FRAME_HEIGHT (frame) - 1; |
| 2253 | 2254 | ||