changeset 11461:65c12e57f119

(size_menu): Make height and label_width unsigned. (fit_to_screen): Make screen_width and screen_height unsigned. (motion_event_is_in_menu): Make x, y unsigned.
author Richard M. Stallman <rms@gnu.org>
date Sat, 15 Apr 1995 18:33:29 +0000
parents bf76e6e6a48c
children b3c30d040767
files lwlib/xlwmenu.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lwlib/xlwmenu.c	Sat Apr 15 18:32:49 1995 +0000
+++ b/lwlib/xlwmenu.c	Sat Apr 15 18:33:29 1995 +0000
@@ -326,10 +326,10 @@
      XlwMenuWidget mw;
      int level;
 {
-  int		label_width = 0;
+  unsigned int  label_width = 0;
   int		rest_width = 0;
   int		max_rest_width = 0;
-  int		height = 0;
+  unsigned int  height = 0;
   int		horizontal_p = mw->menu.horizontal && (level == 0);
   widget_value*	val;
   window_state*	ws;
@@ -741,8 +741,8 @@
      window_state* previous_ws;
      Boolean horizontal_p;
 {
-  int screen_width = WidthOfScreen (XtScreen (mw));
-  int screen_height = HeightOfScreen (XtScreen (mw));
+  unsigned int screen_width = WidthOfScreen (XtScreen (mw));
+  unsigned int screen_height = HeightOfScreen (XtScreen (mw));
 
   if (ws->x < 0)
     ws->x = 0;
@@ -855,8 +855,8 @@
      XPoint* relative_pos;
 {
   window_state* ws = &mw->menu.windows [level];
-  int x = level == 0 ? ws->x : ws->x + mw->menu.shadow_thickness;
-  int y = level == 0 ? ws->y : ws->y + mw->menu.shadow_thickness;
+  unsigned int x = level == 0 ? ws->x : ws->x + mw->menu.shadow_thickness;
+  unsigned int y = level == 0 ? ws->y : ws->y + mw->menu.shadow_thickness;
   relative_pos->x = ev->x_root - x;
   relative_pos->y = ev->y_root - y;
   return (x < ev->x_root && ev->x_root < x + ws->width