diff options
| author | Dana Jansens <danakj@orodu.net> | 2010-05-17 18:39:55 -0400 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2010-05-17 19:31:21 -0400 |
| commit | 1c637efcbb26211f0274687beb8f462d5db36cd5 (patch) | |
| tree | 768f65353f297e924e4aa34ff45af1cae580fa70 /obrender/render.c | |
| parent | 925e4c5979aaebebb4b04c17605e53283c469445 (diff) | |
new enum values need to be handled in switches
(the new enum values were added to count the number of entries in the enums)
Diffstat (limited to 'obrender/render.c')
| -rw-r--r-- | obrender/render.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/obrender/render.c b/obrender/render.c index 58bf12ec..fb59e216 100644 --- a/obrender/render.c +++ b/obrender/render.c @@ -170,6 +170,8 @@ Pixmap RrPaintPixmap(RrAppearance *a, gint w, gint h) } force_transfer = 1; break; + case RR_TEXTURE_NUM_TYPES: + g_assert_not_reached(); } } @@ -377,6 +379,8 @@ void RrMargins (RrAppearance *a, gint *l, gint *t, gint *r, gint *b) case RR_BEVEL_2: *l = *t = *r = *b = 2; break; + case RR_BEVEL_NUM_TYPES: + g_assert_not_reached(); } } else if (a->surface.border) { *l = *t = *r = *b = 1; @@ -426,6 +430,8 @@ gint RrMinWidth(RrAppearance *a) w = MAX(w, MAX(a->texture[i].data.lineart.x1 - l - r, a->texture[i].data.lineart.x2 - l - r)); break; + case RR_TEXTURE_NUM_TYPES: + g_assert_not_reached(); } } @@ -481,6 +487,8 @@ gint RrMinHeight(RrAppearance *a) h = MAX(h, MAX(a->texture[i].data.lineart.y1 - t - b, a->texture[i].data.lineart.y2 - t - b)); break; + case RR_TEXTURE_NUM_TYPES: + g_assert_not_reached(); } } |
