-
Notifications
You must be signed in to change notification settings - Fork 727
/
patch-src_glutwidgets.c
54 lines (50 loc) · 1.23 KB
/
patch-src_glutwidgets.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
--- src/glutwidgets.c.orig 2000-03-01 04:28:21 UTC
+++ src/glutwidgets.c
@@ -254,7 +254,6 @@ glut_reshape_func (int width, int height)
widget->x -= (width - screen_width) / 2;
widget->width += (width - screen_width);
break;
- default:
}
switch (widget->anchor & GR_VERTICAL_MASK) {
case GR_BOTTOM:
@@ -267,7 +266,6 @@ glut_reshape_func (int width, int height)
widget->y -= (height - screen_height) / 2;
widget->height += (width - screen_height);
break;
- default:
}
glut_widget_calc_bbox (widget);
}
@@ -325,8 +323,6 @@ glut_keyboard_func (unsigned char key, int x, int y)
glut_widget_set_focus (glut_next_focus_widget (NULL));
}
break;
-
- default:
}
}
@@ -502,8 +498,6 @@ glut_special_func (int key, int x, int y)
glut_widget_set_focus (widget);
}
break;
-
- default:
}
}
@@ -1297,8 +1291,6 @@ default_button_keyboard (GlutObject obj, unsigned char
}
glut_post_redisplay ();
break;
-
- default:
}
}
@@ -1569,8 +1561,6 @@ default_label_display (GlutObject obj)
case GR_RIGHT:
width = glut_label_width (obj) / 2;
break;
-
- default:
}
glColor4fv (widget->fg_color[GR_STATE_NORMAL]);