diff options
| author | Ray Strode <rstrode@redhat.com> | 2007-05-11 17:19:52 -0400 |
|---|---|---|
| committer | Ray Strode <rstrode@redhat.com> | 2007-05-11 17:19:52 -0400 |
| commit | 7529d0c45b1016a2c8bb2e367334273d7fd6a92c (patch) | |
| tree | eda6113e541b1a3bfcd1a108eb775ebd66c6d417 /src | |
| parent | b6a50319e8375370fd16e6b863e78beda9d3be3a (diff) | |
| download | plymouth-7529d0c45b1016a2c8bb2e367334273d7fd6a92c.tar.gz plymouth-7529d0c45b1016a2c8bb2e367334273d7fd6a92c.tar.xz plymouth-7529d0c45b1016a2c8bb2e367334273d7fd6a92c.zip | |
some small random cleanups
Diffstat (limited to 'src')
| -rw-r--r-- | src/ply-video-buffer.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ply-video-buffer.c b/src/ply-video-buffer.c index f3b7ec1..b961952 100644 --- a/src/ply-video-buffer.c +++ b/src/ply-video-buffer.c @@ -398,7 +398,6 @@ static bool ply_video_buffer_flush (PlyVideoBuffer *buffer) { assert (buffer != NULL); - unsigned long bytes_per_row; unsigned long start_offset; size_t size; @@ -635,10 +634,10 @@ ply_video_buffer_fill_with_argb32_data_at_opacity (PlyVideoBuffer *buffer, if (area == NULL) area = &buffer->area; + alpha_pixel_value = 0x00000000; if (abs (opacity - 1.0) > DBL_MIN) { uint8_t alpha; - alpha_pixel_value = 0x00000000; alpha = (uint8_t) CLAMP (opacity * 255.0, 0.0, 255.0); alpha_pixel_value |= alpha << 24; is_translucent = true; @@ -719,7 +718,7 @@ animate_at_time (PlyVideoBuffer *buffer, int blue_bit_position; uint8_t red, green, blue, alpha; - blue_bit_position = (int) 64 * sin (time) + (255 - 64); + blue_bit_position = (int) 64 * (.5 * sin (time) + .5) + (255 - 64); blue = rand () % blue_bit_position; for (x = 0; x < 1024; x++) { |
