diff options
| author | 2008-10-02 05:34:21 +0000 | |
|---|---|---|
| committer | 2008-10-02 05:34:21 +0000 | |
| commit | 5123b0711567fef3a844c0817aa5631ba13c1f5c (patch) | |
| tree | 3b012ce71c4c4b4e7ab58b42fc186cff2329af12 /src/lib | |
| parent | cf63e2baa806398d22df4171e0f683c047a64204 (diff) | |
Cleanups and version bump.mame0127u6
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/util/aviio.c | 2 | ||||
| -rw-r--r-- | src/lib/util/palette.c | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/util/aviio.c b/src/lib/util/aviio.c index 022ea603c53..8a8f1cd04b6 100644 --- a/src/lib/util/aviio.c +++ b/src/lib/util/aviio.c @@ -1718,7 +1718,7 @@ static avi_error chunk_write(avi_file *file, UINT32 type, const void *data, UINT avi_error avierr; UINT32 idxreserve; UINT32 written; - + /* if we are the first RIFF, we must reserve enough space for the IDX chunk */ idxreserve = 0; if (file->riffbase == 0 && type != CHUNKTYPE_IDX1) diff --git a/src/lib/util/palette.c b/src/lib/util/palette.c index 02480c0e83c..c343808f67e 100644 --- a/src/lib/util/palette.c +++ b/src/lib/util/palette.c @@ -111,7 +111,7 @@ palette_t *palette_alloc(UINT32 numcolors, UINT32 numgroups) if (palette == NULL) goto error; memset(palette, 0, sizeof(*palette)); - + /* initialize overall controls */ palette->brightness = 0.0f; palette->contrast = 1.0f; @@ -475,7 +475,7 @@ const rgb_t *palette_entry_list_adjusted_rgb15(palette_t *palette) ***************************************************************************/ /*------------------------------------------------- - palette_set_brightness - set the overall + palette_set_brightness - set the overall brightness for the palette -------------------------------------------------*/ @@ -499,7 +499,7 @@ void palette_set_brightness(palette_t *palette, float brightness) /*------------------------------------------------- - palette_set_contrast - set the overall + palette_set_contrast - set the overall contrast for the palette -------------------------------------------------*/ @@ -520,7 +520,7 @@ void palette_set_contrast(palette_t *palette, float contrast) /*------------------------------------------------- - palette_set_gamma - set the overall + palette_set_gamma - set the overall gamma for the palette -------------------------------------------------*/ @@ -532,7 +532,7 @@ void palette_set_gamma(palette_t *palette, float gamma) if (palette->gamma == gamma) return; palette->gamma = gamma; - + /* recompute the gamma map */ gamma = 1.0f / gamma; for (index = 0; index < 256; index++) @@ -590,7 +590,7 @@ float palette_entry_get_contrast(palette_t *palette, UINT32 index) void palette_group_set_brightness(palette_t *palette, UINT32 group, float brightness) { int index; - + /* convert incoming value to normalized result */ brightness = (brightness - 1.0f) * 256.0f; @@ -723,8 +723,8 @@ static void update_adjusted_color(palette_t *palette, UINT32 group, UINT32 index rgb_t adjusted; /* compute the adjusted value */ - adjusted = adjust_palette_entry(palette->entry_color[index], - palette->group_bright[group] + palette->brightness, + adjusted = adjust_palette_entry(palette->entry_color[index], + palette->group_bright[group] + palette->brightness, palette->group_contrast[group] * palette->entry_contrast[index] * palette->contrast, palette->gamma_map); |
