aboutsummaryrefslogtreecommitdiffstats
path: root/games/gracer/files/patch-glutwidgets.c
blob: b1fc3ec264b47d52a96a3cf8a63baa287394d394 (plain) (blame)
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  Wed May  4 18:47:07 2005
+++ src/glutwidgets.c   Wed May  4 18:48:56 2005
@@ -254,7 +254,6 @@
    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 @@
    widget->y -= (height - screen_height) / 2;
    widget->height += (width - screen_height);
    break;
-      default:
       }
       glut_widget_calc_bbox (widget);
     }
@@ -325,8 +323,6 @@
    glut_widget_set_focus (glut_next_focus_widget (NULL));
       }
       break;
-
-    default:
     }
   }
 
@@ -502,8 +498,6 @@
    glut_widget_set_focus (widget);
       }
       break;
-
-    default:
     }
   }
 
@@ -1297,8 +1291,6 @@
     }
     glut_post_redisplay ();
     break;
-
-  default:
   }
 }
 
@@ -1569,8 +1561,6 @@
     case GR_RIGHT:
       width = glut_label_width (obj) / 2;
       break;
-
-    default:
     }
 
     glColor4fv (widget->fg_color[GR_STATE_NORMAL]);