Commit 986e61b8 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(change_frame_size): Keep cursor coords in range.

parent 38ab08d1
......@@ -2025,7 +2025,12 @@ change_frame_size (frame, newheight, newwidth, pretend, delay)
FRAME_HEIGHT (frame) = newheight;
FRAME_WIDTH (frame) = newwidth;
if (FRAME_CURSOR_X (frame) >= FRAME_WIDTH (frame))
FRAME_CURSOR_X (frame) = FRAME_WIDTH (frame) - 1;
if (FRAME_CURSOR_Y (frame) >= FRAME_HEIGHT (frame))
FRAME_CURSOR_Y (frame) = FRAME_HEIGHT (frame) - 1;
remake_frame_glyphs (frame);
calculate_costs (frame);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment