summaryrefslogtreecommitdiff
path: root/lwlib
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-04-15 18:33:29 +0000
committerRichard M. Stallman <rms@gnu.org>1995-04-15 18:33:29 +0000
commitf1bd48fee94dd3f7b05a84b736da2053002cbcda (patch)
tree814311db52e25d3f0ef73d548197a089e1215531 /lwlib
parent72475d553026f4fc448bb1e6e0b7c199d93ce543 (diff)
downloademacs-f1bd48fee94dd3f7b05a84b736da2053002cbcda.tar.gz
(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.
Diffstat (limited to 'lwlib')
-rw-r--r--lwlib/xlwmenu.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lwlib/xlwmenu.c b/lwlib/xlwmenu.c
index a6e46584d65..7a4eb338062 100644
--- a/lwlib/xlwmenu.c
+++ b/lwlib/xlwmenu.c
@@ -326,10 +326,10 @@ size_menu (mw, level)
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 @@ fit_to_screen (mw, ws, previous_ws, horizontal_p)
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 @@ motion_event_is_in_menu (mw, ev, level, relative_pos)
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