summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/util/aviio.c2
-rw-r--r--src/lib/util/palette.c16
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);