summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Shaw <jshaw@netsurf-browser.org>2007-11-30 14:40:10 (GMT)
committer James Shaw <jshaw@netsurf-browser.org>2007-11-30 14:40:10 (GMT)
commit17c9decf4c7a6c0e5941724520cb0cac011b9937 (patch)
treea1cbcac2536c529911a0fb313f276ea84d1eef4a
parente1b5c17d44af992f310fdb6bbbb3fdee3a441aab (diff)
downloadlibrosprite-17c9decf4c7a6c0e5941724520cb0cac011b9937.tar.gz
librosprite-17c9decf4c7a6c0e5941724520cb0cac011b9937.tar.bz2
Tidy up TODOs
svn path=/import/jshaw/libsprite/; revision=10007
-rw-r--r--trunk/libsprite.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/trunk/libsprite.c b/trunk/libsprite.c
index fde7c9c..98401f2 100644
--- a/trunk/libsprite.c
+++ b/trunk/libsprite.c
@@ -322,7 +322,6 @@ static inline uint32_t sprite_cmyk_to_rgb(uint32_t cmyk)
return r << 24 | g << 16 | b << 8;
}
-/* TODO: could make static inline? */
static uint32_t sprite_upscale_color(uint32_t pixel, struct rosprite_mode* mode, bool* has_alpha_pixel_data)
{
switch (mode->colorbpp) {
@@ -338,9 +337,6 @@ static uint32_t sprite_upscale_color(uint32_t pixel, struct rosprite_mode* mode,
}
} else {
*has_alpha_pixel_data = true;
- /* TODO: if this is the first non 0x00 alpha byte we've seen,
- * we need to go through all previous pixels and set them to 0xff
- */
}
return pixel;
} else {
@@ -467,7 +463,6 @@ static void sprite_load_high_color(uint8_t* image_in, uint8_t* mask, struct rosp
if (old_has_alpha != has_alpha_pixel_data) {
sprite_fix_alpha(sprite->image, (y * sprite->width) + x_pixels - 1);
}
- /* TODO: handle photodesk-style 0xBBGGRRAA sprites */
if (sprite->has_mask) {
uint8_t mask_pixel = sprite_next_mask_pixel(mask, mask_state);
pixel = (pixel & 0xffffff00) | mask_pixel;