projects
/
rodin
/
chimara.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Checked for 0 window size in glk_window_move_cursor().
[rodin/chimara.git]
/
libchimara
/
window.c
diff --git
a/libchimara/window.c
b/libchimara/window.c
index 223d7a24a71fca70089dbf43a97b80183bbed6fd..8b695315326629157e1dba292ca3b759818a0578 100644
(file)
--- a/
libchimara/window.c
+++ b/
libchimara/window.c
@@
-1193,6
+1193,10
@@
glk_window_move_cursor(winid_t win, glui32 xpos, glui32 ypos)
VALID_WINDOW(win, return);
g_return_if_fail(win->type == wintype_TextGrid);
VALID_WINDOW(win, return);
g_return_if_fail(win->type == wintype_TextGrid);
+ /* Don't do anything if the window is shrunk down to nothing */
+ if(win->width == 0 || win->height == 0)
+ return;
+
/* Calculate actual position if cursor is moved past the right edge */
if(xpos >= win->width)
{
/* Calculate actual position if cursor is moved past the right edge */
if(xpos >= win->width)
{