From e76c6476cddaaee94b41f5a643ff7d37ee38b51d Mon Sep 17 00:00:00 2001 From: Martin Schaffner Date: Tue, 25 Jan 2005 21:31:45 +0000 Subject: [PATCH] comment out uses of mouse_set_limits and mouse_set_pos --- ChangeLog | 2 ++ ui/mouse.c | 6 +++--- ui/popup.c | 6 +++--- ui/window.c | 6 +++--- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index b05cced0..4d804218 100644 --- a/ChangeLog +++ b/ChangeLog @@ -17,6 +17,8 @@ main/gamesave.c: s/128/PATH_MAX * include/pstypes.h, main/newmenu.c: clean up path/file length macros * ui/inputbox.c, ui/keypad.c: use unsigned char when comparing to > 127 + * ui/mouse.c, file ui/popup.c, ui/window.c: comment out uses of + mouse_set_limits and mouse_set_pos (we don't want to limit user) 2005-01-24 Chris Taylor diff --git a/ui/mouse.c b/ui/mouse.c index 7bb0c117..b091f953 100644 --- a/ui/mouse.c +++ b/ui/mouse.c @@ -1,4 +1,4 @@ -/* $Id: mouse.c,v 1.5 2005-01-25 19:44:27 schaffner Exp $ */ +/* $Id: mouse.c,v 1.6 2005-01-25 21:31:45 schaffner Exp $ */ /* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO @@ -13,7 +13,7 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. */ #ifdef RCS -static char rcsid[] = "$Id: mouse.c,v 1.5 2005-01-25 19:44:27 schaffner Exp $"; +static char rcsid[] = "$Id: mouse.c,v 1.6 2005-01-25 21:31:45 schaffner Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -240,7 +240,7 @@ void ui_mouse_init() w = grd_curscreen->sc_w; h = grd_curscreen->sc_h; - mouse_set_limits( 0,0, w-1, h-1 ); + //mouse_set_limits(0, 0, w - 1, h - 1); Mouse.x = w/2; Mouse.y = h/2; diff --git a/ui/popup.c b/ui/popup.c index d7f0cae6..ee9d2408 100644 --- a/ui/popup.c +++ b/ui/popup.c @@ -1,4 +1,4 @@ -/* $Id: popup.c,v 1.4 2005-01-24 22:19:10 schaffner Exp $ */ +/* $Id: popup.c,v 1.5 2005-01-25 21:31:45 schaffner Exp $ */ /* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO @@ -13,7 +13,7 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. */ #ifdef RCS -static char rcsid[] = "$Id: popup.c,v 1.4 2005-01-24 22:19:10 schaffner Exp $"; +static char rcsid[] = "$Id: popup.c,v 1.5 2005-01-25 21:31:45 schaffner Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -112,7 +112,7 @@ int PopupMenu( int NumButtons, char * text[] ) wnd = ui_open_window( x, y, width, height, WIN_DIALOG ); - mouse_set_pos( Mouse.x, Mouse.y ); + //mouse_set_pos(Mouse.x, Mouse.y); x = MENU_BORDER+3; y = MENU_BORDER+3; diff --git a/ui/window.c b/ui/window.c index 09573b33..2d9d16b6 100644 --- a/ui/window.c +++ b/ui/window.c @@ -1,4 +1,4 @@ -/* $Id: window.c,v 1.6 2005-01-25 19:44:27 schaffner Exp $ */ +/* $Id: window.c,v 1.7 2005-01-25 21:31:45 schaffner Exp $ */ /* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO @@ -13,7 +13,7 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. */ #ifdef RCS -static char rcsid[] = "$Id: window.c,v 1.6 2005-01-25 19:44:27 schaffner Exp $"; +static char rcsid[] = "$Id: window.c,v 1.7 2005-01-25 21:31:45 schaffner Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -221,7 +221,7 @@ UI_WINDOW * ui_open_window( short x, short y, short w, short h, int flags ) sw = grd_curscreen->sc_w; sh = grd_curscreen->sc_h; - mouse_set_limits( 0,0, sw-1, sh-1 ); + //mouse_set_limits(0, 0, sw - 1, sh - 1); req_w = w; req_h = h; -- 2.39.2