diff options
Diffstat (limited to 'mixgtk/mixgtk_mixal.c')
-rw-r--r-- | mixgtk/mixgtk_mixal.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mixgtk/mixgtk_mixal.c b/mixgtk/mixgtk_mixal.c index 21c83e9..14afacc 100644 --- a/mixgtk/mixgtk_mixal.c +++ b/mixgtk/mixgtk_mixal.c @@ -1,7 +1,7 @@ /* -*-c-*- -------------- mixgtk_mixal.c : * Implementation of the functions declared in mixgtk_mixal.h * ------------------------------------------------------------------ - * Last change: Time-stamp: "2001-04-21 23:19:05 jao" + * Last change: Time-stamp: "2001-04-22 01:02:28 jao" * ------------------------------------------------------------------ * Copyright (C) 2001 Free Software Foundation, Inc. * @@ -72,14 +72,14 @@ mixgtk_mixal_init (mix_vm_t *vm) /* set the plain, location pointer and break colors */ void mixgtk_mixal_set_color (mixal_line_t line, mixal_line_zone_t zone, - guint16 color[3]) + const GdkColor *color) { g_return_if_fail (color != NULL); - g_return_if_fail (line > MIXAL_LINE_PLAIN); - g_return_if_fail (zone > MIXAL_LINE_FG); - colors_[line][zone].red = color[0]; - colors_[line][zone].green = color[1]; - colors_[line][zone].blue = color[2]; + g_return_if_fail (line <= MIXAL_LINE_PLAIN); + g_return_if_fail (zone <= MIXAL_LINE_FG); + colors_[line][zone].red = color->red; + colors_[line][zone].green = color->green; + colors_[line][zone].blue = color->blue; gdk_colormap_alloc_color (colormap_, &colors_[line][zone], FALSE, TRUE); mixgtk_mixal_update_bp_all (); } @@ -87,8 +87,8 @@ mixgtk_mixal_set_color (mixal_line_t line, mixal_line_zone_t zone, const GdkColor * mixgtk_mixal_get_color (mixal_line_t line, mixal_line_zone_t zone) { - g_return_val_if_fail (line > MIXAL_LINE_PLAIN, FALSE); - g_return_val_if_fail (zone > MIXAL_LINE_FG, FALSE); + g_return_val_if_fail (line <= MIXAL_LINE_PLAIN, FALSE); + g_return_val_if_fail (zone <= MIXAL_LINE_FG, FALSE); return &colors_[line][zone]; } |